1

after a system upgrade, certain pictures aren't displayed in my Drupal installation. I notice that, for instance, some jpeg are visible while other are not (the extension being for both jpeg, all lower case).

I'm working on Ubuntu, locally, and I upgraded the system from 9.10 to 10.04 LTS, so also Apache and PHP where upgraded too.

Any thought?

dag729
  • 113

3 Answers3

2

Check that the access rights are consistent.

Make a note of the "rwx" privileges for owner, group and world on a file that is displayed and one that isn't. If they are different then make the them the same - i.e. the value of the file that is displayed.

Also check that the directory/folder access rights are consistent.

Check that the pathnames to the files are correct.

Case shouldn't matter, but double check anyway. Check that there are no unescaped spaces or other special characters. Either rename the files or change how they are referenced.

Double check the colour mode of the files.

Some graphics packages can write CMYK jpgs as well as RGB ones. Not all browers (eg. Internet Explorer) can display CMYK jpgs. You'll need access to Photoshop or similar to check this. Resave the files in RGB mode.

It's unlikely to be this given you say that the problem has only started since an upgrade, but I've included it for completeness.

ChrisF
  • 1,891
1

Upgrading Ubuntu to 10.04 will have upgraded PHP from 5.2 to 5.3, which some Drupal modules have a real problem with. The update to Drupal may have included bugfixes related to this issue, or it may simply have cleared one of the caches which Drupal uses.

Make sure nothing else has broken with this upgrade, because you will come across issues. We're pinning PHP at 5.2 in order to keep Drupal sites working.

WheresAlice
  • 5,830
0

An update to Drupal fixed the strange images behaviour, although I don't understand what happened...

dag729
  • 113