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. Reload Bug: Warning Division by Zero

Reload Bug: Warning Division by Zero

Scheduled Pinned Locked Moved Bug Reports
13 Posts 5 Posters 2.2k 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.
  • nataliegasparN
    nataliegasparN
    nataliegaspar
    wrote on last edited by
    #4

    hey there,

    i have a similar error. https://nataliegaspar.de
    after deleting a video file used as thumbnail, i get the following
    „Warning: Division by zero in /themes/lay/frontend/php/elements/elements/thumbnail.php“ on line 53 or line 71. It seems to be caused by the video_w attribute. the video was deleted with the standard method of wordpress media library. Error is shown independently to which browser I use, may more likely be related to deleted video. Theme and Addons are up to date.

    signal-2021-06-08-183653.jpeg

    Bildschirmfoto 2021-06-08 um 10.38.37.png

    Hayo GebauerH 1 Reply Last reply
    1
    • nataliegasparN nataliegaspar

      hey there,

      i have a similar error. https://nataliegaspar.de
      after deleting a video file used as thumbnail, i get the following
      „Warning: Division by zero in /themes/lay/frontend/php/elements/elements/thumbnail.php“ on line 53 or line 71. It seems to be caused by the video_w attribute. the video was deleted with the standard method of wordpress media library. Error is shown independently to which browser I use, may more likely be related to deleted video. Theme and Addons are up to date.

      signal-2021-06-08-183653.jpeg

      Bildschirmfoto 2021-06-08 um 10.38.37.png

      Hayo GebauerH
      Hayo GebauerH
      Hayo Gebauer
      wrote on last edited by
      #5

      @nataliegaspar @Richard I've fixed it for now. I simply rebuilt the About page and now the reload bug is gone. It's possible that at one point I was playing with the video background option as well, that may have caused the bug, but I don't know for sure

      1 Reply Last reply
      0
      • RichardR
        RichardR
        Richard
        Global Moderator
        wrote on last edited by
        #6

        Dear @Hayo-Gebauer

        Thank you for the update 🌝
        @nataliegaspar Are you still having issue?


        Talk soon & best wishes
        Richard
        nataliegasparN 1 Reply Last reply
        0
        • RichardR Richard

          Dear @Hayo-Gebauer

          Thank you for the update 🌝
          @nataliegaspar Are you still having issue?


          Talk soon & best wishes
          Richard
          nataliegasparN
          nataliegasparN
          nataliegaspar
          wrote on last edited by
          #7

          @Richard there is no more warning, so it should be gone! :)

          1 Reply Last reply
          1
          • RichardR
            RichardR
            Richard
            Global Moderator
            wrote on last edited by
            #8

            Dear @nataliegaspar

            Great to hear, thank you for updating! :)

            Best wishes
            Richard

            1 Reply Last reply
            0
            • L
              L
              Laurence
              wrote on last edited by
              #9

              Hi!

              https://neu.oliviaronzani.ch/category/projekte/

              I have the same bug on the website I am working on.

              I have the Theme, Adonis and PHP Version updated but it still doesn't change anything.

              Can you help me out with this?

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

                oh i think probably a thumbnail mouseover image was set somewhere and then the image was deleted from the media library.

                can you go to lay options and disable "Activate Mouseover Image for Thumbnails"

                or go through your projects and see where a mouseover image may be set that whose file was then subsequently deleted from the media library.

                i will also change the code and include a check into the next lay theme update so this error wont happen even in these conditions

                1 Reply Last reply
                0
                • L
                  L
                  Laurence
                  wrote on last edited by
                  #11

                  Thanks @arminunruh !
                  That seems reasonable, I wanted to check this but at the moment Laytheme is somehow not active anymore, it says on wordpress that the Theme could not be fully loaded.
                  I am also in contact with the hosting platform but maybe you know this issue and can help out as well?
                  Thanks already...!

                  1 Reply Last reply
                  0
                  • L
                    L
                    Laurence
                    wrote on last edited by
                    #12

                    problem solved with deactivating and activating lay theme again.
                    and it worked with disabling the "Activate Mouseover Image for Thumbnails" and then reconnect the one missing image in the media library.
                    thanks for your help!

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

                      ok im glad you could resolve this

                      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
                      M
                      michael_vvc
                      C
                      craigfeldspar
                      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