Images no longer work! HELP PLEASE!

soadchik - July 24, 2008 - 18:36

My website www.derbynation.net was working perfectly this morning. This afternoon, all of the user images no longer work. The strange thing is that one or two of them work while the rest show a 500 Internal Server Error if I go directly to their URL. I have tried changing the permssions to the folder they are in, this does not fix it. I looked at the htaccess file in the File folder and there's not really much information in there to change or comment out like another thread suggested. I tried deleting the htaccess file and this did nothing as well, so I just put it back.

I cannot figure out how to increase the memory. I have tried changing the site's htaccess file and this made the site not work at all. I am not even sure if increasing the memory will fix this problem. The site went live today, so there is a LOT more activity than usual and I'm thinking the site cant handle it for some reason.

Any help is greatly appreciated. You can go to the image gallery to see what I'm talking about. It says there are images, but they do not show up.

Thanks,
Sumati
www.derbynation.net

Lost images

Dave_W - July 24, 2008 - 19:54

Hi soadchik,

I tried the image gallery on your site - first time round just a white screen - a few minutes later everything works. Intermittent problems suck, but I like your guess around the increased site activity possibly being the root cause, so worth trying the memory thing.

I may be teaching the already knowledgeable, but first thing to do is get visibility of your PHP variables - quickest way is to create a three-line file called something like phpinfo.php containing the following lines:

<?php
phpinfo
();
?>

Upload this to your top level directory, and call it from a browser - you should get a load of information back - look for memory_limit. This may be quite low, for example 16M. To increase it, to say 64 meg, the method that works for me on my hosting is to create a text file called php.ini containing the following line:

memory_limit = 64M

Upload this to your top level directory, and run phpinfo.php again to see if has taken effect. If it is a memory limit issue hopefully you are now back in business, you can then delete phpinfo.php and relax with a beer.

Good luck - Dave_W

Doh! - First things last

Dave_W - July 24, 2008 - 20:07

I always forget the obvious. First thing one should do in a situation like this is to check the Drupal logs and run the status report.

Okay.. did all of that....

soadchik - July 30, 2008 - 13:27

Okay.. did all of that.... the problem is fixed for half of the pictures.... :(

Now the pictures for events are messed up. These pictures use the file_image module instead of the image module. They were working last week. Now they do not work at all. The site has no visitors right now, so it can't be an issue with that.

This image does not show. Gives me a 500 error.
http://www.derbynation.net/sites/www.derbynation.net/files/imagecache/ev...

This is so frustrating. :P

well.. it seems as though

soadchik - July 30, 2008 - 13:46

well.. it seems as though filefield_image is no more.. so this may be the reason for my image woes.

FileField Image Module

Dave_W - July 31, 2008 - 12:24

Hi soadchik,

Yes, FileField Image module is on the way out, and having had a quick look at the docs (I have not used it myself) it does seem to be very sensitive to Drupal version & PHP version.

If possible I'd explore using the ImageField module instead. It does work for me (on Drupal 5.9, Drupal 6.2 & PHP 5), though it takes a bit of configuring and the documentation is not the greatest.

Note the warning at http://drupal.org/node/247641.

If you could let me know what you are trying to achieve I might have a similar setup working somewhere (I have a few different image/gallery setups running) and I may be able to give you a working drupal/module/versions configuration.

Good luck, Dave_W

 
 

Drupal is a registered trademark of Dries Buytaert.