Skip Navigation

[Resolved] Warning: Attempt to read property "post_type" on int in /customers/6/f/6/meetthe

This thread is resolved. Here is a description of the problem and solution.

Problem:
I am trying to view the map on m, y website, generated by the WP Maps Pro plugin. Since the plugin upgrade, the map appears after a long list of errors, specifically:

Warning: Attempt to read property "post_type" on int in /wp-content/plugins/toolset-blocks/application/controllers/compatibility/wpa-block-editor/wpa-block-editor.php on line 220

Solution:
The issue seems related to compatibility between Flippercode's "WP_Query" plugin and Toolset Blocks. Downgrading the Flippercode plugin resolves the problem. Flippercode addressed it by optimizing wp-query time, fetching only the post_id.

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.

This topic contains 2 replies, has 2 voices.

Last updated by Christopher Amirian 11 months, 3 weeks ago.

Assisted by: Christopher Amirian.

Author
Posts
#2670631

Tell us what you are trying to do?
the meettheredbaron.com/map2 page show a map (by WP Maps Pro plugin). But since an upgrade of their plugin, the map is preceded by a long list of:

Warning: Attempt to read property "post_type" on int in /customers/6/f/6/meettheredbaron.com/httpd.www/wp-content/plugins/toolset-blocks/application/controllers/compatibility/wpa-block-editor/wpa-block-editor.php on line 220

Is there any documentation that you are following?
No, I am putting this request for support, because Flippercode asks me to. They claim that your Toolset Blocks plugin affects their "WP_Query" plugin. The problem disappears when I downgrade their plugin to a previous version.

Is there a similar example that we can see?
hidden link

What is the link to your site?
hidden link

#2670645

Additional info.
Flippercode took an action that resolved the issue. They wrote :

"We have reduced the time of the wp-query using fetching only the post_id in this version.
But the toolset plugin does not allow us to fetch only post_id. We have fixed this issue using a hook.

We have added this hook on theme function.php at last"

Is this a real solution?

#2670719

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

That should be a sufficient solution. I am not sure about the details of the methods they use in their code so I am not the correct person to assess if it is the best solution.

If it is working ok and it is a matter of a simple Hook added to your theme then that should be no problem.

Thanks.

#2670749

Thank you very much.