Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

(phpcs.xml) is not within the allowed path(s) [Bug] #202

Open
andy00087 opened this issue Jun 5, 2020 · 1 comment
Open

(phpcs.xml) is not within the allowed path(s) [Bug] #202

andy00087 opened this issue Jun 5, 2020 · 1 comment
Labels
Type: Bug There is a bug in the plugin.

Comments

@andy00087
Copy link

Describe the bug
When I try to scan a theme (any) with Theme Sniffer plugin, no results are shown.
By checking the logs I get:
[05-Jun-2020 15:19:33 UTC] PHP Warning: is_file(): open_basedir restriction in effect. File(/home/.phpcs.xml) is not within the allowed path(s): (/home/xyz/:/tmp:/var/tmp:/opt/alt/php73/usr/share/pear/:/dev/urandom:/usr/local/lib/php/:/usr/local/php73/lib/php/) in /home/xyz/domains/domain.ext/public_html/wp-content/plugins/theme-sniffer/vendor/squizlabs/php_codesniffer/src/Config.php on line 352
It is as if the plugin wanted to write outside the "public_html" folder.

@andy00087 andy00087 added the Type: Bug There is a bug in the plugin. label Jun 5, 2020
@dingo-d
Copy link
Member

dingo-d commented Jun 6, 2020

This looks like php config issue, not a theme sniffer issue.

It looks like it tries to fetch the .phpcs.xml file from the /home/ folder.

Not sure why but it looks like an environment issue, not theme sniffer issue. Where are you using the plugin?

What local setup are you using it on?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Type: Bug There is a bug in the plugin.
Projects
None yet
Development

No branches or pull requests

2 participants