fatal error in 3.4.0 | WordPress.org

[ad_1]

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 2 hours, 43 minutes ago by sproutchris.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer