18591 Posts in 4875 Topics by 2285 members
General Questions
SilverStripe Forums » General Questions » error while publishing nested page
General questions about getting started with SilverStripe that don't fit in any of the categories above.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba
|
Page:
1
|
Go to End | |
| Author | Topic: | 56 Views |
-
error while publishing nested page

8 December 2011 at 11:23pm Last edited: 8 December 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
-
Re: error while publishing nested page

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;
// }
| 56 Views | ||
|
Page:
1
|
Go to Top |
