Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

D

duedl0r

@duedl0r
About
Posts
1
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • php error uninitialized string
    D duedl0r

    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

    Bug Reports
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Recent
  • Tags
  • Popular
  • Users
  • Search