Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • 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

  1. Home
  2. Bug Reports
  3. php error uninitialized string

php error uninitialized string

Scheduled Pinned Locked Moved Bug Reports
2 Posts 2 Posters 213 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    duedl0r
    wrote on last edited by duedl0r
    #1

    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

    1 Reply Last reply
    0
    • arminunruhA Offline
      arminunruhA Offline
      arminunruh
      Global Moderator
      wrote on last edited by
      #2

      ok
      probably there is a color somewhere that was deleted and doesnt contain anything. will release an update later today that fixes this

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      Online Users
      T
      ton
      Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
      laytheme.com
      • Login

      • Don't have an account? Register

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