Skip to content

Twig Filesystem: Warning - realpath(): open_basedir restriction in effect #12280

@mrmonday

Description

@mrmonday

When viewing:

https://siteurl/index.php?module=CoreHome&action=index&idSite=23&period=range&date=previous7&updated=1#?idSite=23&period=range&date=previous7&category=Dashboard_Dashboard&subcategory=1

I get the warning message:

WARNING: /var/www/siteurl/vendor/twig/twig/lib/Twig/Loader/Filesystem.php(35): Warning - realpath(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/www/siteurl) - Piwik 3.2.0

Looking at where Twig_Loader_Filesystem is used, the $rootPath parameter is not passed to the constructor, so it falls back to the current working directory (which happens to be outside of the basedir for the PHP installation).

PHP Version: 7.0.19-1
Piwik Version: 3.2.0

I can provide more information if needed.

Metadata

Metadata

Assignees

Labels

BugFor errors / faults / flaws / inconsistencies etc.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions