Open andy00087 opened 4 years ago
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?
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.