自动创建上传文件夹时,WordPress会发出警告

时间:2013-03-01 05:57:54

标签: wordpress permissions

今天我在wordpress中收到了这个警告:

Warning: file_exists(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/testams/:/tmp:/usr/share/pear54) in /home/testams/domains/testams.serveriai.lt/public_html/SA/wp-includes/functions.php on line 1335

Warning: is_dir(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/testams/:/tmp:/usr/share/pear54) in /home/testams/domains/testams.serveriai.lt/public_html/SA/wp-includes/functions.php on line 1344

Warning: file_exists(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/testams/:/tmp:/usr/share/pear54) in /home/testams/domains/testams.serveriai.lt/public_html/SA/wp-includes/functions.php on line 1335

Warning: is_dir(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/testams/:/tmp:/usr/share/pear54) in /home/testams/domains/testams.serveriai.lt/public_html/SA/wp-includes/functions.php on line 1344

Warning: file_exists(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/testams/:/tmp:/usr/share/pear54) in /home/testams/domains/testams.serveriai.lt/public_html/SA/wp-includes/functions.php on line 1335

Warning: is_dir(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/testams/:/tmp:/usr/share/pear54) in /home/testams/domains/testams.serveriai.lt/public_html/SA/wp-includes/functions.php on line 1344

Warning: file_exists(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/testams/:/tmp:/usr/share/pear54) in /home/testams/domains/testams.serveriai.lt/public_html/SA/wp-includes/functions.php on line 1335

Warning: is_dir(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/testams/:/tmp:/usr/share/pear54) in /home/testams/domains/testams.serveriai.lt/public_html/SA/wp-includes/functions.php on line 1344

当我更改设置>媒体>将我上传的内容组织到基于月份和年份的文件夹中,此警告会消失,permision创建文件夹会出现什么问题,以及如何解决此问题?

1 个答案:

答案 0 :(得分:0)

Dupe:open_basedir restriction in effect. File(/) is not within the allowed path(s):

open_basedir restriction in effect是某些共享主机上的常见错误,这些主机具有用于安全性的指令。请求您的主机更改,或者如果您有权访问.htaccess,请自行尝试更改;但服务器可能配置为不允许您覆盖.htaccess。