WordPress technical error each day
-
Hello,
we get a technical error message each day from your plugin.
Here is the message received :
Une erreur de type E_ERROR a été causée dans la ligne 50 du fichier /home/clients/xxxxxx/xxxxxx/wp-content/plugins/google-listings-and-ads/src/Admin/Product/Attributes/AttributesTab.php. Message d’erreur : Uncaught TypeError: Argument 1 passed to Automattic\WooCommerce\GoogleListingsAndAds\Admin\Product\Attributes\AttributesTab::__construct() must be an instance of Automattic\WooCommerce\GoogleListingsAndAds\Admin\Admin, string given in /home/clients/xxxxxx/xxxxxx/wp-content/plugins/google-listings-and-ads/src/Admin/Product/Attributes/AttributesTab.php:50
Can you help us to fixe this please ?
-
Hi @babouz44,
Welcome to the Google for WooCommerce forum, and thank you for reaching out. I understand that you’re experiencing a recurring technical error related to the plugin, which can be concerning, especially when it occurs daily and points to a fatal error within the plugin files. I’ll be glad to help you get to the bottom of it.
To better understand what’s going on, could you let us know when you first started noticing this error? Was it after a specific update to the plugin, WooCommerce, or WordPress?
Also, is the error appearing on the frontend of your website, or are you seeing it somewhere in the WordPress admin dashboard? If possible, feel free to share a screenshot showing where the error is displayed; that’ll help us pinpoint the context.
Lastly, please share your full system status report. You can get it by going to WooCommerce → Status, then click “Get system report”, and copy the full contents into https://pastebin.com or https://gist.github.com and share the link here.
Once we have those details, we’ll be in a better position to assist you further. Looking forward to your update!
Hello !
thank you for your answer.
We dont observe anything in front, its just wordpress who send us the message “your site as a technical problem”. This message start to come around the 27 April. Something that is strange is that wordpress say the url where the problem is coming is : https://www.xxxxxx.com/?ithemes-sync-%72equest=1&cid=499831) however ithemes-sync is not installed on this website….
Here is the status message : https://pastebin.com/Xisbyyce-
This reply was modified 11 months ago by
babouz44.
Hi @babouz44,
Just to clarify, is the message you’re referring to being received via email from WordPress, or is it something you’re seeing directly within your site’s dashboard? If it’s an email, could you please share a screenshot of the message using https://snipboard.io? Make sure the screenshot includes the sender and recipient details at the top, as that will help us verify its source.
Also, the system status report link you previously shared from Pastebin is currently unavailable. Could you please generate a new one by going to WooCommerce → Status → Get system report, and pasting it again to https://pastebin.com? When creating the paste, please increase the expiration time and allowed views so we’re able to access it properly.
Once we have the screenshot and a working system status link, we’ll take it from there! Let’s see how it goes!
Sorry for that, here is a new link : https://pastebin.com/PRSmd3s0
and here is the content of the mail :
Bonjour !
WordPress dispose d’une fonctionnalité native permettant de détecter si une extension ou un thème cause une erreur fatale sur votre site, et vous notifie avec cet e-mail automatique.
Ici, WordPress a trouvé une erreur avec l’une de vos extensions, « Google for WooCommerce ».
Commencez par visiter votre site (https://xxxxxxxx.com/) pour vérifier s’il y a des problèmes visibles. Ensuite, visitez la page où une erreur a été relevée (https://xxxxxxxx.com/?ithemes-sync-%72equest=1&cid=499831) et vérifiez si des problèmes sont visibles.
Veuillez contacter votre hébergeur pour une assistance concernant la résolution de ce problème.
Si votre site semble cassé ou si vous ne pouvez pas accéder à votre tableau de bord normalement, WordPress dispose maintenant d’un « mode de récupération ». Cela vous permet de vous connecter en sécurité sur votre tableau de bord afin de chercher la source du problème.
Pour garder votre site en sécurité, ce lien expirera dans 1 jour. Ne vous inquiétez cependant pas : un nouveau lien vous sera envoyé si l’erreur se présente à nouveau.
Si vous cherchez de l’aide pour ce problème, les informations suivantes pourraient vous être demandées :<br class=””>WordPress version 6.7.2<br class=””>Thème actif : Avada Child (version 1.0.0)<br class=””>Extension actuelle : Google for WooCommerce (version 2.9.12)<br class=””>PHP version 7.4.33
Détails de l’erreur
======================
Une erreur de type E_ERROR a été causée dans la ligne 50 du fichier /home/clients/xxxxxxxx/xxxxxxxx/wp-content/plugins/google-listings-and-ads/src/Admin/Product/Attributes/AttributesTab.php. Message d’erreur : Uncaught TypeError: Argument 1 passed to Automattic\WooCommerce\GoogleListingsAndAds\Admin\Product\Attributes\AttributesTab::__construct() must be an instance of Automattic\WooCommerce\GoogleListingsAndAds\Admin\Admin, string given in /home/clients/xxxxxxxx/xxxxxxxx/wp-content/plugins/google-listings-and-ads/src/Admin/Product/Attributes/AttributesTab.php:50
Stack trace:
#0 [internal function]: Automattic\WooCommerce\GoogleListingsAndAds\Admin\Product\Attributes\AttributesTab->__construct(‘Automattic\\WooC…’, Object(Automattic\WooCommerce\GoogleListingsAndAds\Product\Attributes\AttributeManager), Object(Automattic\WooCommerce\GoogleListingsAndAds\MerchantCenter\MerchantCenterService))
#1 /home/clients/xxxxxxxx/xxxxxxxx/wp-content/plugins/google-listings-and-ads/vendor/league/container/src/Definition/Definition.php(229): ReflectionClass->newInstanceArgs(Array)
#2 /home/clients/xxxxxxxx/xxxxxxxx/wp-content/pluginHi there @babouz44,
I had a look at the code related to your error here. First, can you confirm that all Google for WooCommerce functionality on the back end appears to be working correctly? That is:
- under Marketing > Google for WooCommerce, you can load each tab without error (Reports, Product Feed, Attributes, Settings, Shipping)
- each tab appears to be filled with valid data and does not hang or load blank
- products are actually syncing via the Product Feed tab
If all this is true, then I think this might actually be conflict of some time. The code here is trying to instantiate the “AttributeTab” and this is kind of a generic name for an object. So I’m wondering if some other plugin or (more likely) your theme is overstepping in confusion.
Do you have the ability to create a staging site for testing? If so, can you set one up and run a conflict test, with only WooCommerce and Google for WooCommerce installed and active, and a default theme?
More on that here:
https://woocommerce.com/document/how-to-test-for-conflicts/As this error cannot be generated at will, please leave the staging site running for a few days to see if any errors are generated from the staging site pertaining to Google for WooCommerce.
Let us know how that goes!
I’m going to mark this as resolved, as we didn’t receive any update on this. We’ll be here if and/or when you are ready to continue.
If you have a few minutes, we’d love if you could leave us a review: https://ww.wp.xz.cn/support/plugin/google-listings-and-ads/reviews/
-
This reply was modified 11 months ago by
The topic ‘WordPress technical error each day’ is closed to new replies.