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!!
Comments
<?php
require_once("zen/template-functions.php");
$themepath = 'themes';
$theme = $_zp_gallery->getCurrentTheme();
$_zp_themeroot = WEBPATH . "/$themepath/$theme";
header ('Content-Type: text/html; charset=' . zp_conf('charset'));
if (in_context(ZP_IMAGE)) {
include("$themepath/$theme/image.php");
} else if (in_context(ZP_ALBUM)) {
include("$themepath/$theme/album.php");
} else if (in_context(ZP_INDEX)) {
if (isset($_GET['p'])) {
$page = str_replace(array('/','\\','.'), '', $_GET['p']);
include("$themepath/$theme/$page.php");
} else {
include("$themepath/$theme/index.php");
}
}
?>
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
Did you modify template-functions.php?
Try re-installing from scratch.
Lastly, can we see? URL?
Probably just a bad file somewhere. Thx for the help....