Raft of PHP errors after update

Updated to the new release 2.16 and when browsing events and changing the date to a week-long range, I get all these PHP errors…

WARNING: /PATH-TO-PIWIK-REDACTED-FOR-SECURITY/piwik/core/Db/BatchInsert.php(118): Warning - is_dir(): open_basedir restriction in effect. File(/var/tmp/) is not within the allowed path(s): (/PATH-TO-PIWIK-REDACTED-FOR-SECURITY:/var/zpanel/temp/) - Piwik 2.16.0 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)
WARNING: /PATH-TO-PIWIK-REDACTED-FOR-SECURITY/piwik/core/Db/BatchInsert.php(118): Warning - is_dir(): open_basedir restriction in effect. File(/var/tmp/) is not within the allowed path(s): (/PATH-TO-PIWIK-REDACTED-FOR-SECURITY:/var/zpanel/temp/) - Piwik 2.16.0 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)
WARNING: /PATH-TO-PIWIK-REDACTED-FOR-SECURITY/piwik/core/Db/BatchInsert.php(118): Warning - is_dir(): open_basedir restriction in effect. File(/var/tmp/) is not within the allowed path(s): (/PATH-TO-PIWIK-REDACTED-FOR-SECURITY:/var/zpanel/temp/) - Piwik 2.16.0 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)
WARNING: /PATH-TO-PIWIK-REDACTED-FOR-SECURITY/piwik/core/Db/BatchInsert.php(118): Warning - is_dir(): open_basedir restriction in effect. File(/var/tmp/) is not within the allowed path(s): (/PATH-TO-PIWIK-REDACTED-FOR-SECURITY:/var/zpanel/temp/) - Piwik 2.16.0 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)
WARNING: /PATH-TO-PIWIK-REDACTED-FOR-SECURITY/piwik/core/Db/BatchInsert.php(118): Warning - is_dir(): open_basedir restriction in effect. File(/var/tmp/) is not within the allowed path(s): (/PATH-TO-PIWIK-REDACTED-FOR-SECURITY:/var/zpanel/temp/) - Piwik 2.16.0 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)
WARNING: /PATH-TO-PIWIK-REDACTED-FOR-SECURITY/piwik/core/Db/BatchInsert.php(118): Warning - is_dir(): open_basedir restriction in effect. File(/var/tmp/) is not within the allowed path(s): (/PATH-TO-PIWIK-REDACTED-FOR-SECURITY:/var/zpanel/temp/) - Piwik 2.16.0 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)
WARNING: /PATH-TO-PIWIK-REDACTED-FOR-SECURITY/piwik/core/Db/BatchInsert.php(118): Warning - is_dir(): open_basedir restriction in effect. File(/var/tmp/) is not within the allowed path(s): (/PATH-TO-PIWIK-REDACTED-FOR-SECURITY:/var/zpanel/temp/) - Piwik 2.16.0 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)
WARNING: /PATH-TO-PIWIK-REDACTED-FOR-SECURITY/piwik/core/Db/BatchInsert.php(118): Warning - is_dir(): open_basedir restriction in effect. File(/var/tmp/) is not within the allowed path(s): (/PATH-TO-PIWIK-REDACTED-FOR-SECURITY:/var/zpanel/temp/) - Piwik 2.16.0 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)
WARNING: /PATH-TO-PIWIK-REDACTED-FOR-SECURITY/piwik/core/Db/BatchInsert.php(118): Warning - is_dir(): open_basedir restriction in effect. File(/var/tmp/) is not within the allowed path(s): (/PATH-TO-PIWIK-REDACTED-FOR-SECURITY:/var/zpanel/temp/) - Piwik 2.16.0 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)
WARNING: /PATH-TO-PIWIK-REDACTED-FOR-SECURITY/piwik/core/Db/BatchInsert.php(118): Warning - is_dir(): open_basedir restriction in effect. File(/var/tmp/) is not within the allowed path(s): (/PATH-TO-PIWIK-REDACTED-FOR-SECURITY:/var/zpanel/temp/) - Piwik 2.16.0 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)

You are using open_basedir restrictions on your WebServer Configuration, thus Piwik is unable to write to /var/tmp/ which is outside the Webserver Docroot .

Disabling open_basedir protection for the Piwik vhost should resolve your issue. You can also create a separate tmp directory within your vhost.

1 Like

Thanks - but this wasn’t an issue on 2.15.0. Has something changed and where was this documented?

Somehow Piwik 2.16.0 is more restrictive. You can lookup changes in the 2.16.0 Release Notes. I don’t know why it was working before. However the error message is correct. Maybe you have been using previously a separate temp directory within your Docroot?

Very curiously this issue seems to be intermittent Sometimes it’ll appear. Other times, you can press F5 to refresh the page and it doesn’t appear when the page reloads

Threads that tail off without a conclusion aren’t very helpful to those who follow behind us.

So - after the above errors, I rolled back to 2.15 and the errors went away so I’m assuming that 2.16.0 is just a bad release since other users are complaining of issues. Here’s why keeping a backup is always a good idea!

This bug has been fixed in our latest beta: I would like to test early beta and RC releases, how do I enable automatic updates to use these development versions? - Analytics Platform - Matomo