Jump to:

1133 Posts in 1966 Topics by 403 members

Upgrading SilverStripe

SilverStripe Forums » Upgrading SilverStripe » error in line 819 of injector.php caused by wrong classname??

Ask questions about upgrading SilverStripe to the latest version.

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

Page: 1
Go to End
Author Topic: 773 Views
  • yurigoul
    Avatar
    Community Member
    202 Posts

    error in line 819 of injector.php caused by wrong classname?? Link to this post

    static $allowed_children = array('Newspage'); // if newspage is not a class -that is a php file in mysite- you get an error in the cms backend, nowhere else.

    I'm not sure if people can reproduce it since it did not show up immediately, but removing all the php files (besides page.php) in mysite/code and putting them back in one by one + dev/build brought back the error and the error was gone after I corrected the classname.

    Maybe someone else with this error can use it as a pointer...

    Working with MAMP on osx 10.6 with Silverstripe 3.01 and 3.02

  • claireh
    Avatar
    Community Member
    2 Posts

    Re: error in line 819 of injector.php caused by wrong classname?? Link to this post

    Thanks for posting this, I was tearing my hair out over this one Just for anyone else's reference, the error I was getting was:

    ERROR [User Error]: Uncaught ReflectionException: Class none does not exist
    IN GET /admin/pages/treeview
    Line 819 in .../framework/control/injector/Injector.php

    I had several

       static $allowed_children = array (
          'none' => 'none'
       );

    in my pages that were causing the error!

    773 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.