Just upgraded to 3.5.1 (automatically). That went fine.
I’m receiving an error in functions.php when I try to access the Media Library.
It has something to do with the testing of existing directories. The code tries to access directories that either I have no access to or do not even exist.
This is the error (which repeats like dozens of times per item):
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/www/htdocs/techlabs/wp-content/uploads/2013/01) is not within the allowed path(s): (/www/htdocs/networki:/tmp:/usr/local/lib/php) in /www/htdocs/networki/wp-includes/functions.php on line 1342
Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/www/htdocs/techlabs/wp-content/uploads/2013) is not within the allowed path(s): (/www/htdocs/networki:/tmp:/usr/local/lib/php) in /www/htdocs/networki/wp-includes/functions.php on line 1351
The original line numbers are lower (I added a few comments in functions.php myself) and are 1334-1336 and 1344-1346.
After I commented out these lines, the Media Library runs okay although I’ve not tested adding new media.
I’ve also switched to the default theme, but the error persists.
Does anyone know or have any ideas of how to solve this without tinkering with the WP core files?
Thanks ever so much!
- The topic ‘PHP error (functions.php) in 3.5.1 in Media Library’ is closed to new replies.