Howdy Folks -
Just recently downloaded and installed ZenPhoto at my site - it seems to work just great, except for the Search function. Whenever I try to do a Search (regardless of what theme is Active), I get the following error message:
Fatal error: Call to a member function on a non-object in /home/root/htdocs/gallery/zp-core/template-functions.php on line 456
Can't seem to figure out the issue here; a reinstall didn't help, and a Google search for that error message came up with 0 hits (I must just be lucky
Thoughts?
Comments
Any change Zenphoto is being loaded by some other script like Wordpress?
"warn: PHP version 4.4.9 Version 5.2 or greater is strongly recommended"
I also notice an error message on the "Options" tab of the ZP admin panel:
"Fatal error: Call to undefined function: stripos() in /home/mook/htdocs/gallery/zp-core/admin-functions.php on line 590"
Unlikely my host will update their version, though I'll check - in the meantime I've just hacked the theme I was using to no longer display a link to the 'Search' function. Apart from that, error messages in the admin panel notwithstanding, everything seems to be working okay.
`
function stripos($str,$needle,$offset=0) {
return @strpos(strtolower($str),strtolower($needle),$offset);
}
`
Since we do no longer test on PHP4, this PHP5 dependency was missed.
I have an email in to my host to see if they would consider upgrading their PHP ... since I seem to be the only one having this issue, I'm sure that's the problem.
Appreciate the quick replies.
If not, if you have more such problems let us know and we will see if we can find fixes. We don't deliberately make Zenphoto not work on PHP4, but since we cannot test, things slip through.