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.

Archive /

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

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

TreeDropDownField Error (php Notice)


Go to End


1385 Views

Avatar
schellmax

Community Member, 126 Posts

1 May 2008 at 7:34am

Edited: 01/05/2008 7:36am

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