@GreenReaper opened this Issue on August 27th 2017

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.

@Findus23 commented on August 27th 2017 Member

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)

app
└── cache
    ├── cache.db
    └── index.db
@sgiehl commented on August 30th 2017 Member

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

@sgiehl commented on August 30th 2017 Member

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.

@s1awa commented on September 12th 2017

@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
@goodspeedal commented on September 12th 2017

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

@mmilano commented on September 15th 2017

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?

@mattab commented on September 18th 2017 Owner

@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

@mattab commented on September 18th 2017 Owner

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?

This Issue was closed on September 18th 2017
Powered by GitHub Issue Mirror