Unable to upload SVGs after update
-
Since updating to WordPress version 6.7.2, I am no longer able to upload SVG files to the Media Library.
WordPress: 6.7.2
SVG Support: 2.5.14
PHP: 8.1.29I do not see any error messages when trying to upload directly into the media library – but the upload still fails. When I try to upload from a page or post I see this error:
The server cannot process the image. This can happen if the server is busy or does not have enough resources to complete the task. Uploading a smaller image may help. Suggested maximum size is 2560 pixels.Error logs on the server show this:
AH01215: stderr from /var/www/cgi-bin/php81.fcgi: #0 /xxx/wp-admin/includes/class-wp-filesystem-ftpext.php(146): ftp_fget()
AH01215: stderr from /var/www/cgi-bin/php81.fcgi: #1 /xxx/wp-content/plugins/svg-support/functions/attachment.php(81): WP_Filesystem_FTPext->get_contents()
AH01215: stderr from /var/www/cgi-bin/php81.fcgi: #2 /xxx/wp-content/plugins/svg-support/functions/attachment.php(126): bodhi_svgs_get_dimensions()
AH01215: stderr from /var/www/cgi-bin/php81.fcgi: #3 /xxx/wp-includes/class-wp-hook.php(324): bodhi_svgs_generate_svg_attachment_metadata()
AH01215: stderr from /var/www/cgi-bin/php81.fcgi: #4 /xxx/wp-includes/plugin.php(205): WP_Hook->apply_filters()
AH01215: stderr from /var/www/cgi-bin/php81.fcgi: #5 /xxx/wp-admin/includes/image.php(185): apply_filters()
AH01215: stderr from /var/www/cgi-bin/php81.fcgi: #6 /xxx/wp-admin/includes/ajax-actions.php(2542): wp_update_image_subsizes()
AH01215: stderr from /var/www/cgi-bin/php81.fcgi: #7 /xxx/wp-includes/class-wp-hook.php(324): wp_ajax_media_create_image_subsizes()
AH01215: stderr from /var/www/cgi-bin/php81.fcgi: #8 /xxx/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
AH01215: stderr from /var/www/cgi-bin/php81.fcgi: #9 /xxx/wp-includes/plugin.php(517): WP_Hook->do_action()
AH01215: stderr from /var/www/cgi-bin/php81.fcgi: #10 /xxx/wp-admin/admin-ajax.php(192): do_action()
AH01215: stderr from /var/www/cgi-bin/php81.fcgi: thrown in /xxx/wp-admin/includes/class-wp-filesystem-ftpext.php on line 146Not even sure where to start to begin debugging on this one, any suggestions?
EDIT: example SVG that fails to upload
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path d="M32 32c17.7 0 32 14.3 32 32l0 256 224 0 0-160c0-17.7 14.3-32 32-32l224 0c53 0 96 43 96 96l0 224c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-32-224 0-32 0L64 416l0 32c0 17.7-14.3 32-32 32s-32-14.3-32-32L0 64C0 46.3 14.3 32 32 32zm144 96a80 80 0 1 1 0 160 80 80 0 1 1 0-160z"/></svg>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Unable to upload SVGs after update’ is closed to new replies.