• Hello! I’m having issues with an error, I moved my WordPress to another server (my provider just switched to a newer one without my help) and now I get this error in the frontend and backend:

    Warning: session_start() expects parameter 1 to be array, string given in /…/wp-includes/class-wp-hook.php on line 286

    Warning: Cannot modify header information – headers already sent by (output started at /…/wp-includes/class-wp-hook.php:286) in /…/wp-includes/pluggable.php on line 1219

    I even deactivated the theme to make sure it was not an issue with divi and also I removed every plugin and still get this error. Could anyone please help me resolve this problem? Thanks!

    For now I added this code to my wp-config:
    ini_set(‘display_errors’,’Off’);
    ini_set(‘error_reporting’, E_ALL );
    define(‘WP_DEBUG’, false);
    define(‘WP_DEBUG_DISPLAY’, false);

    this helped, now I can call the website again but there seems to be a deeper problem, right?

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    You’ve only suppressed the warning display, they are still occurring. WP core does not use sessions, so something is still active beyond core WP. Please try again to deactivate all plugins and also switch to a default twenty* theme. Re-enable warning display, or check your error logs to verify they do not occur in this state. If they do, please do a manual update to the same version to ensure your files are not corrupted.

    The warnings should have stopped. Restore your normal theme and check for warnings again. Then reactivate your plugins, one at a time, checking after each. When the warnings recur, the last activated module is the cause. Seek a solution with the respective developer of the module.

Viewing 1 replies (of 1 total)

The topic ‘Issue after Serverswitch– class-wp-hook.php on line 286’ is closed to new replies.