Page 1 of 1

SOLVED: Thumbnails not created on devel. server, but are created on web server.

Posted: Tue Feb 06, 2007 4:43 pm
by icebrian
Hi all,

I resort once again to this forum since I am at a loss. I using CMSMS v1.0.4 and the Album module v0.8.2.

I currently work as a freelance web designer and for that I have one server that acts as my development server and another as my public web server.

The problem I am having is that on my public web server thumbnails are simply not created. To test this I did fresh installs of CMSMS v1.0.4 and Album v0.8.2 on both servers. Out of the box thumbnail creation worked on my devel. server but not the public web server.

On both servers I used the exact same config: Slackware 11.0, with Apache v2.2.3, PHP v5.2.0 with GD (view config here http://www.netdotlink.com/testphp.php) and MySQL v5.0.24a. I can't seem to figure out why this would happen. Are there any required packages or libs for thumbnail creation?

I get the following error message in apache error logs when I add a picture to an album or resize through Image Manager (line 2 different when resize through image manager):

Code: Select all

[Wed Feb 07 12:24:41 2007] [error] [client 192.168.1.1] PHP Fatal error:  Call to undefined function ImageCreate() in /home/www/cmsms/lib/filemanager/ImageManager/Classes/GD.php on line 353, referer: 
http://www.mydomain.com/admin/moduleinterface.php?mact=Album,m1_,addpicture,0&m1_tab_message=pictureuploaded&m1_albumid=1&m1_curdir=&m1_dir=
Any help would be much appreciated.

Re: SOLVED: Thumbnails not created on devel. server, but are created on web serv

Posted: Wed Feb 07, 2007 4:03 pm
by icebrian
Well I figured it out...

To anyone out there using Slackware 11.0, if you notice that thumbnails aren't being created, install X11 Base Pakage and all required libs shall be loaded.

After I checked php.ini so that GD was being loaded, I noticed the problem was all here:

Code: Select all

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20060613/gd.so' - libX11.so.6: cannot open shared object file: No such file or directory in Unknown on line 0
After I installing x11-base-package all is fine, however this is obviously not ideal since I would rather not install x11... oh well just glad this is over!