I recently updated one of my (older) websites to Drupal core 5.23. I also updated some modules that weren't updated before, including ImageField. Since then, CCK image fields that have values and are set to be displayed are not outputted anymore. Not on screen, not in the underlying html.

Other modules in the game that might be relevant:

  • Image 5.x-2.0
  • ImageApi 5.x-1.5
  • ImageCache 5.x-2.x-dev (2011-apr-26)
  • ImageMenu 5.x-1.2
  • Lightbox 5.x-2.11

Can somebody help me out here or point me in the right direction? Thanks.

Comments

quicksketch’s picture

We're not providing support for Drupal 5 any more, but you should check that you ran update.php, flushed your caches, and that the formatter settings for your imagefield are set correctly.

Tino’s picture

I understand. Thanks for the input though.
I ran update.php, flushed caches and tried numerous options on how to display the field. Also tried adding a new field and even a new content type with an imagefield, but nothing seems to work...

Tino’s picture

Could it maybe have something to do with the upgrade to PHP 5.3 by the hosting party? And the incompatibility of Drupal 5 with PHP 5.3.
This was the trigger to start updating this website earlier today.

I keep seeing this error in the logs:
Function ereg() is deprecated in .../includes/file.inc line 646

quicksketch’s picture

Hm, I'm not sure if Drupal 5 can run on PHP 5.3 or not. I definitely wouldn't recommend it. Even though ereg() is deprecated, it still exists in PHP 5.3, so that in particular is not a problem. In Drupal 6 core, we ended up just putting an @ sign in front of the calls to ereg() to silence the warnings.

To test if it's a PHP upgrade problem, try backing up your site database and code to a different machine (like your localhost) and see if the image situation is any better.

quicksketch’s picture

http://drupal.org/requirements lists PHP 5.3 as not being compatible with Drupal 5.

Tino’s picture

Thanks again quicksketch, not only for creating the module, but also for your time to feed me with more options on an antique version of it. For now I am manually putting in images as pure html on this perticular website. Hope I can keep the owner happy for the time being, without forcing her directly to invest in a Drupal 5 to 7 conversion. Fortunately this is the only D5 website that I have out there...

Image Galleries are working though! That is fortunate, since they are the most important part of the website (artist's display of works).

Q-Zma’s picture

I have the same problem with PHP 5.2.17 runned as CGI together with PHP 5.3 as module on Apache. Have following in server log:

FastCGI: server "/usr/lib/cgi-bin/php52.fcgi" stderr: PHP Fatal error: Cannot access empty property in /var/www/[...]/sites/all/modules/imagefield/imagefield.module on line 1156, referer: http://[...]/node/add/image-gallery

quicksketch’s picture

Status: Active » Closed (won't fix)

Closing up again. There is no support for D5 at this point.

quicksketch’s picture

Issue summary: View changes

Typos