多个警告:session_start()[function.session-start]

时间:2013-03-14 17:41:51

标签: wordpress

我正在尝试帮助在WordPress安装上安装第三方主题,当我点击“实时预览”或“激活”主题时,我会收到这三个错误代码:

  

警告:session_start()[function.session-start]:open(/ var / chroot / home / content / 66/5232766 / tmp / sess_1n0eifrftmjfu96hop17kihi35,O_RDWR)失败:/ home中没有这样的文件或目录(2)第461行/content/66/5232766/html/wp-content/themes/Drlawyer/functions.php

     

警告:session_start()[function.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行

     

警告:session_start()[function.session-start]:无法发送会话缓存限制器 - 已发送的标头(输出从/ home / content / 66/5232766 / html / wp-content / themes / Drlawyer / functions开始。 php:461)在/home/content/66/5232766/html/wp-content/themes/Drlawyer/functions.php第461行

我该如何解决这些问题?

1 个答案:

答案 0 :(得分:0)

尝试评论该行并删除您的添加

function cp_admin_init() // { if (!session_id()) session_start(); }

如果这是godaddy托管,你可能需要这样做(我一直遇到这个问题) 将此添加到您的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

当然会改变你的路径,然后在你的root和CHMOD 777中创建一个/ temp目录 由于某种原因,Godaddy对tmp / dir有问题

相关问题