Jump to content

Warning: session_start() expects parameter 1 to be array, string given in /


Recommended Posts

This is a problem I encountered while building a WordPress website RedTwig  This is what shows at the top of my website: Warning: session_start() expects parameter 1 to be array, string given in /home/swydell20/public_html/RedTwig/wp-includes/class-wp-hook.php on line 286.  Here is the file: class-wp-hook.php I've asked for help on several forums such as stacks overflow, dreamin code, and phphelp but so far nobody seems to know how I can fix it. I would appreciate any help here. Thank you in advance.

Somewhere you have something that is trying to add session_start as a hook. It should not be doing that. Or maybe it should but it's doing so for the wrong hook. Or maybe whatever it's coming from is the wrong version for your WordPress.

Search your site for "session_start" to identify where that's happening.

16 hours ago, swydell said:

This is a problem I encountered while building a WordPress website RedTwig  This is what shows at the top of my website: Warning: session_start() expects parameter 1 to be array, string given in /home/swydell20/public_html/RedTwig/wp-includes/class-wp-hook.php on line 286.  Here is the file: class-wp-hook.php I've asked for help on several forums such as stacks overflow, dreamin code, and phphelp but so far nobody seems to know how I can fix it. I would appreciate any help here. Thank you in advance.

I've tried checking the php code but couldn't find any issues with the code.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.