swydell Posted November 2, 2018 Share Posted November 2, 2018 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. Quote Link to comment https://forums.phpfreaks.com/topic/307849-warning-session_start-expects-parameter-1-to-be-array-string-given-in/ Share on other sites More sharing options...
requinix Posted November 2, 2018 Share Posted November 2, 2018 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. Quote Link to comment https://forums.phpfreaks.com/topic/307849-warning-session_start-expects-parameter-1-to-be-array-string-given-in/#findComment-1561903 Share on other sites More sharing options...
swydell Posted November 2, 2018 Author Share Posted November 2, 2018 Thank you for your response and suggestion. I'm going to try it. Quote Link to comment https://forums.phpfreaks.com/topic/307849-warning-session_start-expects-parameter-1-to-be-array-string-given-in/#findComment-1561918 Share on other sites More sharing options...
swydell Posted November 2, 2018 Author Share Posted November 2, 2018 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. Quote Link to comment https://forums.phpfreaks.com/topic/307849-warning-session_start-expects-parameter-1-to-be-array-string-given-in/#findComment-1561919 Share on other sites More sharing options...
requinix Posted November 2, 2018 Share Posted November 2, 2018 So there's no issues with the code? That must mean it's working correctly. Quote Link to comment https://forums.phpfreaks.com/topic/307849-warning-session_start-expects-parameter-1-to-be-array-string-given-in/#findComment-1561920 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.