Forums / Install & configuration / Images do not display after PHP upgrade

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.