Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 82367

Trying to get property of non-object

$
0
0

Replies: 0

Trying to get property of non-object in /Users/Beee/HTML/freerides-new/webapp/content/plugins/dreamgrow-scroll-triggered-box/dgd-scrollbox.php on line 80
(and on line 81 as well)

I am getting this notice when I’m ‘watching’ a post type archive.

When looking at the code I see the code tries to retrieve a post id, but that’s not available since it’s not a post but a post type archive so it fails in both cases.

I would recommend changing the else on line 78 into
} elseif (isset($post)) {
and create a new else.


Viewing all articles
Browse latest Browse all 82367

Trending Articles