Passer la navigation

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

Ce fil est résolu. Voici une description du problème et la solution proposée.

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 support ticket is created Il y a 2 years, 5 months. 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.

Ce sujet contient 2 réponses, a 2 voix.

Dernière mise à jour par Christopher Amirian Il y a 2 years, 5 months.

Assisté par: Christopher Amirian.

Auteur
Publications
#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?
lien caché

What is the link to your site?
lien caché

#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

Les langues: Anglais (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.