Support » Plugin: User Blocker » Cannot start session when headers already sent in …

  • I get this error, how can I clear it?
    Can anybody help me?

    Cannot start session when headers already sent in /www/htdocs/########/blogwelt/wp-content/plugins/user-blocker/includes/user_blocker_common_functions.php

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Sanjay Dabhoya

    (@sanjaydabhoya)

    Hi @merlin1764,

    Sorry for the inconvenience caused to you.

    I have read your support query. As per your query it seems that there is some conflict with other plugins or theme. Please deactivate other plugins and theme one by one and check which plugin causes the issue.

    Thank you

    Thread Starter merlin1764

    (@merlin1764)

    No change … Userblocker deactivated and deleted 🙁

    @sanjaydabhoya I have the same issue on a site, disabled all other plugins and still the same.

    PHP Warning: session_start(): Cannot start session when headers already sent in /var/www/vhosts/DOMAIN/wp-content/plugins/user-blocker/includes/user_blocker_common_functions.php on line 510

    We use Hello theme on that site.

    • This reply was modified 4 months, 1 week ago by NoemiNL.
    Plugin Contributor Sanjay Dabhoya

    (@sanjaydabhoya)

    @noeminl
    Here is the quick fix. Please do it and let us know if still getting issue.
    at wp-content/plugins/user-blocker/includes/user_blocker_common_functions.php on line 510,
    just replace
    if (session_id() == ”) {
    with
    if (!headers_sent() && session_id() == ”) {

    regards

    Hi there,

    we had the same issue. This is the fix that worked for us. Please update your plugin now.

    user-blocker\includes\user_blocker_common_functions.php

    /**
    * Start session if not started
    */
    if (!function_exists(‘ublk_session_start’)) {

    function ublk_session_start() {
    if (session_id() == ” && !headers_sent()) {
    session_start([‘read_and_close’ => true]);
    }
    }

    }

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.