ZenphotoCMS Forum
Can't delete pages or news articles - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html)
+--- Thread: Can't delete pages or news articles (/thread-6030.html)



Can't delete pages or news articles - richardtd - 23-10-2009

From the admin menu under the "Pages" tab I am trying to delete a page and when I click the delete button nothing happens. Same with news articles. I have the latest versions of both Zenphoto and Zenpage.




Can't delete pages or news articles - sbillard - 24-10-2009

If nothing happens, probably javascript is not working for you. The link uses a javascript function to confirm your desire to delete the page. Maybe there is a javascript error on the page. Check your browser to see if it so indicates.




Can't delete pages or news articles - shiwpam - 03-06-2010

I'm having the same problem. Can't delete News or Pages articles. Hovering the mouse cursor over the delete image shows "javascript:confirmDeleteImage('admin-news-articles.php?del=8','Are you sure you want to delete this article? THIS CANNOT BE UNDONE!')" but nothing happens when i click it, nor can i delete the page from within editing the article.

Internet Explorer shows the following...
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0)
Timestamp: Thu, 3 Jun 2010 13:21:08 UTC

Message: Object doesn't support this property or method
Line: 22
Char: 4
Code: 0
URI: http://localhost/zp-core/zp-extensions/zenpage/admin-news-articles.php

Message: Object expected
Line: 1
Char: 1
Code: 0
URI: http://localhost/zp-core/zp-extensions/zenpage/admin-news-articles.php

I believe the problem started after upgrading to 1.29, not sure though.




Can't delete pages or news articles - acrylian - 03-06-2010

Yes, sorry, for the inconvenience. Just found that out myself, this little bug had sneaked in as we forgot to change these calls when JS functions changed. Change the 'confirmDeleteImage' to 'confirmDelete' for both and it should work again. Or try tonight's nightly.




Can't delete pages or news articles - shiwpam - 03-06-2010

Thanks for the quick response! However, i managed to fix this by deleting the zp-core folder and then extracting the the zp-core from the 1.29 package to my site.

Also, where would i make the changes you mention?




Can't delete pages or news articles - acrylian - 03-06-2010

If you want to do it yourself:
zp-core/zp-extensions/zenpage/admin-news-articles.php
zp-core/zp-extensions/zenpage/zenpage-admin-functions.php(the printPagelisttable function)
Use your editor to search, don't remember the lines.

Probably best is to wait for tonight's nightly.