tags:

views:

425

answers:

2

Hi,

I can see images in the back end. On the front end of the catalog, no images appear for products, just the default "Image Not Found" icon.

Images definitely exist, e.g.

media/catalog/product/f/o/foo.jpg

They also appear to be correct in MySQL:

|        4 |           77 |       248 | /f/o/foo.jpg              |

I've cleared all MAgento's caches several times, even restarted the web server. It is not caused by the web server cache; I've disabled that. I even got a little desperate, ran the web server as root and chowned everything to 777, and uploaded new images, still nothing in the front end. I've followed everything I could find on Google and still nothing.

My web server is running php 5.3.2 with GD, it meets all Magento's requirements AFAICT.

Loaded PHP modules:

[PHP Modules]
apc
Core
ctype
curl
date
dba
dom
ereg
fileinfo
filter
gd
gettext
hash
iconv
json
libxml
mbstring
mcrypt
mysql
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
Reflection
session
SimpleXML
SPL
SQLite
sqlite3
standard
tokenizer
xml
xmlreader
xmlwriter
zlib

[Zend Modules]
+2  A: 

The last time I saw this problem, the issue was that the webserver didn't have enough memory. Magento checks to see whether it has enough memory to create the new image w/ GD before creating it, and will use the default image instead if this isn't the case. Try increasing the memory available to PHP and see if it solves the problem.

Hope that helps!

Thanks, Joe

Joseph Mastey
I got it working! Problem turned out to be that whilst GD was installed, it didn't have jpeg support as the --with-jpeg configure flag is deprecated. I used '--with-jpeg-dir=/usr/lib/'Source of fix: http://www.magentocommerce.com/boards/viewthread/11268/P15/Thanks for your help, folks
A: 

How did you manage to get magento working on PHP 5.3??? As far as I know it is not compatible with this version. Maybe this is the reason for your problems? Try downgrading to PHP 5.2.

silvo
And why the downvote? http://www.magentocommerce.com/system-requirements clearly states that magento is compatible with php 5.2. Trying to run it on 5.3 usually ends in disaster.
silvo
__toStatic() doesn't work on 5.3, so a default system does break on 5.3.
melee
There are also a few short-open tags in the templates. The trick is to fix those issues ;)
Joseph Mastey
I got it working! Problem turned out to be that whilst GD was installed, it didn't have jpeg support as the --with-jpeg configure flag is deprecated. I used '--with-jpeg-dir=/usr/lib/'Source of fix: http://www.magentocommerce.com/boards/viewthread/11268/P15/Thanks for your help, folks