Compatibility issue with PHP 8.1
-
At the home page the error is showing like below-
Warning: foreach() argument must be of type array|object, bool given in /home/adhdscotlandco/public_html/wp-content/plugins/all-in-one-seo-pack/app/Common/Utils/Addons.php on line 144
Fatal error: Uncaught TypeError: usort(): Argument #1 ($array) must be of type array, bool given in /home/adhdscotlandco/public_html/wp-content/plugins/all-in-one-seo-pack/app/Common/Utils/Addons.php:218 Stack trace: #0 /home/adhdscotlandco/public_html/wp-content/plugins/all-in-one-seo-pack/app/Common/Utils/Addons.php(218): usort(false, Object(Closure)) #1 /home/adhdscotlandco/public_html/wp-content/plugins/all-in-one-seo-pack/app/Common/Utils/Addons.php(162): AIOSEO\Plugin\Common\Utils\Addons->sortAddons(false) #2 /home/adhdscotlandco/public_html/wp-content/plugins/all-in-one-seo-pack/app/Common/Main/Filters.php(111): AIOSEO\Plugin\Common\Utils\Addons->getAddons() #3 /home/adhdscotlandco/public_html/wp-includes/class-wp-hook.php(324): AIOSEO\Plugin\Common\Main\Filters->declareAioseoFollowingConsentApi('') #4 /home/adhdscotlandco/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #5 /home/adhdscotlandco/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #6 /home/adhdscotlandco/public_html/wp-settings.php(700): do_action('init') #7 /home/adhdscotlandco/public_html/wp-config.php(35): require_once('/home/adhdscotl...') #8 /home/adhdscotlandco/public_html/wp-load.php(50): require_once('/home/adhdscotl...') #9 /home/adhdscotlandco/public_html/wp-blog-header.php(13): require_once('/home/adhdscotl...') #10 /home/adhdscotlandco/public_html/index.php(17): require('/home/adhdscotl...') #11 {main} thrown in /home/adhdscotlandco/public_html/wp-content/plugins/all-in-one-seo-pack/app/Common/Utils/Addons.php on line 218
There has been a critical error on this website.
Learn more about troubleshooting WordPress.The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.