Page 1 of 2

[solved, fix in next release] Cannot delete inactive pages

Posted: Sun Aug 23, 2009 6:50 pm
by Kex
Good day.

It took me quite a while to find a simple CMS that I thought would suit my needs. Well ...

I downloaded & installed the current version of CMSMS (1.6.4 - Moindou) on a server with PHP Version 5.2.0-8+etch13 and MySQL Version 5.0.32. (The phpinfo page is here if you'd like to have a look.)

Then I went through all the pages that were installed with the setup, reading on how to use this CMS and so on, and then I wanted to delete them, making room for the stuff I actually want to put on the site.

Well, that worked for Chapter 2 (Content and so on), but when I try to delete the other pages, namely those about templates, I cannot delete them. I click the dustbin icon, the popup appears, I click yes, the row disappears, and a moment later that row re-appears! I deactivated these pages, tried to delete each of them manually, no dice. I tried bulk-deleting, I confirm that I really want to delete them, and all I get is the same old list, with a message "No bulk operation performed." and a checkmark next to it.

No, I cannot get safe_mode disabled. Will I ever be able to run a clean site or do I have to find another CMS?
Yes, I did do a couple of board searches, but none of the other threads seemed to address my problem (at less than 20% relevance I stopped).

Sad greetings

Re: Cannot delete installed pages

Posted: Sun Aug 23, 2009 8:04 pm
by RonnyK
Kex,

you try deleting as an admin-user? Basically the only page that shouldnt be deletable should be the page that is set as the default-page... I will do some testing.

Ronny

Re: Cannot delete installed pages

Posted: Mon Aug 24, 2009 7:53 am
by Kex
My installation Admin is currently the only user on that site, so yes, I tried deleting while being the Admin. Default page is still "Home" which I did not try to delete.

Well, a test just revealed that this would have a different result anyway: a red message "You cannot delete the parent of the default page. (Troubleshooting)" with an exclamation mark in front of it.
Which is strange as "Home" is the default page itself and not a parent of any other page.

Re: Cannot delete installed pages

Posted: Mon Aug 24, 2009 9:57 am
by RonnyK
Kex,

can you PM me some login information, so that I can check in the backend?

I checked on a clean install of 1.6.4 and had no issue with the deletion....

Ronny

Re: Cannot delete installed pages

Posted: Mon Aug 24, 2009 10:03 am
by Rolf
Hi RonnyK,

I've noticed similar behavior on one of my sites...
Delete a page, the page is removed from the pages list and the next moment is there again.

Rolf

Re: Cannot delete installed pages

Posted: Mon Aug 24, 2009 10:04 am
by Kex
@RonnyK: As soon as I find the PM button, sure.

Sent. At least I hope it did send it.

@Rolf: Yes, exactly that. Disappears - reappears.

That could mean I'm not too stupid to install a CMS! :D

Re: Cannot delete installed pages

Posted: Mon Aug 24, 2009 5:02 pm
by Pierre M.
Hello,
Kex wrote: @Rolf: Yes, exactly that. Disappears - reappears.
Can you monitor the SQL log while you operate ?

Pierre M.

Re: Cannot delete installed pages

Posted: Mon Aug 24, 2009 5:32 pm
by Kex
Hello Pierre M.,
I don't think I can. I just have a tiny bit of webspace, not a whole server of my own. Would a normal user even have permission to check it, provided that he's know where to look?
(If that thingy was running DB2 on z/OS and I'd be the installation admin, I'd even know where to look for that kind of data, but world isn't that easy ...)

Re: [solved kinda, pages deleted, still needs testing] Cannot delete installed pages

Posted: Tue Aug 25, 2009 8:58 am
by Kex
So,
RonnyK managed to delete the pages in question, but noticed some other strange behaviour (which I could reproduce afterwards). Deleting of a "parent" page resulted in only the "parent" page being deleted, letting the "children" becoming "orphans" that had to be deleted seperately afterwards. Expected behaviour is probably either deletion of the whole set of pages (parents and children) or just a message that you couldn't delete a parent ...

There is still no indicator to WHY all this happened like it did, so RonnyK is doing some further testing, he said.
If the undeletability was just a temporary server condition, the problem's source will probably remain hidden for a while ...

Thanks for your help!

Kex

Re: [solved kinda, pages deleted, still needs testing] Cannot delete installed pages

Posted: Wed Aug 26, 2009 3:36 pm
by Rolf
If the undeletability was just a temporary server condition, the problem's source will probably remain hidden for a while ...
I contacted my webhost for a mysql log like PierreM suggested: Shared host, no option...  :(

Placed a backup on my xampp localhost and I'm getting the same thing over here!
Trying to make an errorlog here now and...

®olf

Re: [solved kinda, pages deleted, still needs testing] Cannot delete installed pages

Posted: Thu Aug 27, 2009 12:25 pm
by Rolf
It only occurs when you try to delete a child page wich is inactive.
Switch the page to active and it will be deleted...

I can reproduce it also on another site...

®

Re: [solved kinda, pages deleted, still needs testing] Cannot delete installed pages

Posted: Thu Aug 27, 2009 12:31 pm
by Kex
Ouch. That sounds like not-intended behaviour.
Well, yes, that would explain it for me as well, I was turning pages inactive before trying to delete them, unlike the first chapter, from which I just deleted pages right after reading. Once I reached the last pages, I figured I wouldn't need to keep all of them as I could as well read on the demo board if needed.

Good work. :)

Re: [solved kinda, pages deleted, still needs testing] Cannot delete installed pages

Posted: Thu Aug 27, 2009 2:18 pm
by Rolf

Re: [solved kinda, pages deleted, still needs testing] Cannot delete installed pages

Posted: Fri Aug 28, 2009 2:44 pm
by Pierre M.
Rolf, Kex, thank you very much for the feedback, the tests and the bug report filed in the forge.
And for the workaround too, waiting for the fix.
Community rocks :-)

Pierre M.

Re: [solved kinda, bugreport filed] Cannot delete installed pages

Posted: Fri Sep 04, 2009 4:02 pm
by Rolf
Hi Kex,

RonnyK fixed this issue in the SVN: http://dev.cmsmadesimple.org/bug/view/3952
Should be available in the next release.

Grtz. Rolf