We have installed the Toolset View plugin on our site, but I am getting this error on a section panel.
"Notice: Trying to get property 'post_type' of non-object in /home/sprucedev/public_html/sites/mihr/wp-content/plugins/wp-views/application/controllers/compatibility/wpa-block-editor/wpa-block-editor.php on line 214"
We haven't created any views yet, just installed in the plugin, so not sure why this error is showing up. Can you help me investigate on this?
Would you mind allowing me to have admin access to the site so that I can have a look ? If there is a specific page that the issue appears on please let me know as well.
I would need to also take a copy of the site so that I can do some further debugging on this issue.
Thank you for the credentials. The problem is actually being caused by the theme, rather the accordion section itself.
There is a helper in our Toolset Views plugin that is checking to see if the post types of the posts being loaded on the page itself. In your case the accordion section is not loading the Post Object, but rather it is just giving the POST ID.
As it stands your theme is a custom theme, so what we can do here is limited. When I checked the other posts being displayed on the page, only the Accordion section isn't returning the Post Object, whilst every other section that is loading posts returns the object itself.
I would suggest that the developers of the theme have another look at this one. The message can be hidden by disabling the wordpress debugging should you so desire at it isn't a function breaking error.