修复 WordPress 的 is_dir(): open_basedir restriction in effect. 错误-泓源视野

修复 WordPress 的 is_dir(): open_basedir restriction in effect. 错误

如果使用的 WordPress 出现这种情况的话如下:

Warning: is_dir(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/www/wwwroot/www.******.com/:/tmp/:/proc/) in /www/wwwroot/www.******.com/wp-includes/functions.php on line 1618

需要做两项工作注意以下 * 为自定义内容,自己替换为你的域名和 ID :

1、单站点,访问 http://www.***.com/wp-admin/options.php 进行编辑修改或删除一下两项

修复 WordPress 的 is_dir(): open_basedir restriction in effect. 错误插图

2、多站点,访问 http://www.***.com/wp-admin/network/site-settings.php?id=* 进行编辑修改或删除一下两项,

修复 WordPress 的 is_dir(): open_basedir restriction in effect. 错误插图1

也就是改下面的这两项,改为好保存问题就解决了。

upload_path

upload_url_path

本文由 泓源视野 作者:admin 发表,其版权均为 泓源视野 所有,文章内容系作者个人观点,不代表 泓源视野 对观点赞同或支持。如需转载,请注明文章来源。
15

发表评论

Protected with IP Blacklist CloudIP Blacklist Cloud
您是第8234282 位访客, 您的IP是:[3.15.219.217]