Aftert I activate Toolset blocks plugin, I get the following error:
Notice: Trying to get property 'post_type' of non-object in /var/www/itaslo/web/wp-content/plugins/litho-addons/includes/plugin.php on line 2764
Hello and thank you for contacting the Toolset support.
Would you like to install the theme in one of our tests and let us know how we can reproduce the issue. What page to visit or what steps to follow in order to trigger this notice.
You can log in to my test site with the following URL hidden link
I have already enabled debugging and you can check the debug.log file using the Filester plugin hidden link
Hi Jamal, thanks for your support.
I can send you the whole package of the template and you test it yourself?
Let me know.
You just install and enable the template and various addons it has and as soon as I activate toolset blocks, i get the error 🙁
hidden link theme we are using
I installed the theme and the required plugins, and it seems that this issue appears when Elementor is active.
I changed line 2764 in the addon plugin at "litho-addons/includes/plugin.php" from:
if ( 'sectionbuilder' === $post->post_type ) {
to:
if ( isset($post->post_type) && 'sectionbuilder' === $post->post_type ) {
And it fixed this issue.
Please note that this patch will be lost after updating the plugin. I suggest that you reach out to the theme's authors and suggest this fix.
I hope this helps. Let me know if you have any questions.