Topic on Project:Support desk

Not all pictures, or picturesizes are shown.

8
77.166.176.131 (talkcontribs)

I upgraded mediawiki (from 1.14 to 1.24) with the following parameters:

PHP 5.4.29 (apache2handler)

MySQL 5.1.69-log

More software and extensions installed can be found at: http://www.imkerpedia.nl/wiki/index.php/Speciaal:Softwareversie

After upgrading (and the needed copying of the image-folder) some pictures (sizes) are shown, but others aren't. To me it's completely random why some pictures (with specific picturesizes) don't exist in images/thumb/././, and others do.


After rereading http://www.mediawiki.org/wiki/Manual:Upgrading I see I forgot 'chmod -R 755 images' and 'chgrp -R apache images'. At the moment all (sub)folders in the image-folder are 755 or 777. The image-folder itself is 755. So, that that's okay, isn't it?

However, I don't know how to 'chgrp -R apache images' (if that's the problem).

I'm using FTP (Total Commander) to manage files.

MarkAHershberger (talkcontribs)

If I understand, you installed 1.24 in a different directory and then copied over the images directory, right? And now some thumbnails aren't showing up? Were they showing up before the upgrade?

77.166.176.131 (talkcontribs)

Before the upgrade everything was fine.

I made some mistakes while upgrading:


I first unpacked mediawiki-1.24.0.tar.gz on my laptop, and uploaded it to folder /wiki-124 on the website.

Renamed /wiki to /wiki-114 and /wiki-124 to /wiki.

With browser went to http://www.imkerpedia/wiki/mw-config/. And continued there.

After that there were no images on the wiki and I realized that I had forgotten tot copy /images to the new wiki.

Then I copied wiki-114/images over the wiki/images directory (but left the new .htacces in 1.24 - # Protect against bug 28235 - intact). Now some pictures were present, but others weren/t.

MarkAHershberger (talkcontribs)

Could you link to a page that shows the problem you're describing?

Also, if you could bring the 114 wiki back at /wiki-114/, that might help so I can see what you expect and compare with what is happening now.

AlbertStoter (talkcontribs)

In reply to MarkAHershberger's "Also, if you could bring the 114 wiki back at /wiki-114/, that might help so I can see what you expect and compare with what is happening now."

Is bringing back /wiki-114 as simple as changing the name to /wiki again and importing the old (backuped) database?

Ciencia Al Poder (talkcontribs)

A link to a page where a file fails to display would help.

At least I found one example where it fails: http://www.imkerpedia.nl/wiki/index.php?title=Bestand:Dropplant-01.jpg&uselang=en

It displays the error Error creating thumbnail: Unable to save thumbnail to destination. The problem seems to be with permissions in the images folder.

A direct URL for the error:

You should debug by adding this to LocalSettings.php:

$wgShowExceptionDetails = true;
error_reporting( -1 );
ini_set( 'display_errors', 1 );
# Set it to a writable directory and filename by the webserver
$wgDebugLogFile = "/tmp/mediawiki-debug.log";

Then open and remove (or comment out) those added lines.

See if it displays a detailed error message about what folder/path is failing to access, or look at the debug log.

The debug log file may contain sensitive information, so be sure it writes to a folder not accessible from the internet or it has a weird name that couldn't be easily guessed, and delete it after you've saved it somewhere else.

AlbertStoter (talkcontribs)

I hope I can reply again (yesterday, somehow I couldn't)

Adding those lines tot LocalSettings didn't work. Yesterday I (only) used $wgDebugLogFile ... and that did deliver a logfile (but I couldn't reproduce that today; strange).

I think You are looking for the following lines (from yesterdays logfile):

ExifBitmapHandler::isMetadataValid: back-compat version
File::transform: Doing stat for mwstore://local-backend/local-thumb/f/f7/Dropplant-01.jpg/180px-Dropplant-01.jpg
FileBackendStore::getFileStat: File mwstore://local-backend/local-thumb/f/f7/Dropplant-01.jpg/180px-Dropplant-01.jpg does not exist.

Also, since the upgrade (in which, I admit, I made the already mentioned mistakes) I still can login, but am not allowed to make changes anymore.

I can open the Edit-tab, but 'show preview' and 'Save page' react with "Forbidden You don't have permission to access /wiki/index.php on this server Apache/2.2.15 (CentOS) Server at www.imkerpedia.nl Port 80".

Ciencia Al Poder (talkcontribs)

Well, that excerpt from the debug log says what we already know, that the thumbnail file does not exists. But the interesting part of the log should be the attempt to create the thumbnail.

Reply to "Not all pictures, or picturesizes are shown."