Title: Fatal error
Last modified: April 15, 2024

---

# Fatal error

 *  Resolved [annicse](https://wordpress.org/support/users/annicse/)
 * (@annicse)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-4663/)
 * 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](https://wordpress.org/support/users/dizzyatinnocraft/)
 * (@dizzyatinnocraft)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-4663/#post-17688819)
 * Hi [@annicse](https://wordpress.org/support/users/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](https://github.com/matomo-org/matomo-for-wordpress/blob/develop/app/vendor/matomo/cache/src/Lazy.php)?
 *  Thread Starter [annicse](https://wordpress.org/support/users/annicse/)
 * (@annicse)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-4663/#post-17692956)
 * Hi [@dizzyatinnocraft](https://wordpress.org/support/users/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.wordpress.org/plugin/matomo.latest-stable.zip](https://downloads.wordpress.org/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 2 years, 1 month ago by [annicse](https://wordpress.org/support/users/annicse/).
 *  Plugin Support [dizzyatinnocraft](https://wordpress.org/support/users/dizzyatinnocraft/)
 * (@dizzyatinnocraft)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-4663/#post-17693003)
 * [@annicse](https://wordpress.org/support/users/annicse/) That would be the cause
   of the error, there should be one there. I just checked the plugin download at
   [https://wordpress.org/plugins/matomo/](https://wordpress.org/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](https://wordpress.org/support/users/annicse/)
 * (@annicse)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-4663/#post-17693413)
 * Hi, [@dizzyatinnocraft](https://wordpress.org/support/users/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](https://wordpress.org/support/users/dizzyatinnocraft/)
 * (@dizzyatinnocraft)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-4663/#post-17695086)
 * Hi [@annicse](https://wordpress.org/support/users/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](https://wordpress.org/support/users/dizzyatinnocraft/)
 * (@dizzyatinnocraft)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-4663/#post-17695221)
 * [@annicse](https://wordpress.org/support/users/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](https://wordpress.org/support/users/dizzyatinnocraft/)
 * (@dizzyatinnocraft)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-4663/#post-17712008)
 * Hi [@annicse](https://wordpress.org/support/users/annicse/), were you able to
   resolve the issues you were facing? Or do you still need help?
 *  Plugin Support [dizzyatinnocraft](https://wordpress.org/support/users/dizzyatinnocraft/)
 * (@dizzyatinnocraft)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-4663/#post-17715575)
 * 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.

 * ![](https://ps.w.org/matomo/assets/icon-256x256.png?rev=3531741)
 * [Matomo Analytics - Powerful, Privacy-First Insights for WordPress](https://wordpress.org/plugins/matomo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/matomo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/matomo/)
 * [Active Topics](https://wordpress.org/support/plugin/matomo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/matomo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/matomo/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [dizzyatinnocraft](https://wordpress.org/support/users/dizzyatinnocraft/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-4663/#post-17715575)
 * Status: resolved