rans 7 Posted July 25, 2015 Hi,Anyone can help me with this error? I tried the theme from rathena to hercules fluxcp. and i got this warning/error. Quote Share this post Link to post Share on other sites
0 Winterfox 83 Posted July 25, 2015 Usually that is because you output something before the header() function of php. Quote Share this post Link to post Share on other sites
0 rans 7 Posted July 25, 2015 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. Quote Share this post Link to post Share on other sites
0 Brynner 34 Posted July 25, 2015 contact your webhosting support. they can answer your problem. Quote Share this post Link to post Share on other sites
0 rans 7 Posted July 25, 2015 contact your webhosting support. they can answer your problem. I think its not a hosting problem its compatibility of cms addon to hercules Quote Share this post Link to post Share on other sites
0 Winterfox 83 Posted July 25, 2015 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? Quote Share this post Link to post Share on other sites
0 rans 7 Posted July 25, 2015 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')) ?> Quote Share this post Link to post Share on other sites
0 Winterfox 83 Posted July 25, 2015 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/ Quote Share this post Link to post Share on other sites
0 rans 7 Posted July 25, 2015 Thank you. i'll try to review this later. Quote Share this post Link to post Share on other sites
Hi,
Anyone can help me with this error?
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