• The fatal error patched in 7.6.2.1 (2024.12.09) also effects the non-PRO version.

    PHP Fatal error: Uncaught TypeError: ASENHA\\Classes\\SVG_Upload::remove_svg_responsive_image_attr(): Argument #2 ($size) must be of type array, string given, called in /nas/content/live/nahealth/wp-includes/class-wp-hook.php on line 326 and defined in /nas/content/live/nahealth/wp-content/plugins/admin-site-enhancements/classes/class-svg-upload.php:234\nStack trace:\n#0 /nas/content/live/nahealth/wp-includes/class-wp-hook.php(326): ASENHA\\Classes\\SVG_Upload->remove_svg_responsive_image_attr('(max-width: 633...', 'full', NULL)\n#1 /nas/content/live/nahealth/wp-includes/plugin.php(205): WP_Hook->apply_filters('(max-width: 633...', Array)\n#2 /nas/content/live/nahealth/wp-includes/media.php(1607): apply_filters('wp_calculate_im...', '(max-width: 633...', 'full', NULL, Array, 20302)\n#3 /nas/content/live/nahealth/wp-content/plugins/auto-sizes/includes/improve-calculate-sizes.php(107): wp_calculate_image_sizes('full', NULL, Array, 20302)\n#4 /nas/content/live/nahealth/wp-includes/class-wp-hook.php(324): auto_sizes_filter_image_tag('\\n<figure class=...', Array, Object(WP_Block))\n#5 /nas/content/live/nahealth/wp-includes/plugin.php(205): WP_Hook->apply_filters('\\n<figure class=...', Array)\n#6 /nas/content/live/nahealth/wp-includes/class-wp-block.php(599): apply_filters('render_block_co...', '\\n<figure class=...', Array, Object(WP_Block))\n#7 /nas/content/live/nahealth/wp-includes/blocks.php(2190): WP_Block->render()\n#8 /nas/content/live/nahealth/wp-includes/blocks.php(2242): render_block(Array)\n#9 /nas/content/live/nahealth/wp-includes/class-wp-hook.php(324): do_blocks('<!-- wp:image {...')\n#10 /nas/content/live/nahealth/wp-includes/plugin.php(205): WP_Hook->apply_filters('<!-- wp:image {...', Array)\n#11 /nas/content/live/nahealth/wp-content/plugins/wordpress-seo/src/builders/indexable-link-builder.php(140): apply_filters('the_content', '<!-- wp:image {...')\n#12 /nas/content/live/nahealth/wp-content/plugins/wordpress-seo/src/actions/indexing/abstract-link-indexing-action.php(76): Yoast\\WP\\SEO\\Builders\\Indexable_Link_Builder->build(Object(Yoast\\WP\\SEO\\Models\\Indexable), '<!-- wp:image {...')\n#13 /nas/content/live/nahealth/wp-content/plugins/wordpress-seo/src/integrations/admin/background-indexing-integration.php(163): Yoast\\WP\\SEO\\Actions\\Indexing\\Abstract_Link_Indexing_Action->index()\n#14 /nas/content/live/nahealth/wp-includes/class-wp-hook.php(324): Yoast\\WP\\SEO\\Integrations\\Admin\\Background_Indexing_Integration->index()\n#15 /nas/content/live/nahealth/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)\n#16 /nas/content/live/nahealth/wp-includes/plugin.php(565): WP_Hook->do_action(Array)\n#17 /nas/content/live/nahealth/wp-cron.php(191): do_action_ref_array('wpseo_indexable...', Array)\n#18 {main}\n thrown in /nas/content/live/nahealth/wp-content/plugins/admin-site-enhancements/classes/class-svg-upload.php on line 234

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Bowo

    (@qriouslad)

    @badg0003 thanks for reporting this. This is a different error than what is patched in v7.6.2.1.

    Were you able to observe when this fatal error occurred? Was it when you uploaded an SVG? If so, do you mind sharing the SVG file, perhaps via Google Drive or WeTransfer?

    Thread Starter Mike Badgley

    (@badg0003)

    It happened immediately after upgrading the plugin, so no action was taken on my part post-upgrade. I’ll do some further testing in the AM as I’m seeing from the error log there is a potential conflict with Yoast SEO.

    Sunny

    (@frdmsun)

    I’m having the same error – took down a couple sites.

    For me it only crashes the site when I also have this plugin active:

    Enhanced Responsive Images
    Improves responsive images with better sizes calculations and auto-sizes for lazy-loaded images.

    Version 1.4.0 | By WordPress Performance Team | View details

    This plugin is installed by?Performance Lab.

    Fatal error: Uncaught TypeError: ASENHA\Classes\SVG_Upload::remove_svg_responsive_image_attr(): Argument #2 ($size) must be of type array, string given, called in /Users/sun/www/destinationbydesign/app/public/wp-includes/class-wp-hook.php on line 326 and defined in /Users/sun/www/destinationbydesign/app/public/wp-content/plugins/admin-site-enhancements/classes/class-svg-upload.php:234 Stack trace: #0 /Users/sun/www/destinationbydesign/app/public/wp-includes/class-wp-hook.php(326): ASENHA\Classes\SVG_Upload->remove_svg_responsive_image_attr('(max-width: 72p...', 'full', NULL) #1 /Users/sun/www/destinationbydesign/app/public/wp-includes/plugin.php(205): WP_Hook->apply_filters('(max-width: 72p...', Array) #2
    Thread Starter Mike Badgley

    (@badg0003)

    @frdmsun Thanks for the feedback. I too have the same plugin installed.

    Plugin Author Bowo

    (@qriouslad)

    @frdmsun @badg0003 thanks for the additional info. I’ve been able to replicate the issue and come up with a fix, which will be included in the next release, v7.6.4, scheduled for next Monday. Please update and test when you see it.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.