• Resolved sproutchris

    (@sproutchris)


    After upgrading the plugin from 3.3.1 to 3.4.0, I can log into WordPress fine with my adminstrator-level account, but our users assigned to the “editor” role were running a fatal error in the WordPress backend. I have not tested other user roles.

    Here’s what I found in my error log:

    [20-Jun-2024 19:19:48 UTC] PHP Warning:  Undefined array key "publishpress-future" in /wp-content/plugins/post-expirator/src/Core/Plugin.php on line 302
    [20-Jun-2024 19:19:48 UTC] PHP Fatal error: Uncaught TypeError: array_column(): Argument #1 ($array) must be of type array, null given in /wp-content/plugins/post-expirator/src/Core/Plugin.php:304
    Stack trace:
    #0 /wp-content/plugins/post-expirator/src/Core/Plugin.php(304): array_column(NULL, 2)
    #1 /wordpress-versions/6.5.4/wp-includes/class-wp-hook.php(324): PublishPress\Future\Core\Plugin->sortAdminMenu('')
    #2 /wordpress-versions/6.5.4/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    #3 /wordpress-versions/6.5.4/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #4 /wordpress-versions/6.5.4/wp-admin/includes/menu.php(161): do_action('admin_menu', '')
    #5 /wordpress-versions/6.5.4/wp-admin/menu.php(422): require_once('/wordpress-vers...')
    #6 /wordpress-versions/6.5.4/wp-admin/admin.php(158): require('/wordpress-vers...')
    #7 /wordpress-versions/6.5.4/wp-admin/index.php(10): require_once('/wordpress-vers...')
    #8 {main}
    thrown in /wp-content/plugins/post-expirator/src/Core/Plugin.php on line 304

    Downgrading the plugin back to 3.3.1 resolved the issue.

    Running WordPress 6.5.4 on PHP 8.1.29.

    • This topic was modified 5 months, 1 week ago by sproutchris.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.