Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1437335
    Perfect Word
    Guest

    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.

    #1437359

    Hey Perfect Word,

    Thanks a lot for reporting. Will be added to next release 5.6.13.

    Enjoy the theme and have a great day.

    Best regards,
    Günter

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘PHP 8 Incompatibility’ is closed to new replies.