Viewing 3 replies - 1 through 3 (of 3 total)
  • It’s a bug in the 2.0.0 release – this small modification of /safe-svg/safe-svg.php in lines 507 & 508 is a quickfix for PHP8, until the developers (@dkotter?) release a fixed Version:

                        $width  = $viewbox_width ?? 0;
                        $height = $viewbox_height ?? 0;
    

    Mario

    • This reply was modified 2 years, 7 months ago by Mario Rader.
    • This reply was modified 2 years, 7 months ago by Mario Rader.
    Plugin Support Darin Kotter

    (@dkotter)

    Thanks for the report and the fix! Opened a PR to address this: https://github.com/10up/safe-svg/pull/51

    @dkotter Similar to other reports, this is at the start of each page, including Dashboard | Pages | Edit:

    <br />
    <b>Notice</b>:  Undefined variable: viewbox_width in <b> ... /wp-content/plugins/safe-svg/safe-svg.php</b> on line <b>507</b><br />
    <br />
    <b>Notice</b>:  Undefined variable: viewbox_height in <b> ... /wp-content/plugins/safe-svg/safe-svg.php</b> on line <b>508</b><br />

    I’ve fixed it with this for the moment:

                        $width  = $viewbox_width ?? 0;
                        $height = $viewbox_height ?? 0;
    • This reply was modified 2 years, 7 months ago by Design Extreme. Reason: Clarification of locations, added fix
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Warning after the last update’ is closed to new replies.