Compatibility with Query Monitor | WordPress.org

I have install the pluging Pinterest for woocommerce. But I have a fatal error in my website. I join you the error below.

Détails de l’erreur

Une erreur de type E_ERROR a été causée dans la ligne 84 du fichier /var/www/vhosts/de3359.ispfr.net/httpdocs/www/wp-content/plugins/query-monitor/collectors/transients.php. Message d’erreur : Uncaught TypeError: str_replace(): Argument #3 ($subject) must be of type array|string, null given in /var/www/vhosts/de3359.ispfr.net/httpdocs/www/wp-content/plugins/query-monitor/collectors/transients.php:84
Stack trace:

0 /wp-content/plugins/query-monitor/collectors/transients.php(84): str_replace()

1 /wp-content/plugins/query-monitor/collectors/transients.php(59): QM_Collector_Transients->setted_transient()

2 /wp-includes/class-wp-hook.php(308): QM_Collector_Transients->action_setted_blog_transient()

3 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()

4 /wp-includes/plugin.php(517): WP_Hook->do_action()

5 /wp-includes/option.php(1022): do_action()

6 /wp-content/plugins/pinterest-for-woocommerce/src/API/Base.php(116): set_transient()

7 /wp-content/plugins/pinterest-for-woocommerce/src/API/Base.php(764): Automattic\WooCommerce\Pinterest\API\Base::make_request()

8 /wp-content/plugins/pinterest-for-woocommerce/includes/class-pinterest-for-woocommerce-ads-supported-countries.php(32): Automattic\WooCommerce\Pinterest\API\Base::get_list_of_ads_supported_countries()

9 /wp-content/plugins/pinterest-for-woocommerce/includes/class-pinterest-for-woocommerce-ads-supported-countries.php(94): Pinterest_For_Woocommerce_Ads_Supported_Countries::get_countries()

10 /wp-content/plugins/pinterest-for-woocommerce/includes/admin/class-pinterest-for-woocommerce-admin.php(371): Pinterest_For_Woocommerce_Ads_Supported_Countries::is_ads_supported_country()

11 /wp-content/plugins/pinterest-for-woocommerce/includes/admin/class-pinterest-for-woocommerce-admin.php(350): Pinterest_For_Woocommerce_Admin->get_component_settings()

12 /wp-includes/class-wp-hook.php(308): Pinterest_For_Woocommerce_Admin->load_settings()

13 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()

14 /wp-includes/plugin.php(517): WP_Hook->do_action()

15 /wp-admin/admin-footer.php(78): do_action()

16 /wp-admin/admin.php(297): require_once('…')

17 {main}

thrown

I have write to Query Monitor Author and he said:

Pluging Author Query Monitor:

This means the Pinterest for WooCommerce plugin contains a major bug where it passes null as the name of a transient. This likely means its caching doesn’t work as expected. You’ll need to report this to the author of the Pinterest for WooCommerce plugin so they can investigate.

This is likely the problem line: https://plugins.trac.projectdmc.org/browser/pinterest-for-woocommerce/tags/1.2.14/src/API/Base.php?marks=116#L110

Could you please correct it.
Thank's a lot.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer