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. Warning: Undefined array key 1 ...

Warning: Undefined array key 1 ...

Scheduled Pinned Locked Moved Bug Reports
10 Posts 2 Posters 742 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.
  • B
    B
    bernie
    wrote on last edited by bernie
    #1

    Hey there,

    I am receiving this error message for "www.aviles-busch.de":

    Warning: Undefined array key 1 in /customers/0/f/c/aviles-busch.de/httpd.www/wp-content/themes/lay/frontend/assets/php/layout.php on line 625 Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /customers/0/f/c/aviles-busch.de/httpd.www/wp-content/themes/lay/frontend/assets/php/layout.php:625 Stack trace: #0 /customers/0/f/c/aviles-busch.de/httpd.www/wp-content/themes/lay/frontend/assets/php/layout.php(226): Lay_Layout::prepareRows(Array, false) #1 /customers/0/f/c/aviles-busch.de/httpd.www/wp-content/themes/lay/frontend/assets/php/layout.php(38): Lay_Layout::getLayout('572', 'page') #2 /customers/0/f/c/aviles-busch.de/httpd.www/wp-content/themes/lay/index.php(24): Lay_Layout::getLayoutInit() #3 /customers/0/f/c/aviles-busch.de/httpd.www/wp-includes/template-loader.php(106): include('/customers/0/f/...') #4 /customers/0/f/c/aviles-busch.de/httpd.www/wp-blog-header.php(19): require_once('/customers/0/f/...') #5 /customers/0/f/c/aviles-busch.de/httpd.www/index.php(17): require('/customers/0/f/...') #6 {main} thrown in /customers/0/f/c/aviles-busch.de/httpd.www/wp-content/themes/lay/frontend/assets/php/layout.php on line 625

    -All plug ins have been deactivated
    -PHP updated
    -While trouble shooting I installed the default theme before going back to lay theme

    I read that this might be due to a menu setting in another post, but that didn't work for me either.

    Thanks in advance.

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

      are you sure you have updated to the latest lay theme version?

      on that line:
      p/layout.php on line 625 Fatal, Uncaught TypeError: array_key_exists():

      there is no "array_key_exists()" code.
      but a few lines down there is, i changed something about that line of code that could fix this.

      will release the update later today

      but i think probably you just need to update lay theme

      B 1 Reply Last reply
      0
      • arminunruhA arminunruh

        are you sure you have updated to the latest lay theme version?

        on that line:
        p/layout.php on line 625 Fatal, Uncaught TypeError: array_key_exists():

        there is no "array_key_exists()" code.
        but a few lines down there is, i changed something about that line of code that could fix this.

        will release the update later today

        but i think probably you just need to update lay theme

        B
        B
        bernie
        wrote on last edited by
        #3

        @arminunruh Yes, it's updated to the latest lay theme version

        Same error message

        B 1 Reply Last reply
        0
        • B bernie

          @arminunruh Yes, it's updated to the latest lay theme version

          Same error message

          B
          B
          bernie
          wrote on last edited by bernie
          #4

          @bernie

          In case this helps:

          When installing/activating the carousel one can't log into the wordpress dashboard anymore and an additional error line appears

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

            the carousel issue should be fixed if you update the carousel again

            ok i took another look and i think i may have found the issue
            will release a lay theme update later today that should fix this

            B 1 Reply Last reply
            0
            • arminunruhA arminunruh

              the carousel issue should be fixed if you update the carousel again

              ok i took another look and i think i may have found the issue
              will release a lay theme update later today that should fix this

              B
              B
              bernie
              wrote on last edited by
              #6

              @arminunruh Any updates on this? I don't see a change.

              Thanks.

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

                yea updating lay theme and the carousel addon should have fixed itScreenshot 2023-08-09 at 22.54.11.png

                thats line 631, so it should be fixed

                mmh it seems the update of yesterday didn't get published

                can you update again now to 5.9.8? then it should work

                B 1 Reply Last reply
                0
                • arminunruhA arminunruh

                  yea updating lay theme and the carousel addon should have fixed itScreenshot 2023-08-09 at 22.54.11.png

                  thats line 631, so it should be fixed

                  mmh it seems the update of yesterday didn't get published

                  can you update again now to 5.9.8? then it should work

                  B
                  B
                  bernie
                  wrote on last edited by
                  #8

                  @arminunruh

                  I updated Lay theme to 6.0.0 now. Unfortunately I still see the same errors. I figured that depending on what I set as front page, more error lines seem to appear: 1. Category, 2. Page 3. Project

                  I deactivated the Carousel because that resulted in complete chaos.

                  Thanks for looking into this!

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

                    can you send your website address, /wp-admin/ username and password and a link to this topic to info@laytheme.com?

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

                      hey so the new error that was displayed was a different error. it was more of a notice and not a fatal error that makes the whole website not work

                      you had wp_debug set to true in wp-config.php that's why it showed the errors on your website

                      i disabled wp_debug and now it works fine

                      1 Reply Last reply
                      0

                      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
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      Online Users
                      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