I get the following error:
Warning: Uninitialized string offset 0 in /home/httpd/vhosts/pilatus-fahrschule.ch/httpdocs/wp-content/themes/lay/customizer/css_output.php on line 1934
Warning: Trying to access array offset on value of type bool in /home/httpd/vhosts/pilatus-fahrschule.ch/httpdocs/wp-content/themes/lay/customizer/css_output_mobile_menu.php on line 337
Warning: Trying to access array offset on value of type bool in /home/httpd/vhosts/pilatus-fahrschule.ch/httpdocs/wp-content/themes/lay/customizer/css_output_mobile_menu.php on line 337
Warning: Trying to access array offset on value of type bool in /home/httpd/vhosts/pilatus-fahrschule.ch/httpdocs/wp-content/themes/lay/customizer/css_output_mobile_menu.php on line 337
So I added a check to prevent the message showing up in my page:
wp-content/themes/lay/customizer/css_output.php
public static function hex2rgb( $color ) {
// this...
if(empty($color)) {
return array( 'red' => 0, 'green' => 0, 'blue' => 0 );
}
// ... up to here
if ( $color[0] == '#' ) {
$color = substr( $color, 1 );
}
........
}
Maybe this check is not necessary, and there is a configuration error? How can this happen?
I tested this against 6.1.something and the latest version.
Best regards