After having auto update enabled in WP, now I can access my installation only after deactivating Matomo. This happened on the update from latest v3 to v4.
This is the error message I get:
An error of type E_COMPILE_ERROR was caused in line 135 of the file /www/htdocs/w0158e93/project-newzealand.com/wp-content/plugins/matomo/app/vendor/php-di/php-di/src/Definition/Helper/CreateDefinitionHelper.php . Error message: Declaration of DI\Definition\Helper\CreateDefinitionHelper::getDefinition(string $entryName): DI\Definition\Definition must be compatible with DI\Definition\Helper\DefinitionHelper::getDefinition($entryName)
Matomo HTTP Tracking API - WP Rest API: ($site_url/index.php?rest_route=/matomo/v1/hit/)
Crons
Server time: 2020-12-01 23:34:23
Blog time: 2020-12-02 12:34:23 (Below dates are shown in blog timezone)
Sync users & sites: Next run: 2020-12-02 11:51:54 (-42 min 29s) ( Last started: 2020-12-01 11:54:06 (-1 days 0 hours). Last ended: 2020-12-01 11:54:06 (-1 days 0 hours). Interval: daily)
Archive: Next run: 2020-12-02 10:51:54 (-1 hours 42 min) ( Last started: 2020-12-01 11:54:06 (-1 days 0 hours). Last ended: 2020-12-01 11:54:08 (-1 days 0 hours). Interval: hourly)
Update GeoIP DB: Next run: 2020-12-05 11:51:54 (2 days 23 hours) ( Last started: 2020-11-05 11:52:58 (-27 days 0 hours). Last ended: 2020-11-05 11:52:59 (-27 days 0 hours). Interval: matomo_monthly)
Mandatory checks
PHP version >= : ok
PDO extension: ok
PDO\MYSQL extension: ok
MYSQLI extension: ok
Other required extensions: ok
Required functions: ok
Required PHP configuration (php.ini): ok
Directories with write access: ok
Directories with write access for Tag Manager: ok
Optional checks
Tracker status: ok
Memory limit: ok
Time zone: ok
Open URL: ok
PageSpeed disabled: ok
GD > 2.x + Freetype (graphics): ok
Other extensions: ok
Other functions: ok
Filesystem: ok
Warning Last Successful Archiving Completion: warning (Archiving last ran successfully on Monday, November 30, 2020 22:54:08 which is 1 days 00:40:14 ago )
any chance you could send me the system report when all the plugins are activated? or a list of all directories in your wp-content/plugins directory? This way I could easily install the same plugins. Currently only the 3 plugins seem activated and with those 3 I can’t reproduce it yet. This would simplify a lot and save me half an hour or so trying to find all the same plugins. Thanks for this.
Thanks @thomas_matomo for getting back to me.
I tried to get the system information when everything is on. But it crashes right away and Matomo won’t let me access anything. So sorry at the moment, it’s a no.
However, all the plugins are activated under normal circumstances.
The only one I usually would not have, is the WP Staging plugin.
If it helps you, I can try to find out which plugin makes it crash, by activating one after the other.
Let me know if that saves you heaps of time. Happy to assist where I can.
@MoD666 thanks for this. I have installed as many as possible but could not reproduce the issue yet. Some plugins like Fluent Forms, reSmush, OptimizeBuilder and OptimizePress seem to not be on the WordPress plugins directory and could therefore not install it.
Any chance you have access to your server on the command line (bash)? If so, could you check which plugins contain the file CreateDefinitionHelper.php like this find . -name "CreateDefinitionHelper.php"? I assume this won’t be possible but wanted to ask.
For Optimize Press, I have run a test. I deactivated Optimize Press Dashboard and Builder and had a look if the error is gone.
This is what I did:
Created a staging website.
Deactivated all plugins.
Activated matomo, works fine then. No trouble without any other plugins running.
Activated optimize press dashboard, still works fine.
Activated optimize press builder, now matomo crashes. So from my understanding I’d say it’s a bug in combination with the Optimize Press Builder (v3).
Hope this helps, will send them a message regarding this issue and ask them to check for it as well. Have send them a support query and linked this thread, hope they will add some useful informations.
Anything else I should do?
Sadly I can’t help with the CreateDefinitionHelper, as I don’t have server access. Sorry.
@thomas_matomo have updatet some informations. Hope you had a good weekend.
Optimize Press got back to me saying the following:
Hi Julian,
Thank you for the response. We do understand your situation but unfortunately, I am no in position to contact them directly. However, I recommend that perhaps you can ask them to contact us regarding about this matter and our higher ups will look into this further. You can ask them if after doing some troubleshooting, the issue still persists.
Anyway, I activated the OptimizePress plugins in your site (I used my test license for the moment) and the Matomo v4 plugin but I’m afraid I was not able to replicate the issue. I can access the OP3 pages without any error. See this short video - https://share.getcloudapp.com/QwublAEB
Could you please advise how we can replicate the issue?
If you have other questions, please let us know.
Kindest regards, …
So seems like they were not too keen on reading this post, have tried to get them to read this at least 3 times. But however, as we know where it comes from now…
Hi @MoD666 thank you very much for all this work. Very appreciated!
I only have an older version but it looks like OptimizePress Dashboard maybe causing the issue and not OptimizeBuilder? It’s possible though that a newer version of OptimizeBuilder may cause this issue. I will try to reach out to them and explain similar to https://wordpress.org/support/topic/php-di-upgrade/
We have been spending quite some time trying to figure out any way to make this work but we couldn’t find any way that will work. I’m hoping they might consider upgrading their PHP-DI library as well as it would be needed for PHP 8 support. I’ll get in touch with them now and otherwise there is very unfortunately only the option to either disable Matomo or the other plugin. Sorry about that and if they get back to me I will let you know.