• I have allowed uploading svg files in the Media library, then in gutenberg I added an image block and selected the svg file; when trying to save the page there is a fatal PHP error:

    [05-Apr-2019 15:39:36 UTC] PHP Fatal error:  Uncaught Error: Cannot use string offset as an array in /srv/bindings/24c42e041aa647e9e16d08b58ca2654/code/wp-content/plug
    ins/responsify-wp/includes/create_responsive_image.php:66
    Stack trace:
    #0 /srv/bindings/24c42e041aa647e9e16d08b58ca2654/code/wp-content/plugins/responsify-wp/includes/create_responsive_image.php(30): Create_Responsive_image->get_images(Ar
    ray)
    #1 /srv/bindings/24c42e041aa647e9e16d08b58ca2654/code/wp-content/plugins/responsify-wp/includes/img.php(9): Create_Responsive_image->__construct('10725', Array)
    #2 /srv/bindings/24c42e041aa647e9e16d08b58ca2654/code/wp-content/plugins/responsify-wp/includes/picture.php(34): Img->__construct('10725', Array)
    #3 /srv/bindings/24c42e041aa647e9e16d08b58ca2654/code/wp-content/plugins/responsify-wp/includes/content_filter.php(119): Picture::create('img', '10725', Array)
    #4 [internal function]: Content_Filter->{closure}(Array)
    #5 /srv/bindings/24c42e041aa647e9e16d08b58ca2654/code/wp-content/plugins/responsify-wp/includes/content_filter.php(122): preg_rep in /srv/bindings/24c42e041aa647e9e16
    d08b58ca2654/code/wp-content/plugins/responsify-wp/includes/create_responsive_image.php on line 66
    

    Given your note of this being mostly unsupported, I realize this may not be fixed, but reporting it in hopes. ?? (workaround is to use a png rather than svg)

    This is on latest wp 5.1.1 and responsify wp 1.9.11.

    Thanks!

  • The topic ‘svg causes fatal error’ is closed to new replies.