[pmwiki-users] Update not deleting

The Editor editor at fast.st
Wed Oct 11 15:16:28 CDT 2006


I have the following lines of code properly being triggered in ZAP and
using the proper pagename (I've debugged that far).  Unfortunately it
won't delete the page, using UpdatePage.  I get the error message at
the bottom.  Is there a proper function to delete the page--and still
save the history information? Evidently setting the page text to
"delete" doesn't work...

if ($field == "destroy") {
...
	$oldpage = ReadPage($pp);
	$newpage = $oldpage;
	$newpage['text'] = "delete";
	UpdatePage($d, $oldpage, $newpage);
	$m .= "Page $pp has been deleted.  ";
	}

PmWiki can't process your request
Cannot write page to (wiki.d/)...changes not saved
We are sorry for any inconvenience.

Cheers,
Caveman




More information about the pmwiki-users mailing list