Skip Navigation

[Resolved] Cannot edit widgets (Trying to get property 'ID' of non-object) WC Blocks issue

This support ticket is created 3 years, 6 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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: Asia/Kolkata (GMT+05:30)

This topic contains 4 replies, has 2 voices.

Last updated by joonaN 3 years, 6 months ago.

Assisted by: Minesh.

Author
Posts
#2086537
Screenshot 2021-06-13 at 12.10.31.jpg

I am trying to: Edit widgets or access customizer

Link to a page where the issue can be seen: I can provide links to admin, if you need them.

I expected to see: No errors / Be able to edit widgets

Instead, I got: Error messages / notices, and I can't edit widgets (they appear buggy)

Notice: Trying to get property 'ID' of non-object in /wp-content/plugins/woocommerce-views/application/Helpers/wcviews-blocks.php on line 123

Notice: Trying to get property 'post_type' of non-object in /wp-content/plugins/woocommerce-views/application/Helpers/wcviews-blocks.php on line 127

#2087863

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I see you are using number of third party plugins. In order to minimize the cause of the issue as well as to ensure there in no theme/plugin conflict.

*** Please make a FULL BACKUP of your database and website.***
Could you please try to resolve your issue by deactivating all third-party plugins as well as with the default theme to check for any possible conflicts with any of the plugins or themes? Do you see any difference?

#2089197

It looks like the problem was the new block-based widget editor that comes with the latest Gutenberg plugin (10.8.0 at the time of writing). I disabled Gutenberg (the separate plugin, which has features that are not available in the current WordPress version), and it fixed the issue. I suggest you start looking into this issue now, as the standard WordPress widget editor will eventually be replaced by this new Gutenberg-style block-enabled editor.

#2089337

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Great - thanks.

I'll share the insight with our Devs. You are welcome to mark resolve this ticket.

#2092237

I'm looking forward to Gutenberg block-based widget editor compatibility fixes.