Images do not display after PHP upgrade

Author Message

Josh Rader

Thursday 17 December 2009 1:04:47 pm

Running eZ Publish 4.0.1 on Windows Server 2003 machine. Apache, MySQL. I just upgraded from PHP 5.2.6 to PHP 5.3.1 and now the images do not display on the website. Can someone give me some idea why this is happening and how to fix it? We had this happen before, but I don't remember what was done to fix the the problem. The rest of the site works OK (links, file downloads, etc).Also using Image Magick 6.4.2 and Apache 2.2.14.Thanks.

Sander van den Akker

Friday 18 December 2009 10:48:54 am

I think your php.ini is overwritten because of the upgrade. Check your open_basedir and safemode settings in php.ini, these might cause imagemagick not being able to run.

eZ Publish certified developer
http://auth.ez.no/certification/verify/392313

Gaetano Giunta

Friday 18 December 2009 1:39:13 pm

fwiw, it's been a while since I've had imagemagick last work with recent ezp builds on my win dev box (running php 5.3.1 betas ever since 5.3.0 was out, since that build broke support for symlinks) - but I never spent the time to investigate...

Principal Consultant International Business
Member of the Community Project Board

Josh Rader

Tuesday 22 December 2009 7:29:01 am

Thanks for the advice, guys. I edited the new php.ini file after I upgraded. I also moved the new php dlls into apache\bin directory. As far as the new php.ini, safe mode is turned off and open_basedir is not even set (it's commented out). This is how it was set before I upgraded from PHP 5.2.6 when everything worked.

One other thing I should mention is that the images on our main page come up fine. They are set to display a different image each time the main page is loaded. However, all the images in the other pages have a red x.

Maybe I need to upgrade ImageMagick.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 10:17:06
Script start
Timing: Jan 18 2025 10:17:06
Module start 'layout'
Timing: Jan 18 2025 10:17:06
Module start 'content'
Timing: Jan 18 2025 10:17:07
Module end 'content'
Timing: Jan 18 2025 10:17:07
Script end

Main resources:

Total runtime0.6863 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0086 588.0547152.6406
Module start 'layout' 0.00860.0052 740.695339.4766
Module start 'content' 0.01380.6706 780.1719587.3984
Module end 'content' 0.68440.0018 1,367.570312.1406
Script end 0.6862  1,379.7109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.5563160.0002
Check MTime0.00150.2137160.0001
Mysql Total
Database connection0.00070.109010.0007
Mysqli_queries0.622390.6727620.0100
Looping result0.00080.1185600.0000
Template Total0.636692.820.3183
Template load0.00230.330220.0011
Template processing0.634492.435020.3172
Template load and register function0.00020.034110.0002
states
state_id_array0.00140.202710.0014
state_identifier_array0.00190.280520.0010
Override
Cache load0.00190.2713140.0001
Sytem overhead
Fetch class attribute can translate value0.00100.143330.0003
Fetch class attribute name0.00200.284160.0003
XML
Image XML parsing0.00370.535730.0012
class_abstraction
Instantiating content class attribute0.00000.002360.0000
General
dbfile0.00490.7172230.0002
String conversion0.00000.001940.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs