Topic on Project:Support desk

[RESOLVED] Errors when using GD image library

6
Chris huh (talkcontribs)

I'm seeing blank pages when I attempt to use GD as the image library as opposed to ImageMagick.

I've got an old MediaWiki site that I've just upgraded from version 1.8.2 to 1.24.0. I also installed a completely fresh copy of 1.24.0 onto the same server. When I set them both to use ImageMagick I receive errors about proc_open being disabled at the top of the page and, although pages will load, the images won't and instead say:

Error creating thumbnail: Unable to run external programs, proc_open() is disabled.
Error code: 1

Essentially my host has disabled proc_open for security.

So I try to use GD instead. The fresh installation lets me upload new images and add them to pages, then it creates the thumbnails as it should. All works fine with GD. The upgraded site, however, just goes to a blank page after pressing the upload button. It also shows a blank page on several pages that have images (ie the same pages that would have the above error if using ImageMagick), eg Gallery of new images, and File list.

It appears that I can't use ImageMagick due to proc_open being disabled. But does anyone know why GD would work fine on one installation but not on another?

The errors that appear when loading those blank pages look like: PasteBin

I'm using:

  • PHP: 5.3.29
  • MySQL: 5.6.22
  • MW: 1.24.0

Thanks

Ciencia Al Poder (talkcontribs)

If you have both 1.24, the problem may be one setting in LocalSettings.php causing an error, or if you forgot to run the upgrade script on the migrated database.

It's strange that the debug log stops at that line. That may indicate a fatal PHP error or, in the worst case, a segfault. Note that PHP fatal errors aren't logged in the debug log, you should enable the display of PHP errors (see Manual:How_to_debug) or look at the error log of the webserver.

Chris huh (talkcontribs)

I've turned on PHP debugging via the LocalSettings.php option. Where would it display any PHP errors? In the page itself or in a log? I don't see any errors on neither the page nor in the log file.

I will have to look through my LocalSettings.php to see if there is anything that could be causing it. Thanks

Ciencia Al Poder (talkcontribs)

Read the section PHP errors on that page.

Chris huh (talkcontribs)

Oh yeah, it says it right there. My bad. I'm not seeing any errors on the page so i guess it's one of those fatal PHP errors that occurs before the system can get to that line of code. I'll try looking at the LocalSettings.php.

Thanks

Chris huh (talkcontribs)

I'm not sure what it was in the LocalSettings but by using the fresh installation's copy I got it working.

Thanks

Reply to "[RESOLVED] Errors when using GD image library"