Skip Navigation

[Resolved] Error when activating Toolset Blocks plugin, using Litho theme

This support ticket is created 3 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9:00 – 13:00
14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 - - 14:00 – 18:00

Supporter timezone: Africa/Casablanca (GMT+01:00)

This topic contains 5 replies, has 2 voices.

Last updated by Jamal 3 years, 8 months ago.

Assisted by: Jamal.

Author
Posts
#2216701
scree2.jpg
scree.png

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

#2216869

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

#2218321

Hi Jamal, thanks for your support.
I can send you the whole package of the template and you test it yourself?
Let me know.

#2218335

You just install and enable the template and various addons it has and as soon as I activate toolset blocks, i get the error 🙁

#2218379

hidden link theme we are using

#2218489

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.