• Resolved jhaun

    (@jhaun)


    Hello, I’m using PHP 8.2 and getting the fatal error, pasted below.

    PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in wp-content/plugins//wp-optimize/vendor/marcusschwarz/lesserphp/lessify.inc.php on line 57

    if (!$eatWhitespace and strlen($what) == 1) {
    if ($this->buffer{$this->count} == $what) {
    $this->count++;
    return true;
    }
    else return false;
    }

    Thanks!
    Jhaun

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Damilare

    (@deabiodun)

    Hi Jhaun!
    Sorry about the error you’ve encountered.
    Are you using the latest version of the plugin? If not, please update and let us know if the error persists.

    Regards.

    Thread Starter jhaun

    (@jhaun)

    Hi Damilare,
    Yes, I’m using version 4.2.4, the latest version according to https://wordpress.org/plugins/wp-optimize/

    Unless it somehow didn’t get updated, the array syntax: $this->buffer{$this->count} with the curly braces is in that file, and is no longer supported

    Thanks!

    Plugin Support Damilare

    (@deabiodun)

    Thanks for the update.
    We’ll investigate this further and let you know what we find.

    Regards.

    Plugin Support Damilare

    (@deabiodun)

    Hi!
    This bug has been fixed and will be introduced in a future release.

    Regards.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘PHP Fatal error: Array and string offset access syntax with curly braces’ is closed to new replies.