MyBB Community Forums

Full Version: [PHP] Notice: Trying to get property of non-object
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
For my website I'm using mybb as a forum and somekind of CMS.

The website uses a custom written portal which gets its newsitems from the mybb forum database.

To apply smilies/url/bbcode I use the parser functions from mybb, therefor I include some mybb function files.

However I am getting these 'notice' messages when using mybb's files:

Notice: Trying to get property of non-object in D:\_WWW\forums\inc\class_datacache.php on line 60

Is there a workaround? Perhaps I set some blank variable somewhere?
(Currently I 'fixed' it by hiding error messages but thats just a quick and dirty fix)
First of all we do not provide support for code modifications.

Second, you'll need to attach your file your having trouble with so we can help you better.

Moving to Code Modifications.