Forums / Setup & design / Images cant be uploaded after Fast CGI and EXIM installed

Images cant be uploaded after Fast CGI and EXIM installed

Author Message

Luis Delgado

Thursday 07 April 2011 7:18:41 am

Hi... I have a problem... not sure if it is a bug... After changing from SuPHP to FCGI I am no more able to upload images to an article for example... what could be wrong? I also installed EXIM in PHP when compiling... not sure if it has something to do.

Cheers

GOOD 4 ALL

Luis Delgado

Thursday 07 April 2011 7:41:52 am

HELP PELASE! I have checked everyhting in the server, no error logs, no permission issues... ImageMagik installed and working, notes are uploaded but they are blank, no images shown and they are not broken URL's they are simply not uploaded....

Also checked the log. The log for uploaded images in: var/ezflow_site/storage/log/

says images have been saved in a XXXXX (digits) folder but they are not, the folder in fact does not exist...

what is wrong?

Cheers

GOOD 4 ALL

Luis Delgado

Thursday 07 April 2011 8:21:03 am

"

HELP PELASE! I have checked everyhting in the server, no error logs, no permission issues... ImageMagik installed and working, notes are uploaded but they are blank, no images shown and they are not broken URL's they are simply not uploaded....

Also checked the log. The log for uploaded images in: var/ezflow_site/storage/log/

says images have been saved in a XXXXX (digits) folder but they are not, the folder in fact does not exist...

what is wrong?

"

OK Images are uploaded... they are there but are not being displayed... ImageMagik???

Cheers

GOOD 4 ALL

Nicolas Pastorino

Thursday 07 April 2011 3:17:01 pm

Hi Luis,

Did you check that the web server process user has write privileges to the siteaccess' var directory ?

Also how did you find out that the images were not displayed ? What happens if you try to open the non-displayed image link in a separate tab ?

Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Luis Delgado

Sunday 10 April 2011 11:53:46 am

"

Hi Luis,

Did you check that the web server process user has write privileges to the siteaccess' var directory ?

Also how did you find out that the images were not displayed ? What happens if you try to open the non-displayed image link in a separate tab ?

Cheers,

"

Hi Nicolas,

Thanks for answering. Yes the folder has 777 permission as stated in EZ Docs...

After compiling my Apache/PHP with FCGI, next morning the editors (a news site) told me no images were being diplayed after they uploaded new content. Content uploaded previously and banners or fixed images were showing OKI. I tried everything (including what you suggested), opening in another window, changing browsers (I have the main 6 browsers) etc... I couldnt even see the link to the images I will explain a little bit more, what I found was:

1. I deducted that Image Magick stoped working but it was running in the server.

2. Even if I stated before the opposite, images were indeed uploaded, the image was saved in its place (/storage....) but they were not showning after being uploaded. Images uploaded.

3. Images were not shown also after being published and the code of the image was not used for displaying it in the public file (as if the article didnt had any images to show). I mean there were no errros showing a missing image in the public page (like a broken icon in a box) nor the server trying to find the file. Simply no image or link to the image was loaded in the publicated content, or at least I couldnt find it in the code.

4. After reading some posts (including one from Gaetano Giunta) I decided to disable Image Magick and leave GD2 enabled. This solved the problem instantly. Images began to show for the articles that were uploladed after the compilation.

Somehow ImageMagick doesnt want to work with either FCGI or Exif.

Hope this is an isolated issue otherwise may it be considered a bug?

Cheers

GOOD 4 ALL

Nicolas Pastorino

Sunday 10 April 2011 11:54:07 pm

Hi Luis,

It first sounds all good that you fixed the issue. Secondly, i can not really imagine ImageMagick not working because of FCGI, since we are talking about two unrelated layers here, but Exif could be the source of problems. I searched for "exif" in the issue tracker ( http://issues.ez.no/ezpublish ) and there are indeed a few open issues. If you take a look there by yourself, you might spot yours.

Running a small image conversion script from CLI, using bin/php/ezexec.php could help making sure ImageMagick was the problem, and better see errors.

Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

eZ debug

Timing: Jan 17 2025 22:43:01
Script start
Timing: Jan 17 2025 22:43:01
Module start 'content'
Timing: Jan 17 2025 22:43:02
Module end 'content'
Timing: Jan 17 2025 22:43:02
Script end

Main resources:

Total runtime0.9335 sec
Peak memory usage4,096.0000 KB
Database Queries203

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0078 589.3984180.8047
Module start 'content' 0.00780.7717 770.2031590.4531
Module end 'content' 0.77950.1540 1,360.6563341.3359
Script end 0.9335  1,701.9922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00460.4934210.0002
Check MTime0.00160.1694210.0001
Mysql Total
Database connection0.00090.093010.0009
Mysqli_queries0.838489.81282030.0041
Looping result0.00230.24342010.0000
Template Total0.906397.120.4531
Template load0.00190.204620.0010
Template processing0.904396.872120.4522
Template load and register function0.00020.016510.0002
states
state_id_array0.00080.090110.0008
state_identifier_array0.00080.083120.0004
Override
Cache load0.00170.1805470.0000
Sytem overhead
Fetch class attribute can translate value0.00160.167030.0005
Fetch class attribute name0.00130.135780.0002
XML
Image XML parsing0.00130.137230.0004
class_abstraction
Instantiating content class attribute0.00000.0035120.0000
General
dbfile0.00240.2571330.0001
String conversion0.00000.000530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
6content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 24
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs