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

  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 233 Views
  • 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.
  • Hayo GebauerH Offline
    Hayo GebauerH Offline
    Hayo Gebauer
    wrote on last edited by
    #1

    https://hayogebauer.com/about/

    I have a bug on my website, that everytime I reload the aboutpage there is this warning:

    There's nothing special about this page, except that the sitetitle, menu and navbar are hidden via css

    Bildschirmfoto 2021-05-30 um 23.04.21.png

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

      Dear Hayo

      @Hayo-Gebauer

      Thank you for the Bug report - strange indeed.
      Could you please make sure for me that the Theme, Addons & PHP version are all up to date?

      Would love to get this inspected further 🌝


      Talk soon Hayo and have a wonderful day, sorry for the current inconvenience on your page.

      Sincerely
      Richard
      Hayo GebauerH 1 Reply Last reply
      1
      • RichardR Richard

        Dear Hayo

        @Hayo-Gebauer

        Thank you for the Bug report - strange indeed.
        Could you please make sure for me that the Theme, Addons & PHP version are all up to date?

        Would love to get this inspected further 🌝


        Talk soon Hayo and have a wonderful day, sorry for the current inconvenience on your page.

        Sincerely
        Richard
        Hayo GebauerH Offline
        Hayo GebauerH Offline
        Hayo Gebauer
        wrote on last edited by
        #3

        @Richard all up to date running PHP 7.3

        1 Reply Last reply
        0
        • nataliegasparN Offline
          nataliegasparN Offline
          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 Offline
            Hayo GebauerH Offline
            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 Offline
              RichardR Offline
              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 Offline
                nataliegasparN Offline
                nataliegaspar
                wrote on last edited by
                #7

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

                1 Reply Last reply
                1
                • RichardR Offline
                  RichardR Offline
                  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 Offline
                    L Offline
                    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 Offline
                      arminunruhA Offline
                      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 Offline
                        L Offline
                        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 Offline
                          L Offline
                          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 Offline
                            arminunruhA Offline
                            arminunruh
                            Global Moderator
                            wrote on last edited by
                            #13

                            ok im glad you could resolve this

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


                            I also code custom websites or custom Lay features.
                            💿 Email me here: 💿
                            info@laytheme.com

                            Before you post:
                            1. When using a WordPress Cache plugin, disable it or clear your cache.
                            2. Update Lay Theme and all Lay Theme Addons
                            3. Disable all Plugins
                            4. 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:
                            1. Post a link to where the problem is
                            2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
                            3. If the problem is difficult to explain, post screenshots / link to a video to explain it
                            Online Users
                            A
                            alasdair17
                            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