-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Critical error in Wordpress - only for Matomo plugin #618
Comments
did you received an email which could give us more information regarding your issue? Kind regards Mat |
Hi, yes I did. I'll have to go look for the log files. But here is the email: Howdy! Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email. In this case, WordPress caught an error with one of your plugins, Matomo Analytics - Ethical Stats. Powerful Insights.. First, visit your website (https://hookedbythatbook.com/) and check for any visible issues. Next, visit the page where the error was caught (https://hookedbythatbook.com/wp-admin/admin.php?page=matomo-summary) and check for any visible issues. Please contact your host for assistance with investigating this issue further. If your site appears broken and you can't access your dashboard normally, WordPress now has a special "recovery mode". This lets you safely login to your dashboard and investigate further. To keep your site safe, this link will expire in 1 day. Don't worry about that, though: a new link will be emailed to you if the error occurs again after it expires. When seeking help with this issue, you may be asked for some of the following information: Error DetailsAn error of type E_COMPILE_ERROR was caused in line 210 of the file /home1/hookedb6/public_html/wp-content/plugins/matomo/app/vendor/php-di/php-di/src/Container.php. Error message: Declaration of DI\Container::has($name) must be compatible with Psr\Container\ContainerInterface::has(string $id): bool |
Where do I find the wordpress or php log files? |
I found this in an error log: [14-Jun-2022 15:16:43 UTC] PHP Fatal error: Declaration of DI\Container::has($name) must be compatible with Psr\Container\ContainerInterface::has(string $id): bool in /home1/hookedb6/public_html/wp-content/plugins/matomo/app/vendor/php-di/php-di/src/Container.php on line 210 It was repeated several times. Well, I guess this is the same error that was mentioned in the email that I posted earlier. |
Hi, Thanks. Mat |
Only when I'm in the admin side of my wordpress page and I go down to the Matomo Analysis menu. If I click on Settings, for example, I see that error. And on most of the other options as well. The rest of the site works fine with no issues. |
duplicate of #596 |
Hi, I looked at the other post with the same issue, and I don't have any of those plugins installed. Also, the Matomo plugin worked just fine with everything I have and I didn't add any new ones. Is it possible for me, with this error, to save my Matomo data somehow and then try to reinstall the plugin? I would prefer not to lose anything already collected. |
Hi, |
Thanks so much! I can't access the Advanced Tab - I get the same critical error on that page. I can wait a bit. |
Would you mind execute this shell command on your server and copy paste the result? Thanks in advance Mat |
Hi, I need some help executing that. I'm on a WordPress site hosted on Bluehost. Where do I go to run the command? Thanks |
Hi do you have ssh access to your webserver? if you don't have a ssh access, just run a search in your plugins directory for the name php-di. I just want to know if you have more than one php-di folders in your plugin directory. Kind regards Mat |
Hi, the search found two files: /public_html/wp-content/plugins/matomo/app/vendor/php-di /public_html/wp-content/plugins/matomo/app/vendor/php-di/php-di |
Thank you |
Can you do the same thing for a different file? Kind regards Mat |
Hi, It found the following: /public_html/wp-content/plugins/updraftplus/vendor/aws/aws-sdk-php/src/ResponseContainerInterface.php /public_html/wp-content/plugins/bluehost-wordpress-plugin/vendor/psr/container/src/ContainerInterface.php /public_html/wp-content/plugins/wordpress-seo/vendor_prefixed/symfony/dependency-injection/ContainerInterface.php /public_html/wp-content/plugins/wordpress-seo/vendor_prefixed/symfony/dependency-injection/ResettableContainerInterface.php /public_html/wp-content/plugins/wordpress-seo/vendor_prefixed/psr/container/src/ContainerInterface.php /public_html/wp-content/plugins/matomo/app/vendor/psr/container/src/ContainerInterface.php Thank you so much! |
Thank you. Mat |
Hi, this is it: " <?php " namespace Psr\Container; " use Throwable; " /** Thank you so much for all your effort and time. I truly appreciate it. (I added a " at the start of each line, otherwise the code doesn't show in the message box. |
Thanks. Kind regards Mat |
Oh, sorry, don't know what happened. Here it is: ' <?php declare(strict_types=1); namespace Psr\Container; /**
} Thanks. |
Unfortunately we can't do anything for this issue: your have two two different versions of the ContainerInterface.php file (one comiing from your bluehost plugin, one in the matomo) which are incompatible in your version of PHP. Mat |
duplicate of #233 |
Hi, thank you so much. I'll see what I can do and let you know if anything changes. |
Just thought I'd let you know that I ended up removing the Bluehost plugin and everything is working perfectly fine now. Thanks. |
Hi,
I'm on Wordpress 6.0 and have been using Matomo for a few months now. I've had no issues with it until this morning. Some plugins have updated in the last few days, but I haven't added any new ones. Today I received the following message when I tried to look at the summary report on Wordpress:
There has been a critical error on this website. Please check your site admin email inbox for instructions.
All other plugins work perfectly fine.
Here is a copy of the system report:
Endpoints
Crons
Matomo Settings
Logs
WordPress
WordPress Plugins
MU Plugins
Plugins
Server
Database
Browser
The text was updated successfully, but these errors were encountered: