Post recent updates to improve functionality and user experience on my webpage hosted on corsolutions.co.uk, I encountered an issue where a warning message was being displayed on the webpage. The warning message read:
Warning: Undefined property: stdClass::$arrow_position in /public_html/components/com_sppagebuilder/addons/carouselpro/site.php on line 282
Upon investigating, I discovered that the code on line 282 of the site.php file within the carouselpro addon folder was attempting to access the arrow_position property on the object $settings without first ensuring that the property exists. The line of code in question was:
if ($settings->arrow_position != 'default') {
To mitigate the warning and ensure smooth operation of the Carousel Pro addon, I updated the line of code to check if the arrow_position property exists on the object $settings before proceeding to compare its value to 'default'. The updated line of code is as follows:
if (isset($settings->arrow_position) && $settings->arrow_position != 'default') {
This modification has temporarily resolved the warning on my webpage. However, this is a temporary fix, and I am writing to bring this to your attention and inquire if this is a known issue. I am also interested in understanding if there's a more permanent solution or a better way to resolve this issue to prevent its recurrence in future, especially after updates.
BTW, this keeps happening for about 1 year now.