Jump to:

382 Posts in 209 Topics by 196 members

Connect With Other SilverStripe Members

SilverStripe Forums » Connect With Other SilverStripe Members » processes\process director URL and custom pages error [solved]

For all SilverStripe-related topics that don't fit into any of the categories above.

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

Page: 1
Go to End
Author Topic: 682 Views
  • Xananax Prozaxx
    Avatar
    Community Member
    11 Posts

    processes\process director URL and custom pages error [solved] Link to this post

    I just wanted to post this in the (odd) case that someone runs in the same problem I did.
    I had a custom class extending page called "Processes" that could contain any number of children DataObjects "process".
    When I would add "processes" to my menu and click on it, I would get a Blank Screen of Death.

    But calling the "Process" objects from a custom function worked. And my "processes" class contained only an $allowed_children directive!
    Boy I had a hard time debugging this.

    Turns out, in the _config.php located in /cms/ there is this line:
    Director::addRules(50, array(
       'processes//$Action/$ID/$Batch' => 'BatchProcess_Controller',....)

    So "processes" is actually a reserved keyword.
    Just in case someone has the same idea...Rename your holder class "processesHolder" or "procedures"

  • Xananax Prozaxx
    Avatar
    Community Member
    11 Posts

    Re: processes\process director URL and custom pages error [solved] Link to this post

    Or, more simply, change the path from the cms admin panel for that particular page

    682 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.