Title: PHP Warning:  is_readable(): open_basedir restriction in effect
Last modified: August 31, 2016

---

# PHP Warning: is_readable(): open_basedir restriction in effect

 *  Resolved [Grant Norwood](https://wordpress.org/support/users/grantnorwood/)
 * (@grantnorwood)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/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: [http://www.example.com](http://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&#8221](https://www.example.com/wp/wp-admin/edit.php&#8221);
 * 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
 * [https://wordpress.org/plugins/geoip-detect/](https://wordpress.org/plugins/geoip-detect/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [nicknack](https://wordpress.org/support/users/nicknack/)
 * (@nicknack)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/php-warning-is_readable-open_basedir-restriction-in-effect/#post-7025472)
 * Same issue. Changing line 19 of init.php fixed it for me.
    Thanks Grant.
 *  [Benjamin Pick](https://wordpress.org/support/users/benjamin4/)
 * (@benjamin4)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/php-warning-is_readable-open_basedir-restriction-in-effect/#post-7025587)
 * You’re right …
    Sorry for the inconvenience caused, I will release a fixed version
   shortly …
 *  Thread Starter [Grant Norwood](https://wordpress.org/support/users/grantnorwood/)
 * (@grantnorwood)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/php-warning-is_readable-open_basedir-restriction-in-effect/#post-7025588)
 * Thanks so much, Benjamin!
 *  [nicknack](https://wordpress.org/support/users/nicknack/)
 * (@nicknack)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/php-warning-is_readable-open_basedir-restriction-in-effect/#post-7025589)
 * Thank you
 *  [Benjamin Pick](https://wordpress.org/support/users/benjamin4/)
 * (@benjamin4)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/php-warning-is_readable-open_basedir-restriction-in-effect/#post-7025608)
 * Weird, I actually took the code from the manual:
 * [https://developer.wordpress.org/plugins/internationalization/how-to-internationalize-your-plugin/](https://developer.wordpress.org/plugins/internationalization/how-to-internationalize-your-plugin/)
 * Should we have it changed there?

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘PHP Warning: is_readable(): open_basedir restriction in effect’ is closed
to new replies.

 * ![](https://ps.w.org/geoip-detect/assets/icon-256x256.jpg?rev=978998)
 * [Geolocation IP Detection](https://wordpress.org/plugins/geoip-detect/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/geoip-detect/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/geoip-detect/)
 * [Active Topics](https://wordpress.org/support/plugin/geoip-detect/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/geoip-detect/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/geoip-detect/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Benjamin Pick](https://wordpress.org/support/users/benjamin4/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/php-warning-is_readable-open_basedir-restriction-in-effect/#post-7025608)
 * Status: resolved