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
Comments
`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.
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.