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.


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

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

TreeDropDownField Error (php Notice)




1 May 2008 at 7:34am (Last edited: 1 May 2008 7:36am), Community Member, 126 Posts

in the CMS, i keep getting the message:

Notice: Trying to get property of non-object in C:\xampp\htdocs\silverstripe_behf2\sapphire\forms\TreeDropdownField.php on line 127

the message suddenly appeared after building some page types and corresponding pages, when clicking on some page of type 'Virtual Page' in the Sitetree (Site Content).
i did a fresh install, copied my project, rebuilt the database, and again the message appears; this time when clicking on a deleted page (see attached screenshot upload didn't work?).

for now, i solved the problem setting 'error_reporting(E_ALL ^ E_NOTICE)' in _config.php, but this is pretty ugly.

i'd appreciate any help on this topic.
thanks in advance