php error uninitialized string
-
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 337So 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
-
ok
probably there is a color somewhere that was deleted and doesnt contain anything. will release an update later today that fixes this
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login