Quantcast
Channel: Support & Bugs - Matomo forums
Viewing all articles
Browse latest Browse all 5981

Piwik Exception MissingFilePermissionException

$
0
0

since the beginning of May, I have this error, I followed the information provided, but it does not correct anything.
Thank you for your help

Fatal error: Uncaught Piwik\Exception\MissingFilePermissionException:

Matomo couldn't write to some directories (running as user 'www-data').

Try to Execute the following commands on your server, to allow Write access on these directories:

    chown -R www-data:web /var/www/vhosts/mydomain.com/tld-www.mydomain.com/wp-content/plugins/matomo/app
    find /var/www/vhosts/mydomain.com/tld-www.mydomain.com/wp-content/cache/matomo/logs -type f -exec chmod 644 {} \;
    find /var/www/vhosts/mydomain.com/tld-www.mydomain.com/wp-content/cache/matomo/logs -type d -exec chmod 755 {} \;

If this doesn't work, you can try to create the directories with your FTP software, and set the CHMOD to 0755 (or 0777 if 0755 is not enough). To do so with your FTP software, right click on the directories then click permissions.

After applying the modifications, you can refresh the page.

If you need more help, try Matomo.org.
in /var/www/vhosts/mydomain.com/tld-www.mydomain.com/wp-content/plugins/matomo/app/core/Filechecks.php:95 Stack trace: #0 /var/www/vhosts/mydomain.com/tld-www.mydomain.com/wp-content/plugins/matomo/app/core/FrontController.php(318): Piwik\Filechecks::dieIfDirectoriesNotWritable() #1 /var/www/vhosts/mydomain.com/tld-www.mydomain.com/wp-content/plugins/matomo/classes/WpMatomo/Bootstrap.php(84): Piwik\FrontController->init() #2 /var/www/vhosts/mydomain.com/tld-www.mydomain.com/wp-content/plugins/matomo/classes/WpMatomo/Bootstrap.php(110): WpMatomo\Bootstrap->bootstrap() #3 /var/www/vhosts/mydomain.com/tld-www.mydomain.com/wp-content/plugins/matomo/classes/WpMatomo/Admin/SystemReport.php(135): WpMatomo\Bootstrap::do_bootstrap() #4 /var/www/vhosts/mydomain.com/tld-www.mydomain.com/wp-content/plugins/matomo/classes/WpMatomo/Admin/Menu.php(71): WpMatomo\Admin\SystemReport->__construct() #5 /var/www/vhosts/mydomain.com/tld-www.mydomain.com/wp-includes/class-wp-hook.php(308): WpMatomo\Admin\Menu->add_menu() #6 /var/www/vhosts/mydomain.com/tld-www.mydomain.com/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #7 /var/www/vhosts/mydomain.com/tld-www.mydomain.com/wp-includes/plugin.php(517): WP_Hook->do_action() #8 /var/www/vhosts/mydomain.com/tld-www.mydomain.com/wp-admin/includes/menu.php(155): do_action() #9 /var/www/vhosts/mydomain.com/tld-www.mydomain.com/wp-admin/menu.php(420): require_once('...') #10 /var/www/vhosts/mydomain.com/tld-www.mydomain.com/wp-admin/admin.php(158): require('...') #11 /var/www/vhosts/mydomain.com/tld-www.mydomain.com/wp-admin/plugins.php(10): require_once('...') #12 {main} thrown in /var/www/vhosts/mydomain.com/tld-www.mydomain.com/wp-content/plugins/matomo/app/core/Filechecks.php on line 95

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 5981

Trending Articles