Jump to content
  • 0
Sign in to follow this  
rans

Warning: Cannot modify header information

Question

Hi,
Anyone can help me with this error?
69dseu.png



I tried the theme from rathena to hercules fluxcp. and i got this warning/error.

Share this post


Link to post
Share on other sites

8 answers to this question

Recommended Posts

  • 0

Usually that is because you output something before the header() function of php.

I did not get you. what do you mean?

 

I tried PlugNplay's free theme and found out that this error is not causing by the theme but the CMS addon from rAthena

When you add this to /theme/main/index.php

 

 

<?php if (!defined('FLUX_ROOT')) exit;		$this->redirect($this->url('news','view'))		?>

 

that warning will show.

 

Share this post


Link to post
Share on other sites
  • 0

 

contact your webhosting support. they can answer your problem.

I think its not a hosting problem 

its compatibility of cms addon to hercules

Share this post


Link to post
Share on other sites
  • 0

 

Usually that is because you output something before the header() function of php.

I did not get you. what do you mean?

 

I tried PlugNplay's free theme and found out that this error is not causing by the theme but the CMS addon from rAthena

When you add this to /theme/main/index.php

 

<?php if (!defined('FLUX_ROOT')) exit;		$this->redirect($this->url('news','view'))		?>

 

that warning will show.

Could you copy paste the content of the file? Best would be pastebin and post the link?

Share this post


Link to post
Share on other sites
  • 0

 

 

Usually that is because you output something before the header() function of php.

I did not get you. what do you mean?

 

I tried PlugNplay's free theme and found out that this error is not causing by the theme but the CMS addon from rAthena

When you add this to /theme/main/index.php

 

<?php if (!defined('FLUX_ROOT')) exit;		$this->redirect($this->url('news','view'))		?>

 

that warning will show.

Could you copy paste the content of the file? Best would be pastebin and post the link?

Here is the header.php from the theme

http://pastebin.com/3986QVXr

 

but i doubt that this is the problem. it seems that the content manager addon has the problem with this code inside /theme/main/index.php

 

<?php if (!defined('FLUX_ROOT')) exit;		$this->redirect($this->url('news','view'))		?>

Share this post


Link to post
Share on other sites
  • 0

I think the thing is that /theme/main/index.php is included in the index.php in the root directory which allready outputs content before the call of the header function which is called by $this->redirect();

 

Maybe this helps you: http://www.tech-recipes.com/rx/1489/solve-php-error-cannot-modify-header-information-headers-already-sent/

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.