• Resolved m00min

    (@m00min)


    I’m seeing this in my PHP error log on newer version of the plugin:

    PHP Fatal error: Uncaught Error: Call to a member function attributes() on boolean in /***SITE_URL***/wp-content/plugins/svg-support/functions/attachment-modal.php:35
    Stack trace:
    #0 /***SITE_URL***/wp-content/plugins/svg-support/functions/attachment-modal.php(14): bodhi_svgs_get_dimensions(false)
    #1 /***SITE_URL***/wp-includes/class-wp-hook.php(298): bodhi_svgs_response_for_svg(Array, Object(WP_Post), ”)
    #2 /***SITE_URL***/wp-includes/plugin.php(203): WP_Hook->apply_filters(Array, Array)
    #3 /***SITE_URL***/wp-includes/media.php(3259): apply_filters(‘wp_prepare_atta…’, Array, Object(WP_Post), ”)
    #4 [internal function]: wp_prepare_attachment_for_js(Object(WP_Post))
    #5 /***SITE_URL***/wp-admin/includes/ajax-actions.php(2422): array_map(‘wp_prepare_atta…’, Array)
    #6 /***SITE_URL***/wp-includes/class-wp-hook.php(298): wp_ajax_query_attachments(”)
    #7 /***SITE_URL***/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filte in /***SITE_URL***/wp-content/plugins/svg-support/functions/attachment-modal.php on line 35

    I’m running on MAMP with PHP 7 if this helps. This error may be related to my installation having missing files in uploads that are present in the media picker as broken images. I whilst I keep my local dev up to date with the latest copy of our live database I don’t usually bother grabbing the uploads content.

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

    (@benbodhi)

    Hey,

    Sorry for the late reply!
    I’ve just noticed a few new threads where I wasn’t emailed a notification ??

    I’ll take a look at this and see if I can reproduce and fix.

    have the same issue ?? What can I do? ??

    Plugin Author Benbodhi

    (@benbodhi)

    Hi @fabianhenzler-1,

    Please post your own topic (as per forum welcome) with more information about your particular situation. Please paste any errors. Also, please explain how you use the plugin, whether advanced (inlining SVG files) or simply using SVG files as images.

    The more information you can provide, the better I can try to help.

    • This reply was modified 7 years, 8 months ago by Benbodhi.
    Plugin Author Benbodhi

    (@benbodhi)

    Hi @m00min,

    Thanks for your patience!
    This should be fixed in version 2.3.7 so I am marking as resolved.

    Let me know if the issue persists.

    Thread Starter m00min

    (@m00min)

    Hi @benbodhi,

    I’ve tested the latest version on our staging site and it all looks ok now. Thanks for looking at this.

    Plugin Author Benbodhi

    (@benbodhi)

    My pleasure @m00min,

    I’m glad it’s working for you now. Thanks for letting me know and for your continued support.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fatal error in every version 2.3.3 and above’ is closed to new replies.