Jump to content
swydell

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Thank you for your response and suggestion. I'm going to try it.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

So there's no issues with the code? That must mean it's working correctly.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

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.