boionfire81 Posted April 16, 2016 Share Posted April 16, 2016 Well, I found out a lot of my login issues were actually because mod_sec with cPanel was enabled. Now that is disabled and there is this error Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/public_html/gym.php:2) in /home/public_html/globals.php on line 13 Warning: Cannot modify header information - headers already sent by (output started at /home/public_html/gym.php:2) in /home/public_html/lib/basic_error_handler.php on line 39 - Critical Error A critical error has occurred, and page execution has stopped. Below are the details: PHP Warning: Cannot modify header information - headers already sent by (output started at /home/public_html/gym.php:2) (2) Action taken: Line executed: /home/public_html/globals.php:114 I have a modified gym, but I have a feeling there might be something "globally" needed fixed. Also, anyone know how to integrate mod_sec with mccodes? Just a security thing, but giving it what I can. Otherwise will try to research tomorrow. Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted April 16, 2016 Share Posted April 16, 2016 In your gym file, what are the first few lines in it? Plus mod security is kind of a global type thing. So I don't think that you can partially enable/disable the plugin as you see fit. Quote Link to comment Share on other sites More sharing options...
boionfire81 Posted April 17, 2016 Author Share Posted April 17, 2016 <?php $macropage="gym.php"; include "globals.php"; if($ir['hospital']) { die("This page cannot be accessed while in hospital."); } $statnames=array( 'Strength' => 'strength', 'Agility' => 'agility', 'Guard' => 'guard', 'Labour' => 'labour'); if(!$ir['jail']) { print "<h2>Sports Center</h2><hr width='100'>"; } else { print "<h3>Jail Fitness</h3><hr />"; } $ir['strank']=get_rank($ir['strength'],'strength'); $ir['agirank']=get_rank($ir['agility'],'agility'); $ir['guarank']=get_rank($ir['guard'],'guard'); $ir['labrank']=get_rank($ir['labour'],'labour'); $ir['strength']=number_format($ir['strength']); $ir['agility']=number_format($ir['agility']); $ir['guard']=number_format($ir['guard']); $ir['labour']=number_format($ir['labour']); Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted April 17, 2016 Share Posted April 17, 2016 I'm thinking that your include should be the very first line after your opening php tag. Quote Link to comment Share on other sites More sharing options...
TheMasterGeneral Posted April 17, 2016 Share Posted April 17, 2016 I don't think so, Kyle. With how MCCv2 is setup, the $macropage variable is called before globals.php His issue makes me think he has <header> set twice in his code. Quote Link to comment Share on other sites More sharing options...
boionfire81 Posted April 17, 2016 Author Share Posted April 17, 2016 Changed the include/macro lines and double checked for session id etc not found. What should I be looking for? Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted April 17, 2016 Share Posted April 17, 2016 Did it work? Quote Link to comment Share on other sites More sharing options...
boionfire81 Posted April 17, 2016 Author Share Posted April 17, 2016 don't know yet. I wasn't the one having the issue. A friend is playing and testing. He gets the errors, but only sometimes. ?? Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted April 17, 2016 Share Posted April 17, 2016 I think your host sucks. You should move 1 Quote Link to comment Share on other sites More sharing options...
boionfire81 Posted April 17, 2016 Author Share Posted April 17, 2016 lol, it's paid up for a year, and they are helpful, but it's one of those overseas tech support situations when you using the chat feature. Me I'm usually to impatient to wait for a ticket response, lol. What host would you suggest? Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted April 18, 2016 Share Posted April 18, 2016 For a shared provider I have never had an issue with Inter Server. I don't know where you are from but they are here in the states Quote Link to comment Share on other sites More sharing options...
boionfire81 Posted April 18, 2016 Author Share Posted April 18, 2016 Yeah, Kyle so far so good. The simple switch seemed to work :) Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted April 18, 2016 Share Posted April 18, 2016 Did you switch hosts? If you did, dammit, I could have given you my referral link haha Quote Link to comment Share on other sites More sharing options...
boionfire81 Posted April 19, 2016 Author Share Posted April 19, 2016 no, not host. was just updating switching the macro/global worked dude said no errors there now. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.