PHP 8.0 not supported
-
Hi,
Using Simple Feature Requests Free 2.2.4 and combined with PHP 8.0 is throwing those errors on our site:
Deprecated: usort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero in /home/mysite/public_html/new/wp-content/plugins/simple-feature-requests/inc/vendor/wp-settings-framework/wp-settings-framework.php on line 296
Warning: Undefined variable $feature_request in /home/kaliumtheme/public_html/new/wp-content/plugins/simple-feature-requests/inc/class-template-methods.php on line 397
Warning: Attempt to read property “post” on null in /home/mysite/public_html/new/wp-content/plugins/simple-feature-requests/inc/class-template-methods.php on line 397
When I submit a new feature request I receive those errors:
Warning: Undefined array key “votes_limits_reimburse_votes” in /home/mysite/public_html/new/wp-content/plugins/simple-feature-requests/inc/class-user.php on line 152
Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /home/mysite/public_html/new/wp-content/plugins/simple-feature-requests/inc/class-user.php:155 Stack trace: #0 /home/mysite/public_html/new/wp-content/plugins/simple-feature-requests/inc/class-user.php(155): in_array(‘under-review’, NULL, true)
#1 /home/mysite/public_html/new/wp-content/plugins/simple-feature-requests/inc/class-user.php(207): JCK_SFR_User->get_votes_count()
#2 /home/mysite/public_html/new/wp-content/plugins/simple-feature-requests/inc/class-feature-request.php(198): JCK_SFR_User->add_vote(10387)
#3 /home/mysite/public_html/new/wp-content/plugins/simple-feature-requests/inc/class-factory.php(145): JCK_SFR_Feature_Request->set_votes_count(‘add’, 1, 1)
#4 /home/mysite/public_html/new/wp-content/plugins/simple-feature-requests/inc/class-submission.php(78): JCK_SFR_Factory::create(Array)
#5 /home/mysite/public_html/new/wp-includes/class-wp-hook.php(307): JCK_SFR_Submission::handle_submission(”)
#6 /home/mysite/public_html/new/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
#7 /home/mysite/public_html/new/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
#8 /home/mysite/public_html/new/wp-includes/template-loader.php(13): do_action(‘template_redire…’)
#9 /home/mysite/public_html/new/wp-blog-header.php(19): require_once(‘/home/kaliumthe…’)
#10 /home/mysite/public_html/new/index.php(17): require(‘/home/kaliumthe…’)
#11 {main} thrown in /home/mysite/public_html/new/wp-content/plugins/simple-feature-requests/inc/class-user.php on line 155Also, I’m receiving those errors in the error log:
[29-Jun-2022 11:59:09 UTC] PHP Deprecated: usort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero in /home/mysite/public_html/new/wp-content/plugins/simple-feature-requests/inc/vendor/wp-settings-framework/wp-settings-framework.php on line 296
[29-Jun-2022 11:59:22 UTC] PHP Warning: Undefined variable $feature_request in /home/mysite/public_html/new/wp-content/plugins/simple-feature-requests/inc/class-template-methods.php on line 397
[29-Jun-2022 11:59:22 UTC] PHP Warning: Attempt to read property “post” on null in /home/mysite/public_html/new/wp-content/plugins/simple-feature-requests/inc/class-template-methods.php on line 397`
Can you please fix those problems in the next theme update?`
- The topic ‘PHP 8.0 not supported’ is closed to new replies.