• Hey there! I’m seeing deprecated syntax warnings in my error logs when running PHP 8.2 with WOW Carousel for Divi Lite. The plugin works fine, but these warnings are filling up my logs on every page load.

    The Error:

    Deprecated: Using ${var} in strings is deprecated, use {$var} instead 
    in /www/wp-content/plugins/wow-carousel-for-divi-lite/includes/divi4/base/base.php on line 80
    
    Deprecated: Using ${var} in strings is deprecated, use {$var} instead 
    in /www/wp-content/plugins/wow-carousel-for-divi-lite/includes/divi4/base/base.php on line 81

    The Issue: In /includes/divi4/base/base.php (lines 80-81), the code is using the old ${var} string interpolation syntax which was deprecated in PHP 8.1.

    For example:

    php

    {$args['color_start']} ${start_position}

    Should be:

    php

    {$args['color_start']} {$start_position}

    My Setup:

    • WordPress: 6.8.3
    • PHP: 8.2
    • Divi: 4.27.4
    • WOW Carousel for Divi Lite: 2.1.4

    The Fix: This should be a simple find-and-replace throughout the plugin: change ${ to {$ in string contexts. Would love to see this addressed in an upcoming update so we don’t have to manually patch the plugin files!

    Thanks!

    The page I need help with: [log in to see the link]

The topic ‘PHP 8.1+ Deprecated String Syntax Warnings’ is closed to new replies.