0

hypanis.ru Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/content/01/9263401/html/wp-includes/load.php(1) : runtime-created function:15) in /home/content/01/9263401/html/wp-content/plugins/forms-contact/admin/hugeit_contact_captcha.php on line 2

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/content/01/9263401/html/wp-includes/load.php(1) : runtime-created function:15) in /home/content/01/9263401/html/wp-content/plugins/forms-contact/admin/hugeit_contact_captcha.php on line 2

Warning: Cannot modify header information - headers already sent by (output started at /home/content/01/9263401/html/wp-includes/load.php(1) : runtime-created function:15) in /home/content/01/9263401/html/wp-includes/pluggable.php on line 1251

Warning: Cannot modify header information - headers already sent by (output started at /home/content/01/9263401/html/wp-includes/load.php(1) : runtime-created function:15) in /home/content/01/9263401/html/wp-includes/pluggable.php on line 1254

I'm getting these error messages when trying to open my website. I tested removing the session start function and got the same error for the validation.php of the contact plugin. When I removed the session start function for the validation.php the first two warnings went away.

Is this a WordPress issue or a plug in issue?

Here are the referenced php code that are triggering the warning.

hugeit_contact_captcha.php

<?php
if(!isset($_SESSION))session_start();


function hugeit_contact_get_field_row($id){
    global $wpdb;
    $id=intval($id);
    $query="SELECT * FROM  " . $wpdb->prefix . "huge_it_contact_contacts_fields WHERE id={$id}";
    $captcha_field=$wpdb->get_results($query,'ARRAY_A');

    return $captcha_field[0];
}

huge_it_contact_form_validation.php

<?php
if(!isset($_SESSION))session_start();

if(! defined( 'ABSPATH' )) exit;
global $wpdb;


function hugeit_contact_set_html_content_type2(){
    return 'text/html';
}

pluggable.php

        $x_redirect_by = apply_filters( 'x_redirect_by', $x_redirect_by, $status, $location );
        if ( is_string( $x_redirect_by ) ) {
            header( "X-Redirect-By: $x_redirect_by" );
        }

        header( "Location: $location", true, $status );

        return true;
    }
endif;

0 Answers0