PHP warning

session_start(): Cannot send session cookie - headers already sent by (output started at /home/pinkt315/public_html/index.php:5)

/home/pinkt315/public_html/wp-content/plugins/ose-firewall/protected/library/oseFirewallBase.php(58)

46     public function __construct()
47     {
48         $debug = $this->getDebugMode();
49         $this->setDebugMode ($debug);
50     }
51     public function initSystem()
52     {
53         $this->initYiiConfiguration ();
54         add_action('init', array($this, 'startSession'), 1);
55     }
56     public function startSession() {
57         if(!session_id()) {
58             session_start();
59         }
60     }
61     public function initGAuthenticator()
62     {
63         /*if (!class_exists('CDbConnection')) 
64         { 
65             oseFirewall::runYiiApp(); 
66         }*/
67         //$enable = true;
68         require_once(OSEFWDIR.ODS.'protected'.ODS.'library'.ODS.'googleAuthenticator'.ODS.'class_gauthenticator.php');
69         $enable = $this->isGAuthenticatorEnabled();
70         if ($enable == true)

Stack Trace

#0
+
 /home/pinkt315/public_html/wp-content/plugins/ose-firewall/protected/library/oseFirewallBase.php(58): session_start()
53         $this->initYiiConfiguration ();
54         add_action('init', array($this, 'startSession'), 1);
55     }
56     public function startSession() {
57         if(!session_id()) {
58             session_start();
59         }
60     }
61     public function initGAuthenticator()
62     {
63         /*if (!class_exists('CDbConnection')) 
#2
+
 /home/pinkt315/public_html/wp-includes/class-wp-hook.php(286): call_user_func_array(array(oseFirewall, "startSession"), array(""))
281 
282                 // Avoid the array_slice if possible.
283                 if ( $the_['accepted_args'] == 0 ) {
284                     $value = call_user_func_array( $the_['function'], array() );
285                 } elseif ( $the_['accepted_args'] >= $num_args ) {
286                     $value = call_user_func_array( $the_['function'], $args );
287                 } else {
288                     $value = call_user_func_array( $the_['function'], array_slice( $args, 0, (int)$the_['accepted_args'] ) );
289                 }
290             }
291         } while ( false !== next( $this->iterations[ $nesting_level ] ) );
#3
+
 /home/pinkt315/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters("", array(""))
305      *
306      * @param mixed $args Arguments to pass to the hook callbacks.
307      */
308     public function do_action( $args ) {
309         $this->doing_action = true;
310         $this->apply_filters( '', $args );
311 
312         // If there are recursive calls to the current action, we haven't finished it until we get to the last one.
313         if ( ! $this->nesting_level ) {
314             $this->doing_action = false;
315         }
2018-09-21 05:58:36 Apache Yii Framework/1.1.13