Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Notice: Trying to get property of non-object
lech
✭
Hey all, (obligatory hat tip mark) it's been a while...
Just set up a small forum and caught this little bit of weirdness when attempting to hit a thread/account that doesn't exist and is completely out of range. Instead of getting a pretty error like this one for example, I get it plus a header which includes a handful to multiple instances of:
note that "whatever.the.relevant.php" file could be accounts.php to comments.php or whatever classes fall in between. It's leaving me a bit stumped at the moment.
Any ideas as to what could be causing this little gem? I've double checked the confs and It's a fairly fresh and clean vanilla setup with a few extensions, I'm just wondering if there's a common issue based on extension which may be causing this. I've disabled everything and it still likes to pop up with all extensions disabled as well Friendly URLs are not enabled either.
Also, mark a quick run through roles within the database shows that:
Is still being created for the default initial four roles, wasn't this weeded out?
Just set up a small forum and caught this little bit of weirdness when attempting to hit a thread/account that doesn't exist and is completely out of range. Instead of getting a pretty error like this one for example, I get it plus a header which includes a handful to multiple instances of:
Notice: Trying to get property of non-object in /path/to/my/vanilla/whatever.the.relevant.php on line: nn
note that "whatever.the.relevant.php" file could be accounts.php to comments.php or whatever classes fall in between. It's leaving me a bit stumped at the moment.
Any ideas as to what could be causing this little gem? I've double checked the confs and It's a fairly fresh and clean vanilla setup with a few extensions, I'm just wondering if there's a common issue based on extension which may be causing this. I've disabled everything and it still likes to pop up with all extensions disabled as well Friendly URLs are not enabled either.
Also, mark a quick run through roles within the database shows that:
s:27:"PERMISSION_DATABASE_CLEANUP";N;
Is still being created for the default initial four roles, wasn't this weeded out?
0
This discussion has been closed.
Comments
Notice: Trying to get property of non-object in /path/to/vanilla/account.php on line 51 Notice: Trying to get property of non-object in /path/to/vanilla/account.php on line 54 Notice: Trying to get property of non-object in /path/to/vanilla/account.php on line 78
Three simple errors get thrown just for account there where as accessing a thread that's missing outputs much more which looks like the following:
Notice: Trying to get property of non-object in /path/to/vanilla/library/Vanilla/Vanilla.Control.CommentGrid.php on line 71 Notice: Trying to get property of non-object in /path/to/vanilla/library/Vanilla/Vanilla.Control.CommentGrid.php on line 71 Notice: Trying to get property of non-object in /path/to/vanilla/library/Vanilla/Vanilla.Control.CommentGrid.php on line 86 Notice: Trying to get property of non-object in /path/to/vanilla/library/Vanilla/Vanilla.Control.CommentGrid.php on line 86 Notice: Trying to get property of non-object in /path/to/vanilla/comments.php on line 43 Notice: Trying to get property of non-object in /path/to/vanilla/comments.php on line 51 Notice: Trying to get property of non-object in /path/to/vanilla/comments.php on line 56 Notice: Trying to get property of non-object in /path/to/vanilla/comments.php on line 56 Notice: Trying to get property of non-object in /path/to/vanilla/comments.php on line 59 Notice: Trying to get property of non-object in /path/to/vanilla/comments.php on line 64 Notice: Trying to get property of non-object in /path/to/vanilla/comments.php on line 64 Notice: Trying to get property of non-object in /path/to/vanilla/comments.php on line 64 Notice: Trying to get property of non-object in /path/to/vanilla/comments.php on line 67 Notice: Trying to get property of non-object in /path/to/vanilla/comments.php on line 72 Notice: Trying to get property of non-object in /path/to/vanilla/comments.php on line 72 Notice: Trying to get property of non-object in /path/to/vanilla/comments.php on line 72 Notice: Trying to get property of non-object in /path/to/vanilla/comments.php on line 75 Notice: Trying to get property of non-object in /path/to/vanilla/comments.php on line 80 Notice: Trying to get property of non-object in /path/to/vanilla/comments.php on line 80 Notice: Trying to get property of non-object in /path/to/vanilla/comments.php on line 80 Notice: Trying to get property of non-object in /path/to/vanilla/comments.php on line 83 Notice: Trying to get property of non-object in /path/to/vanilla/comments.php on line 88 Notice: Trying to get property of non-object in /path/to/vanilla/comments.php on line 88 Notice: Trying to get property of non-object in /path/to/vanilla/comments.php on line 88
This at the moment is with extensions enabled, so I suspect that the error count in that last example is doubled as a result depending on which extensions are attempting to execute. But the commonality is consistent within the Vanilla.Control.CommentGrid.php file.