ZenphotoCMS Forum
PHP Fatal error - Gallery page is blank - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: PHP Fatal error - Gallery page is blank (/thread-828.html)



PHP Fatal error - Gallery page is blank - to0w1r3d - 2006-10-06

PHP Fatal error: Call to a member function on a non-object in /.../zenphoto/index.php on line 5

I have found a couple post that refer to the non-object, but I didn't find a resolution.

This is a new install, I removed the mod_rewrite and hard coded the paths. Albums and cache are 777.

The images, thumbs are fine...just the gallery page and individual albums are blank.

index.php on line 5 refers to "$theme = $_zp_gallery->getCurrentTheme();"

So I am assuming something with the theme...but these are the default themes that came with ZenPhoto.

?? TIA!!




PHP Fatal error - Gallery page is blank - Chilifrei64 - 2006-10-06

did you modify the index.php of zenphoto in any way, change any files other than zp-config.php?




PHP Fatal error - Gallery page is blank - to0w1r3d - 2006-10-07

nope did not modify the index.php file:




PHP Fatal error - Gallery page is blank - to0w1r3d - 2006-10-07

PHP Version 4.3.11
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
MySQL Support enabled
Active Persistent Links 0
Active Links 0
Client API version 4.1.21




PHP Fatal error - Gallery page is blank - trisweb - 2006-10-07

The error being on that line, and the specific error message, means $_zp_gallery is not being set correctly. There's no explanation for this, as the gallery is always instantiated in the global context and never changed.

Did you modify template-functions.php?

Try re-installing from scratch.

Lastly, can we see? URL?




PHP Fatal error - Gallery page is blank - to0w1r3d - 2006-10-09

Nope - did not modify the template functions. I will reinstall, and if it's the same problem I will post the URL...




PHP Fatal error - Gallery page is blank - to0w1r3d - 2006-10-09

Well the reinstall worked. Didn't do much different than the first install - chalked it up to either a bad transfer or I used "!" and "