PHP Warning: is_readable() ...is not within the allowed path
Added by Douglas Kelly 5 months ago
So I've been researching this issue for a couple weeks. Some say that I need to add a path to the open_basedir - Others say that with the newer versions of Linux servers this is not needed - that increased security doesn't warrant changing the open_basedir to add paths. The store locator is the only plugin in my WP that is throwing this type of error. It's erroring out on the en_US.mo file. Is this just really a permissions issue? If so, what do I chmod the dirs and files to and who should own them?
I really need to get this resolved so the site loads correctly.
Replies (5)
RE: PHP Warning: is_readable() ...is not within the allowed path
-
Added by Douglas Kelly 4 months ago
I went through the entire dir below the plugin up through all the dirs and files for SLP. I changed all perms to 664 (file) and 775 (dir) with all owned by apache.apache. This fixed many issues, however not all. I'll post elsewhere as well. Currently I get the map to load in Safari and Chrome, but zoomed out to the world. Firefox zooms in to where it needs to be, but doesn't display any of the locations. In Chrome, not all the locations are shown. There are 43 locations with show 50 selected. I do get a JS error in FF/FireBug. I've listed that in another post.
RE: PHP Warning: is_readable() ...is not within the allowed path
-
Added by Douglas Kelly 4 months ago
Just checked the error logs again: PHP Warning: is_readable(): open_basedir restriction in effect. File(/var/www/vhosts/mysite.com/httpdocs/wp-content/plugins/store-locator-le/store-locator-le.php/core/languages/csl-slplus-en_US.mo) is not within the allowed path(s): (/var/www/vhosts/mysite.com/httpdocs/:/tmp/) in /var/www/vhosts/mysite.com/httpdocs/wp-includes/l10n.php on line 334
RE: PHP Warning: is_readable() ...is not within the allowed path
-
Added by Eric Curtis 3 months ago
I think I am having the same problem - did you find a solution?
RE: PHP Warning: is_readable() ...is not within the allowed path
-
Added by Lance Cleveland 3 months ago
See http://wordpress.org/support/topic/error-open_basedir-restriction-in-effect?replies=4
The host is likely running PHP in safe mode.
RE: PHP Warning: is_readable() ...is not within the allowed path
-
Added by Angela Wilkinson 3 months ago
Is there a patch or workaround for this on the latest version of Store Locator? Asking my host to stop safe mode is a non-starter unfortunately and I want to make sure I can get this working before I buy a licence.
Any advice would be much appreciated..
(1-5/5)