Hello. Just wanted to alert you to an issue and suggest a fix for future updates.
Enfold broke in PHP 8.1 on a mapped domain, causing a fatal PHP error when using Multiple Domain Mapping on Single Site plugin. The issue was line 153 of wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/slideshow_layerslider/slideshow_layerslider.php
$params[‘style’] = ” style=’height: ” . ( $height + 1 ) . “px;’ “;
This should be:
$params[‘style’] = ” style=’height: ” . ( (int) $height + 1 ) . “px;’ “;
In PHP 8.1, the error was due to stricter type handling. $height was not being interpreted as a numeric value, causing the error when attempting to add 1 to it. By casting $height to (int), you ensure it’s treated as an integer, which can then be safely incremented by 1. This resolved the error.
No reply is necessary. Thanks.