Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#45268 closed defect (bug) (invalid)

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

Reported by: swydell's profile swydell Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.9.8
Component: Plugins Keywords:
Focuses: Cc:

Description

I don't know how this happened. I believe it began when I was trying custom css. I tried changing Themes. I need help. I'm new to WordPress.

Change History (2)

#1 @swissspidy
6 years ago

  • Component changed from Customize to General
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Severity changed from major to normal
  • Status changed from new to closed

Hi there and welcome to WordPress Trac!

We use this site to track bugs and enhancements to WordPress core. For support questions like yours please use the official forums at https://wordpress.org/support instead.

WordPress core does not use PHP sessions and thus no session_start(). That means a plugin or the theme you're using does make use of session_start() in some wrong way, causing that warning.

I recommend you to disable all plugins and switch to a default theme like Twenty Seventeen to see whether the issue disappears. You can then activate plugins again one by one to find the specific plugin that's causing the issue. You might then want to contact the plugin's developer to notify them about that issue.

I know that the reference to a WordPress core file (wp-includes/class-wp-hook.php) can be irritating, but it doesn't actually mean it's a WordPress issue.

#2 @SergeyBiryukov
6 years ago

  • Component changed from General to Plugins
Note: See TracTickets for help on using tickets.