Monday 30 July 2018

php - Wordpress error open_basedir restriction in effect. File is not within the allowed path(s):

After trying a migration from another domain back to:




http://fabiolagreco.web1007.kinghost.net/





I probably mistyped the command line in PHP My Admin, to search and overwrite the domain addresses and now the wordpress will not load. It keeps showing the following error:




Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/fabiola/www/wordpress/wp-content/uploads/2014/07) is not within the allowed path(s): (/home/fabiolagreco/:/tmp:/usr/local/lib/php:./) in /home/fabiolagreco/www/wordpress/wp-includes/functions.php on line 1421




Site URL:





http://fabiolagreco.web1007.kinghost.net/


No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...