PHP 8.1 Warnings – Undefined array keys
-
Using this plugin with PHP 8.1 throws many PHP Warnings in the error log every time you refresh a page containing the feed. Here are some examples:
[15-Aug-2024 21:41:29 UTC] PHP Warning: Undefined property: stdClass::$description in /home/html/public_html/wp-content/plugins/easy-facebook-likebox/facebook/frontend/views/templates/template-fullwidth.php on line 456
[15-Aug-2024 21:41:30 UTC] PHP Warning: Undefined array key "wraper_background_color" in /home/html/public_html/wp-content/plugins/easy-facebook-likebox/facebook/frontend/assets/css/easy-facebook-likebox-customizer-style.css.php on line 58
[15-Aug-2024 21:41:30 UTC] PHP Warning: Undefined array key "nav_color" in /home/html/public_html/wp-content/plugins/easy-facebook-likebox/facebook/frontend/assets/css/easy-facebook-likebox-customizer-style.css.php on line 86
[15-Aug-2024 21:41:30 UTC] PHP Warning: Undefined array key "nav_active_color" in /home/html/public_html/wp-content/plugins/easy-facebook-likebox/facebook/frontend/assets/css/easy-facebook-likebox-customizer-style.css.php on line 94
[15-Aug-2024 21:41:30 UTC] PHP Warning: Undefined array key "load_more_background_color" in /home/html/public_html/wp-content/plugins/easy-facebook-likebox/facebook/frontend/assets/css/easy-facebook-likebox-customizer-style.css.php on line 102
[15-Aug-2024 21:41:30 UTC] PHP Warning: Undefined array key "load_more_color" in /home/html/public_html/wp-content/plugins/easy-facebook-likebox/facebook/frontend/assets/css/easy-facebook-likebox-customizer-style.css.php on line 104
[15-Aug-2024 21:41:30 UTC] PHP Warning: Undefined array key "load_more_hover_background_color" in /home/html/public_html/wp-content/plugins/easy-facebook-likebox/facebook/frontend/assets/css/easy-facebook-likebox-customizer-style.css.php on line 112
[15-Aug-2024 21:41:30 UTC] PHP Warning: Undefined array key "load_more_hover_color" in /home/html/public_html/wp-content/plugins/easy-facebook-likebox/facebook/frontend/assets/css/easy-facebook-likebox-customizer-style.css.php on line 114Will there be an update to this plugin to resolve this issue?
I had to add the code below to the plugin files to prevent my error log from getting too big:
error_reporting(E_ALL & ~E_WARNING);
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.