Title: alanbrownca's Replies | WordPress.org

---

# alanbrownca

  [  ](https://wordpress.org/support/users/alanbrownca/)

 *   [Profile](https://wordpress.org/support/users/alanbrownca/)
 *   [Topics Started](https://wordpress.org/support/users/alanbrownca/topics/)
 *   [Replies Created](https://wordpress.org/support/users/alanbrownca/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/alanbrownca/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/alanbrownca/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/alanbrownca/engagements/)
 *   [Favorites](https://wordpress.org/support/users/alanbrownca/favorites/)

 Search replies:

## Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Kadence Blocks — Page Builder Toolkit for Gutenberg Editor] Error in fix_wp_get_attachment_image_svg() function](https://wordpress.org/support/topic/error-in-fix_wp_get_attachment_image_svg-function/)
 *  Thread Starter [alanbrownca](https://wordpress.org/support/users/alanbrownca/)
 * (@alanbrownca)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/error-in-fix_wp_get_attachment_image_svg-function/#post-17007160)
 * Sure thing, here is the full printout. I’m using [Roots/Sage](https://roots.io/sage/)
   as a base for my theme.
 *     ```wp-block-code
       Illuminate \ View \ ViewException (E_ERROR)
       simplexml_load_file(//localhost:3000/wp-content/uploads/2023/07/bnpl-icon-NS.svg): Failed to open stream: Connection refused (View: /opt/bitnami/wordpress/wp-content/themes/checkfront-2022/resources/views/partials/content-page.blade.php) (View: /opt/bitnami/wordpress/wp-content/themes/checkfront-2022/resources/views/partials/content-page.blade.php)
       ```
   
 * ![](https://i0.wp.com/i.imgur.com/TcNx7SM.png?ssl=1)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Kadence Blocks — Page Builder Toolkit for Gutenberg Editor] Error in fix_wp_get_attachment_image_svg() function](https://wordpress.org/support/topic/error-in-fix_wp_get_attachment_image_svg-function/)
 *  Thread Starter [alanbrownca](https://wordpress.org/support/users/alanbrownca/)
 * (@alanbrownca)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/error-in-fix_wp_get_attachment_image_svg-function/#post-17007057)
 * [@woodardmc](https://wordpress.org/support/users/woodardmc/)
 * Thanks for the follow up. I do want to clarify that the issue produces a critical
   error, not a warning. When `WP_DEBUG` is `false`, the page is not shown, but 
   the following error is instead:
 * `There has been a critical error on this website.`
 * This occurs when the Return Format of the Image Field in ACF is Image Array, 
   and then an SVG selected from the Media Library with that field.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Kadence Blocks — Page Builder Toolkit for Gutenberg Editor] Error in fix_wp_get_attachment_image_svg() function](https://wordpress.org/support/topic/error-in-fix_wp_get_attachment_image_svg-function/)
 *  Thread Starter [alanbrownca](https://wordpress.org/support/users/alanbrownca/)
 * (@alanbrownca)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/error-in-fix_wp_get_attachment_image_svg-function/#post-17001568)
 * Hi [@ghernkadence](https://wordpress.org/support/users/ghernkadence/),
 * Yes, this issue does not exist on 3.0.41 but it does exist on 3.1.12, and 3.1.13.
 * I’ve narrowed the occurrence of this error down to the use of the Image Field
   in ACF when the Image Array format is returned and an SVG asset is selected from
   the Media Library.
 * I was adding the image to my custom block template in [this manner](https://www.advancedcustomfields.com/resources/image/#display-image-array).
 * I have found that by switching the Return Format in ACF to Image URL, this issue
   is avoided, presumably because the `fix_wp_get_attachment_image_svg` function
   is not called.
 * I believe the issue to be around the use of `simplexml_load_file`, as this and
   the `file_get_contents` functions can return with Connection Refused errors even
   when `allow_url_fopen` is enabled in some configurations.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP REST API Controller] ACF Images not returning correctly](https://wordpress.org/support/topic/acf-images-not-returning-correctly/)
 *  Thread Starter [alanbrownca](https://wordpress.org/support/users/alanbrownca/)
 * (@alanbrownca)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/acf-images-not-returning-correctly/#post-14848722)
 * Hi [@jpowersdev](https://wordpress.org/support/users/jpowersdev/)
 * Thanks for the follow up. At the end of the day I did get it working by using
   the very plugin you’ve linked to in your reply.
 * Might be a nice feature to see added to this plugin. Food for thought. Cheers
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[FileBird - WordPress Media Library Folders & File Manager] Deregistering Filebird Gallery block](https://wordpress.org/support/topic/deregistering-filebird-gallery-block/)
 *  Thread Starter [alanbrownca](https://wordpress.org/support/users/alanbrownca/)
 * (@alanbrownca)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/deregistering-filebird-gallery-block/#post-12297743)
 * Thank you Kelly! This is precisely what I was after.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[FileBird - WordPress Media Library Folders & File Manager] Deregistering Filebird Gallery block](https://wordpress.org/support/topic/deregistering-filebird-gallery-block/)
 *  Thread Starter [alanbrownca](https://wordpress.org/support/users/alanbrownca/)
 * (@alanbrownca)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/deregistering-filebird-gallery-block/#post-12289837)
 * Kelly, thank you for your reply.
    If I am making changes to the plugin code then
   it would be overwritten when the plugin updates. Is there a solution for this
   that can be implemented in my code?

Viewing 6 replies - 1 through 6 (of 6 total)