• Resolved annicse

    (@annicse)


    Getting this error:
    PHP Fatal error: Uncaught Matomo\Dependencies\DI\NotFoundException: No entry or class found for ‘Matomo\Cache\Lazy’ in /nas/content/live/pensjon/wp-content/plugins/matomo/app/vendor/prefixed/php-di/php-di/src/Container.php:114#012Stack trace:#012#0 /nas/content/live/pensjon/wp-content/plugins/matomo/app/core/Container/Container.php(32): Matomo\Dependencies\DI\Container->get(‘Matomo\Cache\La…’)#012#1 /nas/content/live/pensjon/wp-content/plugins/matomo/app/vendor/prefixed/php-di/php-di/src/Definition/Reference.php(45): Piwik\Container\Container->get(‘Matomo\Cache\La…’)#012#2 /nas/content/live/pensjon/wp-content/plugins/matomo/app/vendor/prefixed/php-di/php-di/src/Definition/Resolver/ResolverDispatcher.php(60): Matomo\Dependencies\DI\Definition\Reference->resolve(Object(Piwik\Container\Container))#012#3 /nas/content/live/pensjon/wp-content/plugins/matomo/app/vendor/prefixed/php-di/php-di/src/Definition/Resolver/ParameterResolver.php(62): Matomo\Dependencies\DI\Definition\Resolver\ResolverDispatcher->resolve(Object(Matomo\Dependencies\D in /nas/content/live/pensjon/wp-content/plugins/matomo/app/vendor/prefixed/php-di/php-di/src/Definition/Resolver/ObjectCreator.php on line 115

    Latest wordpress, nginx server, disabled all plugins as well.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support dizzyatinnocraft

    (@dizzyatinnocraft)

    Hi @annicse, can you check if there’s a file at /path/to/wordpress/wp-content/plugins/matomo/app/vendor/matomo/cache/src/Lazy.php and contents look like https://github.com/matomo-org/matomo-for-wordpress/blob/develop/app/vendor/matomo/cache/src/Lazy.php?

    Thread Starter annicse

    (@annicse)

    Hi @dizzyatinnocraft, I did not find the Lazy.php file. In fact, I don’t see a cache folder inside /wp-content/plugins/matomo/app/vendor/matomo

    Then I went on to download the plugin file from here: https://downloads.www.ads-software.com/plugin/matomo.latest-stable.zip and there I found Lazy.php. I installed this plugin but still having the same issue.

    • This reply was modified 11 months, 1 week ago by annicse.
    Plugin Support dizzyatinnocraft

    (@dizzyatinnocraft)

    @annicse That would be the cause of the error, there should be one there. I just checked the plugin download at https://www.ads-software.com/plugins/matomo/ and the folder is in the archive. So either the plugin install failed, or the folder was deleted for some reason (perhaps some overzealous security measure from your hosting provider). Here are some things you can try:

    • try deleting the plugin files manually and re-installing the plugin through WordPress
    • deleting the plugin files manually, then download the plugin archive manually and extract it’s contents to the /path/to/wordpress/wp-content/plugins/matomo directory

    Can you let me know if either of these works for you?

    Thread Starter annicse

    (@annicse)

    Hi, @dizzyatinnocraft, I installed the plugin from wordpress plugin installer and also by uploading it. Had same issue. Then I uploaded a version which has the Lazy.php file to another fresh install. Then I the plugin worked but showed me some incompatibilities with PHP Cli version and MySQLi support. I am using WPEngine. But it also did not work in my local install (Local by flywheel). I get a 502 nginx error after I activate the plugin. Does not show any php error.

    Plugin Support dizzyatinnocraft

    (@dizzyatinnocraft)

    Hi @annicse, the PHP CLI version/MySQLi notices are separate issues to the fatal, and might be ok. For those, can you post the contents of your system report?

    Regarding WPEngine and Local I’ll see if I can reproduce the issue you’re facing and get back to you hopefully with a cause.

    Plugin Support dizzyatinnocraft

    (@dizzyatinnocraft)

    @annicse the PHP CLI error is just that in Local (and possibly WPEngine), the PHP CLI executable simply isn’t available. Matomo will still work in that case, so you can ignore those errors.

    I wasn’t able to reproduce the fatal error though. Does this happen in Local? Or just on WPEngine? Is it something you can reliably reproduce or does it work sometimes and not other times? This might be something you’ll have to bring up with your hosting provider to fix.

    Plugin Support dizzyatinnocraft

    (@dizzyatinnocraft)

    Hi @annicse, were you able to resolve the issues you were facing? Or do you still need help?

    Plugin Support dizzyatinnocraft

    (@dizzyatinnocraft)

    Marking this as resolved due to lack of response.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Fatal error’ is closed to new replies.