• Resolved Volodymyr

    (@namzzz)


    I’ve noticed 2 PHP warnings after activating plugin.

    I guess that warnings could be caused by using .svg file for logo.

    Is there a way to fix it?

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

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

    (@twentig)

    Hi,

    Twentig uses the dimensions of the uploaded logo to calculate some values for layout purpose. Can you please tell me which method (plugin, custom code…) you’re using to upload an svg file so I can try to replicate the issue on my side?

    Thanks,
    Tom

    Thread Starter Volodymyr

    (@namzzz)

    Hello, Tom,

    I use SVG Support to upload .svg files.

    Good luck)

    Plugin Author Twentig

    (@twentig)

    I’ve installed the SVG Support plugin but can’t replicate the issue on my side. If possible, could you please share the URL of your website?

    Thanks,
    Tom

    Thread Starter Volodymyr

    (@namzzz)

    Hi, Tom!

    URL: https://crs.kiev.ua.

    The issue was present only with TwentyTwentyOne theme. I’ve decided to use TwentyTwenty instead because of certain reasons and i see no warnings)

    If you interested, i can make another instance and try to replicate the issue with TTO theme.

    Plugin Author Twentig

    (@twentig)

    Hi,

    Thanks for the heads-up. I’ve tested multiple times but can’t replicate the issue on my side. Your website is password-protected, so I can’t access it. If possible, could you please share the URL of your SVG file (maybe it depends on the file)?

    Tom

    I was able to replicate this issue and get it to work in this scenario.

    my svg files needed width="300" height="100" (or whatever size your image is) added to the <svg> tag in the file prior to uploading. Without the height and width set the dimensions are 0x0 and causes those php errors.

    But the mobile width and height being set to auto by twentig makes the svg image disappear on the smaller breakpoints.

    • This reply was modified 3 years, 8 months ago by svincent.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘PHP Warning (Division by zero)’ is closed to new replies.