Asked  7 Months ago    Answers:  2   Viewed   31 times

I'm getting this error on an avatar upload on my site. I've never gotten it before and nothing was changed recently for me to begin getting this error...

Warning: is_writable() []: 
open_basedir restriction in effect. 
File(/) is not within the allowed path(s):



Modify the open_basedir settings in your PHP configuration (See Runtime Configuration).

The open_basedir setting is primarily used to prevent PHP scripts for a particular user from accessing files in another user's account. So usually, any files in your own account should be readable by your own scripts.

Example settings via .htaccess if PHP runs as Apache module on a Linux system:

<DirectoryMatch "/home/sites/site81/">
    php_admin_value open_basedir "/home/sites/site81/:/tmp/:/"
Wednesday, March 31, 2021
answered 7 Months ago

Check your configuration.php file. Ensure that the log and tmp entries look like

public $log_path = '/home/futbol/data/www/';
public $tmp_path = '/home/futbol/data/www/';

If these entries are correct, and you still get that message, disable all non-core system plugins, as it then must be one of them causing the problem.

Friday, August 27, 2021
Jack Freeman
answered 2 Months ago
Only authorized users can answer the question. Please sign in first, or register a free account.
Not the answer you're looking for? Browse other questions tagged :