Jump to content
thirty bees forum

Array and string offset access syntax with curly braces is no longer supported in file modules/footercustom/lessc.inc.php at line 511


Recommended Posts

Posted

This comes from a footer in the second shop migrated. I suspect it can come from a cache but I dont know how to empy it when I have no access. where can the cache be stored? Or it is something else?

@datakick

 

Skärmbild från 2022-08-11 12-33-13.png

Posted

this is the whole 511

                if ($suffix !== null && $sub_prop[0] == 'assign' && is_string($sub_prop[1]) && $sub_prop[1]{0} != $this->v_prefix) {
                            $sub_prop[2] = array(

WE use 7.4 in both shops. the other one has no problem. Can I just change the curly for brackets?

Posted

stackoverflow solution

 

$str = "test"; echo($str{0});

since PHP 7.4 curly braces method to get individual characters inside a string has been deprecated, so change the above syntax into this:

$str = "test"; echo($str[0]);

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...