PHP Warning: is_readable(): open_basedir restriction in effect
-
Getting the following error after updating to the latest version of the plugin:
2016/02/03 22:18:35 [error] 24723#0: *225701 FastCGI sent in stderr: “PHP message: PHP Warning: is_readable(): open_basedir restriction in effect. File(/srv/www/www.example.com/plugins/geoip-detect/geoip-detect.php/languages/geoip-detect-en_US.mo) is not within the allowed path(s): (/srv/www/:/tmp) in /srv/www/www.example.com/wp/wp-includes/l10n.php on line 554” while reading response header from upstream, client: 1.2.3.45, server: https://www.example.com, request: “POST /wp/wp-admin/admin-ajax.php HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php5-fpm-wordpress.sock:”, host: “www.example.com”, referrer: “https://www.example.com/wp/wp-admin/edit.php”
I’ve verified that my directory permissions are correct, and the same PHP error occurs on all sites.
After looking at the code, it looks like the load_plugin_textdomain() call on line 19 of init.php is using the wrong PHP constant for specifying the languages folder. Please consider changing GEOIP_PLUGIN_BASENAME to GEOIP_PLUGIN_DIR, and that may fix the issue.
Thanks for your hard work!
grantnorwood
- The topic ‘PHP Warning: is_readable(): open_basedir restriction in effect’ is closed to new replies.