我试图帮助将第三方主题安装到WordPress安装上,当我单击“实时预览”或“激活”主题时,会得到以下三个错误代码:
警告: open(/var/chroot/home/content/66/5232766/tmp/sess_1n0eifrftmjfu96hop17kihi35,() session_start() function.session-start: session_start O_RDWR)失败:第461行/home/content/66/5232766/html/wp-content/themes/Drlawyer/functions.php中没有这样的文件或目录(2) 警告: /home/content/66/5232766/html/wp-content/themes/Drlawyer/functions.php:461) () function.session-start:无法发送已由session_start发送的会话cookie头(输出在/home/content/66/5232766/html/wp-content/themes/Drlawyer/functions.php中的第461行开始) 警告: /home/content/66/5232766/html/wp-content/themes/Drlawyer/functions.php:461) () function.session-start:无法发送会话缓存限制器--已发送的标头(输出从第461行的/home/content/66/5232766/html/wp-content/themes/Drlawyer/functions.php中的session_start开始
我怎么才能修好这些东西?
发布于 2013-03-14 18:18:11
试着把这一行注释掉,然后删除你的添加内容。
function cp_admin_init() // { if (!session_id()) session_start(); }如果这是Go爹地托管,您可能需要这样做(我一直遇到这个问题),将其添加到php5.ini文件中,然后您将需要从godaddy宿主控制面板中删除所有进程,并且它将工作。检查您的phpinfo.php文件,以确保它
upload_tmp_dir = /var/chroot/home/content/56/10594156/html/temp
session.save_path = /var/chroot/home/content/56/10594156/html/temp当然,将路径更改为您的路径,然后在根中创建一个/temp dir,而CHMOD 777 some由于某种原因与tmp/ dir有问题。
https://stackoverflow.com/questions/15416445
复制相似问题