Loading...
 
Architecture / Installation

Architecture / Installation


GD Library and PHP Info

posts: 73

I'm having a terrible problem getting the image galleries and random image generator to work for the anti-robot script. The only lead I've gotten so far is that it has something to do with the GD library.

GD Library does not show up when I click "phpinfo" from Tikiwiki's admin listing. However, I emailed my host, and he assures me that GD Library is bundled with his PHP software. Furthermore, the image gallery and random image worked fine under 1.7.2, but stopped working when I moved to 1.7.5 and still does not work in 1.8. It appears that somewhere along the line I screwed up a config file or something!

Here are the problems I'm having:

The random image generator does not produce an image, but only a box with an X in it.

The image galleries don't work at all. Everytime I try to upload an image, I get the following error message:

Warning: move_uploaded_file(mattbarton.net/tikiwiki/temp/aristotle.jpg): failed to open stream: No such file or directory in /home/mattbart/public_html/tikiwiki/tiki-upload_image.php on line 171

Warning: move_uploaded_file(): Unable to move '/tmp/phpNcjv2B' to 'mattbarton.net/tikiwiki/temp/aristotle.jpg' in /home/mattbart/public_html/tikiwiki/tiki-upload_image.php on line 171


If anyone could please help me with this problem, I'd greatly appreciate it.

posts: 14

Read my post "Two problems - top_bar.tpl and images..." below and the answers. The later PHPs (4.3.4, 4.3.6 for example) have GD bundled. When configuring and installing PHP, one needs to specify with-gd, and also with-jpeg, but if you leave it like that, jpeg does not get installed. You need to also specify a directory, and have an installed copy of the jpeg 6b source code. See also php.net for more info.

James


posts: 73

Here is what my web server replied:


I've done some checking on compiling PHP with JPEGSRC-6b. Most likely we'll have to wait till the next release of PHP (4.3.7) to recompile GD, as there have been some issues with that reported with CPanel on some configurations. I will try testing recompiling PHP with it from one of my test boxes to try to see if it will stay stable, but that will take several days for me to do as it's on a machine that has parts being reordered for it.