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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

error while publishing nested page


Go to End


2 Posts   1232 Views

Avatar
lekoala

Community Member, 31 Posts

8 December 2011 at 11:23pm

Edited: 08/12/2011 11:25pm

I have a weird problem and I'm wondering if anyone here have a good idea...

I have a silverstripe installation running just fine, except for one thing : if I try to publish a nested page, I get a javascript parse error

<br />
<b>Fatal error</b>: Maximum execution time of 30 seconds exceeded in <b>/****/sapphire/core/model/SiteTree.php</b> on line <b>1369</b><br />

This happens ONLY for nested pages, top level pages are working just fine. And everything runs fine in my local environment, so I guess it's linked to the webhost somehow, but I don't get why I would have a problem only for nested pages.

Any ideas?

EDIT : updated error code

Avatar
lekoala

Community Member, 31 Posts

9 December 2011 at 2:08am

If i comment these lines (1470 > 1478) it works again

// if(self::nested_urls() && $parent = $this->Parent()) {
// if($controller = ModelAsController::controller_for($parent)) {
// if($controller instanceof Controller && $controller->hasAction($this->URLSegment)) return false;
// }
// }

// if(!self::nested_urls() || !$this->ParentID) {
// if(class_exists($this->URLSegment) && is_subclass_of($this->URLSegment, 'RequestHandler')) return false;
// }