<span class="resolved" aria-label="Resolved" title="Topic is resolved."></span>PHP 8 Issue?

[ad_1]

Replies: 2

Hi folks! We’ve started getting an error after moving to PHP 8. Here’s the details, thanks!

PublishPress Future (version 2.8.2) PHP version 8.0.26

Error Details =============

An error of type E_ERROR was caused in line 1093 of the file /home/REDACTED/public_html/wp-content/plugins/post-expirator/legacy/functions.php. Error message: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, WP_Error given in /home/REDACTED/public_html/wp-content/plugins/post-expirator/legacy/functions.php:1093 Stack trace: #0 /home/REDACTED/public_html/wp-content/plugins/post-expirator/legacy/functions.php(1093): in_array(NULL, Object(WP_Error), true) #1 /home/REDACTED/public_html/wp-includes/class-wp-walker.php(147): Walker_PostExpirator_Category_Checklist->start_el('', Array, 0, Array) #2 /home/REDACTED/public_html/wp-includes/class-wp-walker.php(247): Walker->display_element(Array, Array, 0, 0, Array, '') #3 /home/REDACTED/public_html/wp-admin/includes/template.php(184): Walker->walk(Array, 0, Array) #4 /home/REDACTED/public_html/wp-content/plugins/post-expirator/legacy/views/quick-edit.php(104): wp_terms_checklist(0, Array) #5 /home/REDACTED/public_html/wp-content/plugins/post-expirator/legacy/classes/Display.class.php(414): include('/home/shadowdra…') #6 /home/REDACTED/public_html/wp-content/plugins/post-expirator/legacy/functions.php(243): PostExpirator_Display->render_template('quick-edit', Array) #7 /home/REDACTED/public_html/wp-includes/class-wp-hook.php(310): postexpirator_quickedit('expirationdate', 'page') #8 /home/REDACTED/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array) #9 /home/REDACTED/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #10 /home/REDACTED/public_html/wp-admin/includes/class-wp-posts-list-table.php(2025): do_action('quick_edit_cust…', 'expirationdate', 'page', '') #11 /home/REDACTED/public_html/wp-admin/edit.php(493): WP_Posts_List_Table->inline_edit() #12 {main} thrown

 

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