PDA

View Full Version : Fatal Error upon uploading


Dave!AtTheDisco
08-25-2007, 10:18 AM
Hello, I've just recently installed Photoplog lite on my server and everything looks fine, but I get an error every time I try to upload an image. The error is:

Content visible to registered users only.

This is the line in the functions.php file:
Content visible to registered users only.

I get an error just like that for other file types, the above being for .png files. Any help would be appreciated. Thanks.

Morgan
08-25-2007, 03:07 PM
That typically means that the GD library is not installed or not installed correctly.

Chances are that you already have GD, if you are using PHP 4.3 or above, so you'd just need to enable it. On a *nix system, configure PHP --with-gd and on a Win system, set extension to php_gd2.dll in the php.ini file.

More information can be found at http://www.boutell.com/gd/faq.html (look for the "How do I get GD to work with PHP" FAQ) and at http://www.php.net/manual/en/ref.image.php (look for the Installation section).

Also, here are a couple of other links that might help:

On *nix: http://www.php.net/manual/en/ref.image.php#43708
On Win: http://www.php.net/manual/en/ref.image.php#41481

If using EasyPHP, go to configuration, PHP extensions, activate php_gd2, and then restart. Here are three links with step-by-step directions on how to enable the GD library:

http://www.wikihow.com/Enable-Image-Support-for-Php
http://www.alt-php-faq.org/local/68/
http://www.onlamp.com/pub/a/php/2003/03/27/php_gd.html

If you are hosted, shoot your host an email with the error message you posted and have them install, or correct the install, for the GD library as GD is usually not something your host allows you to install.

Dave!AtTheDisco
08-25-2007, 03:17 PM
Hey. Yeah, I got the same thing when running it through a search engine; I just wanted to make sure. I'll definitely speak to my host about it. Thanks a lot for your help.

Dave!AtTheDisco
08-31-2007, 11:54 PM
Sorry to bother ya again, and for double posting if it's against the rules here, but is there anyway Photoplog can run without GD being enabled? My host claims he doesn't have access nor does he know how to do it even if he did.

Morgan
09-01-2007, 05:13 PM
Nope, PhotoPlog needs GD to run. However, chances are that you are using PHP 4.3 and above, where GD is already bundled with PHP, so direct your host to the installation section on this (http://www.php.net/gd) page.