Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Error when deleting pages from published site


Go to End


1842 Views

Avatar
poseydozer

Community Member, 8 Posts

18 September 2007 at 2:48am

Hi, I get the following error when I try to delete a page from the published site:

expression
Notice: Undefined variable: descendantsRemoved in /opt/lampp/htdocs/current_mita_site/mita/cms/code/CMSMain.php on line 407

Notice: Undefined variable: descRemoved in /opt/lampp/htdocs/current_mita_site/mita/cms/code/CMSMain.php on line 413
var node = $('sitetree').getTreeNodeByIdx(25); if(node && node.parentTreeNode) node.parentTreeNode.removeTreeNode(node); $('Form_EditForm').closeIfSetTo(25); var node = $('sitetree').getTreeNodeByIdx(25); if(node && node.parentTreeNode) node.parentTreeNode.removeTreeNode(node); $('Form_EditForm').closeIfSetTo(25); statusMessage('Deleted \'New ForumPage\' from live site', 'good');

If I add the following line to CMS/code/CMSMain.php at the top of the function "deletefromlive($urlParams, $form)", the problem goes away:

$descendantsRemoved = 0;

I'm not an experienced php programmer, so...

I am using Silverstripe v 2.0.2b.