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
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it