MyBB Community Forums

Full Version: Header Warning Messages
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi All,

This is my first post.
There seems to be a warning message at my forum's header.
The forum url is www.careerany.com
I didn't change anything .. all of a sudden these warning messages are getting displayed.

The following warnings occurred:
Warning [2] Cannot modify header information - headers already sent by (output started at /home/mysite/public_html/mysite.COM/index.php(1) : eval()'d code:3) - Line: 1697 - File: inc/functions.php PHP 5.2.17 (Linux)
File	Line	Function
[PHP]	 	errorHandler->error
/inc/functions.php	1697	header
/inc/class_session.php	348	my_setcookie
/inc/class_session.php	98	session->load_guest
/global.php	55	session->init
/index.php	19	require_once
Warning [2] Cannot modify header information - headers already sent by (output started at /home/mysite/public_html/mysite/index.php(1) : eval()'d code:3) - Line: 1697 - File: inc/functions.php PHP 5.2.17 (Linux)
File	Line	Function
[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
/index.php	19	require_once

Please look into the matter and make me to fix the issue.
Re-upload your index.php file from a fresh download of the MyBB package.
Hey Paul H.!
Thanks for the fix. It worked.

One more issue is pending with my forum.

Even after log-in, the same message is getting displayed

Welcome to the CareerAny Forums. If this is your first visit, be sure to check out the Rules / FAQ.
If you wish to become a member and post, you can Register Here.
Share what you know. Raise Awareness and Become an Expert.

You can observe it above the Google Ad.

Is there any fix for it.

Thanks in advance.
(2012-09-26, 07:35 AM)srinivas Wrote: [ -> ]Hey Paul H.!
Thanks for the fix. It worked.

One more issue is pending with my forum.

Even after log-in, the same message is getting displayed

Welcome to the CareerAny Forums. If this is your first visit, be sure to check out the Rules / FAQ.
If you wish to become a member and post, you can Register Here.
Share what you know. Raise Awareness and Become an Expert.

You can observe it above the Google Ad.

Is there any fix for it.

Thanks in advance.
Hi srinivas,

In which template did you put this text? This should be put inside the "header_welcomeblock_guest" template in order for it to only be shown to guests.

Kind regards,
Thanks...the 2nd error is fixed now.

I'm using The Cure Templates ...template.

But to my surprise .. 1st error popped up again with the following message:

The following warnings occurred:  
Warning [2] Cannot modify header information - headers already sent by (output started at /home/mysite/public_html/mysite.COM/index.php(1) : eval()'d code:3) - Line: 1697 - File: inc/functions.php PHP 5.2.17 (Linux)
File Line Function 
[PHP]   errorHandler->error 
/inc/functions.php 1697 header 
/inc/class_session.php 348 my_setcookie 
/inc/class_session.php 98 session->load_guest 
/global.php 55 session->init 
/index.php 19 require_once 
Warning [2] Cannot modify header information - headers already sent by (output started at /home/mysite/public_html/mysite.COM/index.php(1) : eval()'d code:3) - Line: 1697 - File: inc/functions.php PHP 5.2.17 (Linux)
File Line Function 
[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 
/index.php 19 require_once 
Warning [2] Cannot modify header information - headers already sent by (output started at /home/mysite/public_html/mysite.COM/index.php(1) : eval()'d code:3) - Line: 1697 - File: inc/functions.php PHP 5.2.17 (Linux)
File Line Function 
[PHP]   errorHandler->error 
/inc/functions.php 1697 header 
/inc/class_session.php 106 my_setcookie 
/global.php 55 session->init 
/index.php 19 require_once 

Should I again reload the index.php file.
Still facing the same problem...
When I'm uploading the new index.php file...then everything is OK.
After a while ....the issue starts again.
Any permanent fix to it.
I suppose it is a problem related to cookie.
When I'm opening the site in firefox, some virus related error is getting displayed.
Can you post your site URL? Thanks Smile
They have:
(2012-09-26, 07:06 AM)srinivas Wrote: [ -> ]The forum url is www.careerany.com
Hello there,

The forum you have posted does not have the minimum "Powered by MyBB" notice we require for technical support here. In order for us to give you further support, please add the following code to the footer template of your forum:

Admin CP --> Templates & Style --> *expand your template set* --> Footer Templates --> footer
Powered by <a href="http://www.mybb.com">MyBB</a>

I will close this thread until you have reinstated the Powered By line. Please post in the Private Inquiries forum to ask to have this thread reopened, where you can also raise any questions you have about this policy.

With regards,
MyBB Support Team