Skip to content
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

Installed Matomo for Wordpress but getting an error of type E_ERROR #816

Closed
enual opened this issue Jul 10, 2023 · 8 comments
Closed

Installed Matomo for Wordpress but getting an error of type E_ERROR #816

enual opened this issue Jul 10, 2023 · 8 comments
Labels
Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users.

Comments

@enual
Copy link

enual commented Jul 10, 2023

Issue: Getting an error once Matomo plugin is activated.

Error:
An error of type E_ERROR was found in line 136 of the file /homepages/26/d963816289/htdocs/wp-ap/wp-content/plugins/matomo/app/vendor/php-di/php-di/src/Container.php caused. Error message: Uncaught Error: Class 'DI\NotFoundException' not found in /homepages/26/d963816289/htdocs/wp-ap/wp-content/plugins/matomo/app/vendor/php-di/php-di/src/Container .php:136
Stack trace:
#0 /homepages/26/d963816289/htdocs/wp-ap/wp-content/plugins/matomo/app/core/Container/StaticContainer.php(81): DI\Container->get()
#1 /homepages/26/d963816289/htdocs/wp-ap/wp-content/plugins/matomo/classes/WpMatomo/Admin/SystemReport.php(1351): Piwik\Container\StaticContainer::get()
#2 /homepages/26/d963816289/htdocs/wp-ap/wp-content/plugins/matomo/classes/WpMatomo/Admin/SystemReport.php(277): WpMatomo\Admin\SystemReport->get_browser_info()
#3 /homepages/26/d963816289/htdocs/wp-ap/wp-content/plugins/matomo/classes/WpMatomo/Admin/SystemReport.php(288): WpMatomo\Admin\SystemReport->get_error_tables()
#4 /homepages/26/d963816289/htdocs/wp-ap/wp-content/plugins/matomo/classes/WpMatomo/Admin/Menu.php(183): WpMatomo\Admin\SystemReport->errors_present()
#5 /homepages/26/d963816289/htdocs/wp-ap/wp-includes/class-wp-hook.php(308): WpMatomo

System:
Wordpress 6.22v
PHP 8.2
Matomo for Wordpress plugin: 4.14.2

@ChonPaSa
Copy link

ChonPaSa commented Jul 10, 2023

Getting the same error:

Ein Fehler vom Typ E_ERROR wurde in der Zeile 136 der Datei wp-content/plugins/matomo/app/vendor/php-di/php-di/src/Container.php verursacht. Fehlermeldung: Uncaught Error: Class "DI\NotFoundException" not found in wp-content/plugins/matomo/app/vendor/php-di/php-di/src/Container.php:136 Stack trace:

#0 /wp-content/plugins/matomo/app/core/Container/StaticContainer.php(81): DI\Container->get()
#1 /wp-content/plugins/matomo/classes/WpMatomo/Admin/SystemReport.php(1351): Piwik\Container\StaticContainer::get()
#2 /wp-content/plugins/matomo/classes/WpMatomo/Admin/SystemReport.php(277): WpMatomo\Admin\SystemReport->get_browser_info()
#3 /wp-content/plugins/matomo/classes/WpMatomo/Admin/SystemReport.php(288): WpMatomo\Admin\SystemReport->get_error_tables()
#4 /wp-content/plugins/matomo/classes/WpMatomo/Admin/Menu.php(183): WpMatomo\Admin\SystemReport->errors_present()
#5 /wp-includes/class-wp-hook.php(308): WpMatomo\Admin\Menu->add_menu()
#6 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#7 /wp-includes/plugin.php(517): WP_Hook->do_action()
#8 /wp-admin/includes/menu.php(155): do_action()
#9 /wp-admin/menu.php(420): require_once('/homepages/40/d...')
#10 /wp-admin/admin.php(158): require('/homepages/40/d...')
#11 {main}

thrown

Wordpress 6.22
PHP 8.0
Matomo: 4.14.2

@diosmosis
Copy link
Member

Hi @enual and @ChonPaSa, apologies for the late reply. Are you still experiencing this issue with the latest Matomo for Wordpress version?

@diosmosis diosmosis added Potential Bug Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users. and removed Potential Bug labels Sep 5, 2023
@ChonPaSa
Copy link

ChonPaSa commented Sep 5, 2023

Hi @diosmosis yes, still same issue

@diosmosis
Copy link
Member

@ChonPaSa would you be able to provide the list of plugins you're using wordpress with? And can you check if any of those plugins have a vendor/php-di folder in them?

@ChonPaSa
Copy link

ChonPaSa commented Sep 6, 2023

@diosmosis Here is the list of active plugins:

Plugin Version
301 Redirects Version 2.73 von WebFactory Ltd
Advanced Custom Fields PRO Version 6.2.0 von WP Engine
Block Manager Version 1.2.5 von Darren Cooney
Complianz Privacy Suite (GDPR/CCPA) premium Version 6.5.3 von Really Simple Plugins (Aktuelle Version: 6.5.4)
Duplicate Page Version 4.5.2 von mndpsingh287
Easy WP SMTP Version 2.1.2 von Easy WP SMTP
Error Log Viewer by BestWebSoft Version 1.1.2 von BestWebSoft
Geometric Graphic Generator Version 1.0.0 von Lucas Garbe
Polylang Pro Version 3.4.5 von WP SYNTEX
Post Types Order Version 2.1 von Nsp Code
Query Monitor Version 3.13.1 von John Blackbourn
Simple Custom Post Order Version 2.5.6 von Colorlib
UpdraftPlus - Backup/Restore Version 2.23.9.26 von UpdraftPlus.Com, DavidAnderson (Aktuelle Version: 2.23.10.26)
User Role Editor Version 4.64 von Vladimir Garagulya
wp-Typography Version 5.9.1 von Peter Putzer
WP Rocket Version 3.14.3 von WP Media (Aktuelle Version: 3.15)
Yoast SEO Version 20.13 von Team Yoast (Aktuelle Version: 21.1)

None of them hast php-di. This was only found in mamoto/app/vendor

Thanks for looking into this

@diosmosis
Copy link
Member

@ChonPaSa I don't know if this is the exact cause of the problem, but at least one of your plugins isn't compatible with Matomo for Wordpress: #642

It's possible some of the other ones are as well, as the error message you're getting seems a bit different than what I'd expect. If you're willing to try see if our plugin works when some or all of the other plugins are deactivated, that would be very helpful in case there's another plugin that causes problems for ours.

As for WP Rocket, we are actively working towards fixing those compatibility issues in the near future.

@diosmosis
Copy link
Member

@ChonPaSa Matomo for WordPress 5 has increased compatibility with other WordPress plugins. If you are able, can you try using the new version and seeing if you still have issues?

Since the issue should be fixed I'll close this for now, but if you have further feedback or experience new issues, feel free to comment and I'll re-open it.

@ChonPaSa
Copy link

@diosmosis it seems to be working now. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users.
Projects
None yet
Development

No branches or pull requests

3 participants