MyBB Community Forums

Full Version: Problem after change of hosting: header($cookie, false);
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all, today I have changed hosting. I done backup of the database, copy all file from server to desktop. Then I created new database and user (database, username and passwords are the same of my old hosting).
Re-upload all to new hosting.

Template, theme and threads are ok, I think, but above of the forum I see:

Warning [2] Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/forum/inc/config.php:1) - Line: 1697 - File: inc/functions.php PHP 5.2.17 (Linux)

[PHP] errorHandler->error
/inc/functions.php 1697 header
/inc/class_session.php 360 my_setcookie
/inc/class_session.php 98 session->load_guest
/global.php 55 session->init
/home/xxxxxx/public_html/index.php 38 require_once

Warning [2] Cannot modify header information - headers already sent by (output started at /home/xxxxxx/public_html/forum/inc/config.php:1) - Line: 1697 - File: inc/functions.php PHP 5.2.17 (Linux)

[PHP] errorHandler->error
/inc/functions.php 1697 header
/inc/class_session.php 365 my_setcookie
/inc/class_session.php 98 session->load_guest
/global.php 55 session->init
/home/xxxx/public_html/index.php 38 require_once

Warning [2] Cannot modify header information - headers already sent by (output started at /home/xxxxxx/public_html/forum/inc/config.php:1) - Line: 1697 - File: inc/functions.php PHP 5.2.17 (Linux)

[PHP] errorHandler->error
/inc/functions.php 1697 header
/inc/class_session.php 106 my_setcookie
/global.php 55 session->init
/home/xxxxx/public_html/index.php 38 require_once

[Image: errorsm.png]

I can't login in forum as a normal user and I can't login as an administrator. I can't disable plugins in ACP.

If I try to login, I have page "forum/member.php" blank.

How can I fix it? I can't use site..thanks

In the line 1697 I have: header($cookie, false);

So, I think it is a problem of cookie...