I just installed Zen Photo as a test to see if I can incorporate it into a website I am working on. I intend to have it show within a html page that I've made using the php include function if that is possible.
But before I do that, I need to have it working flawlessly which it is not right now. Everything installed fine but I am getting this error when I click on the Upload tab. I have it on a demo server right now to test it out.
Fatal error: Call to a member function getID() on a non-object in /home/t3interactive/demo.t3-interactive.com/bld/gallery/zenphoto/zp-core/admin-upload.php on line 402
I opened up the admin-upload.php file and this is the code where the problem is occurring I'm assuming
`
<?php
if($uploadtype != 'http') {
$admins = $_zp_authority->getAdministrators();
$curadmin = $admins[$_zp_current_admin_obj->getID()];
?>
`
Anyone have any idea whats happening here and how I can solve this?
Comments
That will not work. Please read here how to incorporate Zenphoto into exisitng websites:
http://www.zenphoto.org/2009/03/troubleshooting-zenphoto/#32
I have never seen this error. Is this an upgrade to 1.3 (if it is not 1.3, please do so). Also post some info about your server please.
I figured out what the problem was. It was being caused because an admin account had not been setup so the script was looking for an ID which has not been defined. As soon as I created an admin account and added a user, everything started working.
I don't have a CMS or a Wordpress site. It's a simple HTML site with CSS. Most of my effects are being generated via JQuery or Ajax. At the end of the day, it has to look like this http://demo.t3-interactive.com/bld/gallery.html or at least have the header and footer the same way.
If it possible to edit the default theme to get this working? like by including my header via php include into the default theme?
The instructions I linked to are of course not limited to CMS, the theming way works with everying.
So yes, using the header and footer should not be a problem.