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
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.
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?
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.
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.
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.
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