Forums » Appion and Leginon Web tools »
Images could be shown from imageviewer with the 2.0.3 version
Added by Fei Sun about 14 years ago
Hi, we are trying to update leginon from 1.6 version to 2.0 version now. Till now, everything is fine except that the images could not be shown correctly. The configuration in our site includes:
1. Web server (linux RedHat) : emweb
2. MySQL database server (linux RedHat): emdb
3. Data storage server (linux RedHat): emdata
4. Microscope associated computer (windows)
We could launch the leginon in remote terminal and start data collection. However, we were not able to see any EM pictures from imageviewer although we could see the session id, project id and the raw image file name. Please see the attached figure for the test data display. Interestingly, we did not delete the previous version of imageviewer (dbem_1_5_1) from the directory (/var/www/html) and the EM images could be displayed indeed in this old version web interface.
We have incorporated the following configuration in php.ini :
error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING
display_errors = On
Although there are no images displayed, no errors were reported from the web page.
In addition, I found that besides the EM images not shown some other images like the gradient bar or the modeled goniometer curve diagram could neither be displayed correctly.
It took me two days to try to deal with this issue by comparing the new version and the old version but I failed. I am urger to find help here. Many thanks!
Fei
myamiweb.tiff (108 KB) myamiweb.tiff | images not shown from the imageviewer with new version (2.0.3) | ||
dbem_1_5_1.tiff (588 KB) dbem_1_5_1.tiff | images can be shown in the imageviewer with old version (1.5.1) | ||
goniometer.tiff (184 KB) goniometer.tiff |
Replies (2)
RE: Images could be shown from imageviewer with the 2.0.3 version - Added by Anchi Cheng about 14 years ago
Hi, Fei,
Check your config.php inside myamiweb folder very carefully.
At the very end of the file, the last line should be ?> and nothing else. No space after > and No line after it. This has happened before. When the content of config.php is copied and pasted into the file, spaces or lines are added after the end of php script mark (?>). When it needs to load an image, it could not do it with the space or empty line in front of the coded image.
I was able to reproduce your problem that way here, so chances are, my guess is right.
Let us know.
Anchi
RE: Images could be shown from imageviewer with the 2.0.3 version - Added by Fei Sun about 14 years ago
Hi, Anchi,
Thank you so much for your prompt response! Your answer touched the key exactly. When I deleted the empty lines just after the end of php script mark(?>), all images could be displayed correctly in the image viewer. Although I am not quite understanding the reason, I am very happy to go further for data collection.
Some simple hits from experts are indeed more valuable than my two-days overwhelmed DIY. Thank you very much, Anchi, again!
Best,
Fei