ZenphotoCMS Forum
Call to a member function remove() on a non-object - 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: Call to a member function remove() on a non-object (/thread-9031.html)



Call to a member function remove() on a non-object - KieranOShea - 2011-09-01

Since upgrading to the latest version I'm getting the following error thrown in my log file when deleting an image from an album in the admin panel

Call to a member function remove() on a non-object in /home/kieran/public_html/gallery/zp-core/admin-functions.php on line 3590

and the following when deleting an album from the admin panel

Call to a member function remove() on a non-object in /home/kieran/public_html/gallery/zp-core/class-album.php on line 742

In the case of album deletion, a few images are deleted before the error is thrown but I have to invoke delete album several times with the above error being thrown each time before eventually all images are gone as is the album.

All help gratefully received




Call to a member function remove() on a non-object - acrylian - 2011-09-02

Sorry, I have no idea.. Did you use any install scripts for upgrading maybe?




Call to a member function remove() on a non-object - KieranOShea - 2011-09-02

No install scripts used, just followed the upgrade instructions in the release package




Call to a member function remove() on a non-object - dn3 - 2011-09-07

I am also getting this when trying to remove an entire album:

Fatal error: Call to a member function remove() on a non-object in /home/***********/public_html/n3.cc/zp-core/class-album.php on line 742

The album remains, it seems I cannot remove it through the admin panel.




Call to a member function remove() on a non-object - dn3 - 2011-09-07

I hate to double post, but I have no way of editing the post I just made, as I can't even see it...

Relevant information to add: When trying to bulk delete all images in an album, I get this error:

Fatal error: Call to a member function remove() on a non-object in /home/midnight/public_html/n3.cc/zp-core/admin-functions.php on line 3684

When I bulk delete all but one, it works. When I delete the last one singly, it works. When I attempt to remove the completely empty album, that works too (I don't get the error in my above post).

So logically, the problem lays with bulk deleting the last image in an album, and deleting an album that contains images. Hope this clarifies the issue.




Call to a member function remove() on a non-object - sbillard - 2011-09-07

Please also look at your debug log and see if there is any information in it. I presume there are no other errors but these in you CGI logs.




Call to a member function remove() on a non-object - dn3 - 2011-09-08

OK, so I've looked through the error log in the webroot of the domain, the error log in cPanel, and the debug log in the zenphoto admin panel. I'm not seeing anything on point, however the zenphoto debug log is quite lengthy, so I'm still going through it. It looks like earlier in the day a plugin I was trying was generating a crapton of errors unrelated to this bug.