• Resolved scallemang

    (@scallemang)


    Hi there,

    Just preparing to take my site live, set up a DO WP droplet, and getting the fatal error visible at https://peopleslabour.ca/ – please forgive my cluelessness, but is this something that should be addressed in the plugin or with our hosting, do you recommend? Thanks a million.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Twentig

    (@twentig)

    Hi,

    It seems that this issue should be addressed in the plugin. The issue is related to a calculation that Twentig makes with the logo dimensions.
    Have you uploaded a logo in the Customizer? If so, would you please try to remove it to see if the error disappears?

    Thanks,
    Tom

    Thread Starter scallemang

    (@scallemang)

    Can confirm that removing the logo ‘bypasses’ the error. (Logo is SVG, if that’s relevant.)

    • This reply was modified 4 years, 9 months ago by scallemang.
    Plugin Author Twentig

    (@twentig)

    Would you please tell me which method (plugin, custom code…) you’re using to upload a SVG file so I can try to replicate the issue on my side?

    Thread Starter scallemang

    (@scallemang)

    My pleasure, I just have [SVG Support](https://en-ca.wordpress.org/plugins/svg-support/) activated, and then uploaded the logo through the customiser.

    Interestingly, the site worked fine on its staging env – https://cto.rhineland.co/ – so I assume (not that I know what I’m talking about) the prod host handles PHP differently. I’ve toggled wp_debug for the moment, and see that it does produce a warning, but not a fatal error.

    Let me know if there’s anything else I might share.

    • This reply was modified 4 years, 9 months ago by scallemang.
    Plugin Author Twentig

    (@twentig)

    Thanks. I’ve tested with your SVG file, and I can replicate the issue. I’ve managed to fix it by adding the width and height attributes in your SVG file:
    width="352" height="352" viewBox="0 0 352.03 352.03"

    Please let me know if it works for you.

    Thread Starter scallemang

    (@scallemang)

    That worked, thank you. (Editing the files alone didn’t fix it, but re-uploading them did – cacheing, maybe?) Thank you for your help. Hope this surfaced a (potential) issue that is helpful for you. Regards.

    Plugin Author Twentig

    (@twentig)

    Thanks for the feedback. We’ll see if we can add some code to prevent this error from showing.

    If you enjoy Twentig, please rate it. It would really help me out 🙂
    Tom

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Division by zero fatal error (on Digital Ocean WP droplet)’ is closed to new replies.