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. Link to comment 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. Link to comment 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. Link to comment 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. Link to comment 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.