Matomo: System Check says to delete vendor/szymach/c-pchart/app; doing so breaks Piwik

Created on 27 Aug 2017  ·  8Comments  ·  Source: matomo-org/matomo

The System Check reported:

Directories were found in your Piwik but we didn't expect them.
--> Please delete these directories to prevent errors. <--

Directory to delete: vendor/szymach/c-pchart/app


To delete all these directories at once, you can run this command:
rm -Rf /home/harmony-prod/html/piwik/vendor/szymach/c-pchart/app

However, I did so, and then it started warning me about missing files inside this directory.
After an Apache restart, Piwik failed to load completely:

PHP Warning: require([censored]/piwik/vendor/composer/../szymach/c-pchart/src/Resources/data/constants.php): failed to open stream: No such file or directory in [censored]/piwik/vendor/composer/autoload_real.php on line 70
PHP Fatal error:  require(): Failed opening required '[censored]/piwik/vendor/composer/../szymach/c-pchart/src/Resources/data/constants.php' (include_path='[censored]/piwik/vendor/pear/pear_exception:[censored]/html/piwik/vendor/pear/console_getopt:[censored]/piwik/vendor/pear/pear-core-minimal/src:[censored]/piwik/vendor/pear/archive_tar:.:/usr/share/php:/usr/share/pear') in [censored]/piwik/vendor/composer/autoload_real.php on line 70

Reinstalling from the build's tar.gz resulted in a resumption of the initial System Check warning.

I am on Piwik 3.0.5-b2 on Debian jessie with PHP 5.6.30-0+deb8u1 and a backport of Apache 2.4.25.

Bug Task duplicate

All 8 comments

Seems like a false alarm.

The folder vendor/szymach/c-pchart/app is included in the latest build.zip (even though it seems to only include a cache file)

└── cache
    ├── cache.db
    └── index.db

The problem is, that those files aren't listed in the manifest.inc.php. Will check why this is the case

Ok. Those files aren't included in the build zip, but seems that they might be created under some circumstances. Guess we should exclude them from integrity check.

@mattab @sgiehl

I just upgraded two server to Piwik 3.1.0

And this comes up in System Check

Directories were found in your Piwik but we didn't expect them.
--> Please delete these directories to prevent errors. <--

Directory to delete: vendor/szymach/c-pchart/app


To delete all these directories at once, you can run this command:
rm -Rf /var/www/example.com/vendor/szymach/c-pchart/app

Same here, @s1awa , update to Piwik 3.1.0 (I am using bitnami AWS build).
Got the same message in system check.

having.had the same issue with 3.1.0.

if one has gone and deleted these directories (following what the app says),
and there is no backup to restore from,
what can be done to manually restore the files from the piwik install?

@mmilano it should be safe to delete this directory vendor/szymach/c-pchart/app and don't think you'd need to restore it from backup, or did you experience some problem after deleting it?

Otherwise you can simply re-download Piwik and reupload those files from the piwik ZIP

Should be fixed in https://github.com/piwik/piwik/pull/12060

Could you try upgrading to 3.1.1-b2 and you shouldn't see this integrity message anymore?

Was this page helpful?
0 / 5 - 0 ratings