Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #57522


Ignore:
Timestamp:
01/21/2023 10:11:21 PM (23 months ago)
Author:
SergeyBiryukov
Comment:

Hi there, welcome back to WordPress Trac! Thanks for the report.

Based on the error log, the issue comes from a session_start() call with an incorrect $options parameter (a string instead of an array). WordPress core does not use that function, so it's likely called in a plugin or theme.

Does the issue still happen with all plugins disabled and a default theme (Twenty Twenty-Three) activated?

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #57522

    • Property Keywords php82 added
  • Ticket #57522 – Description

    initial v1  
    11I tried to upgrade to PHP 8.2 and my site displayed a critical error. Downgraded and found this in the error log. I'm not sure which component this applies to. Happy to look for more info when needed.
    2 
    3 [Sat Jan 21 18:55:25.535143 2023] [lsapi:error] [pid 2731617:tid 140286197896960] [client [redacted]:61727] [host ] Backend fatal error: PHP Fatal error:  Uncaught TypeError: session_start(): Argument #1 ($options) must be of type array, string given in [redacted]/wp-includes/class-wp-hook.php:308\nStack trace:\n#0 [redacted]/wp-includes/class-wp-hook.php(308): session_start()\n#1 [redacted]/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()\n#2 [redacted]/wp-includes/plugin.php(517): WP_Hook->do_action()\n#3 [redacted]/wp-settings.php(617): do_action()\n#4 [redacted]/wp-config.php(86): require_once('[redacted]...')\n#5 [redacted]/wp-load.php(50): require_once('[redacted]...')\n#6 [redacted]/wp-blog-header.php(13): require_once('[redacted]...')\n#7 [redacted]/index.php(17): require('[redacted]...')\n#8 {main}\n  thrown in [redacted]/wp-includes/class-wp-hook.php on line 308\n
     2{{{
     3[Sat Jan 21 18:55:25.535143 2023] [lsapi:error] [pid 2731617:tid 140286197896960]
     4[client [redacted]:61727] [host ] Backend fatal error: PHP Fatal error:  Uncaught TypeError: session_start():
     5Argument #1 ($options) must be of type array, string given in [redacted]/wp-includes/class-wp-hook.php:308\n
     6Stack trace:\n
     7#0 [redacted]/wp-includes/class-wp-hook.php(308): session_start()\n
     8#1 [redacted]/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()\n
     9#2 [redacted]/wp-includes/plugin.php(517): WP_Hook->do_action()\n
     10#3 [redacted]/wp-settings.php(617): do_action()\n
     11#4 [redacted]/wp-config.php(86): require_once('[redacted]...')\n
     12#5 [redacted]/wp-load.php(50): require_once('[redacted]...')\n
     13#6 [redacted]/wp-blog-header.php(13): require_once('[redacted]...')\n
     14#7 [redacted]/index.php(17): require('[redacted]...')\n
     15#8 {main}\n  thrown in [redacted]/wp-includes/class-wp-hook.php on line 308\n
     16}}}