I upgraded from PHP 8.1 to 8.2 as a test and I am getting a PHP warning with references to bold builder:
PHP Warning: Undefined variable $background_image_url in /data/sites/web/mysite/www/wp-content/plugins/bold-page-builder/content_elements/bt_bb_content_slider_item/bt_bb_content_slider_item.php on line 36; PHP message: PHP Warning: Undefined variable $background_image_url in /data/sites/web/mysite/www/wp-content/plugins/bold-page-builder/content_elements/bt_bb_content_slider_item/bt_bb_content_slider_item.php on line 36; PHP message: PHP Warning: Undefined variable $background_image_url in /data/sites/web/mysite/www/wp-content/plugins/bold-page-builder/content_elements/bt_bb_content_slider_item/bt_bb_content_slider_item.php on line 36′
I am running the very latest version of WordPress, Bold Builder (4.7.7) and my theme (shoperific).
Any ideas why this could be? I will wait till I try 8.3 as I need to make sure no 8.2 errors persist.
This is the GPT suggestion :p: To fix these warnings, you need to either define the variable?$background_image_url
?before line 36, or check if it is set before using it. For example, you can use the?isset()
?function to check if the variable exists, like this:
-
This reply was modified 10 months, 1 week ago by dyin.