Title: Fatal errors
Last modified: October 2, 2016

---

# Fatal errors

 *  Resolved [blindpet](https://wordpress.org/support/users/blindpet/)
 * (@blindpet)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/fatal-errors-39/)
 * Seeing this error in my logs (have 256 MB RAM allocated to php7-fpm with nginx)
 * `PHP message: PHP Fatal error: Allowed memory size of 268435456 bytes exhausted(
   tried to allocate 79528624 bytes) in /var/www/guides.wp-bullet.com/wp-content/
   plugins/svg-support/functions/thumbnail-display.php on line 23`
 * Disabling the svg support plugin resolved an error I was having [here](https://wordpress.org/support/topic/an-error-occurred-while-trying-to-remotely-trigger-the-next-task-execution/)

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

 *  Thread Starter [blindpet](https://wordpress.org/support/users/blindpet/)
 * (@blindpet)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/fatal-errors-39/#post-8245056)
 * Added post so I can follow
 *  Plugin Author [Benbodhi](https://wordpress.org/support/users/benbodhi/)
 * (@benbodhi)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/fatal-errors-39/#post-8245107)
 * Hi [@blindpet](https://wordpress.org/support/users/blindpet/),
 * Firstly, thanks for your support and sorry for the inconvenience!
 * I’m not 100% sure how my plugin would affect memory like that, especially that
   much :O
 * I’m not sure how this is affecting the object cache, but it is certainly a possibility.
   The entire code of the file in question is:
 *     ```
       <?php
       /**
        * ADD ABILITY TO VIEW THUMBNAILS IN WP 4.0+
        */
       if ( ! defined( 'ABSPATH' ) ) {
       	exit; // Exit if accessed directly
       }
   
       add_action( 'admin_init', 'bodhi_svgs_display_thumbs' );
       function bodhi_svgs_display_thumbs() {
   
       	ob_start();
   
       	add_action( 'shutdown', 'bodhi_svgs_thumbs_filter', 0 );
       	function bodhi_svgs_thumbs_filter() {
   
       	    $final = '';
       	    $ob_levels = count( ob_get_level() );
   
       	    for ( $i = 0; $i < $ob_levels; $i++ ) {
   
       	        $final .= ob_get_clean();
   
       	    }
   
       	    echo apply_filters( 'final_output', $final );
   
       	}
   
       	add_filter( 'final_output', 'bodhi_svgs_final_output' );
       	function bodhi_svgs_final_output( $content ) {
   
       		$content = str_replace(
       			'<# } else if ( \'image\' === data.type && data.sizes && data.sizes.full ) { #>',
       			'<# } else if ( \'svg+xml\' === data.subtype ) { #>
       				<img class="details-image" src="{{ data.url }}" draggable="false" />
       			<# } else if ( \'image\' === data.type && data.sizes && data.sizes.full ) { #>',
   
       			$content
       		);
   
       		$content = str_replace(
       			'<# } else if ( \'image\' === data.type && data.sizes ) { #>',
       			'<# } else if ( \'svg+xml\' === data.subtype ) { #>
       				<div class="centered">
       					<img src="{{ data.url }}" class="thumbnail" draggable="false" />
       				</div>
       			<# } else if ( \'image\' === data.type && data.sizes ) { #>',
   
       			$content
       		);
   
       		return $content;
   
       	}
   
       }
       ```
   
 * Let me know if I can help any further.
    Cheers Ben
 *  Plugin Author [Benbodhi](https://wordpress.org/support/users/benbodhi/)
 * (@benbodhi)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/fatal-errors-39/#post-8479553)
 * Did you ever get this sorted [@blindpet](https://wordpress.org/support/users/blindpet/)?
 *  Thread Starter [blindpet](https://wordpress.org/support/users/blindpet/)
 * (@blindpet)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/fatal-errors-39/#post-8479872)
 * After I disabled the object cache and things started working I stopped digging.
 *  Plugin Author [Benbodhi](https://wordpress.org/support/users/benbodhi/)
 * (@benbodhi)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/fatal-errors-39/#post-8480111)
 * Thanks for the update 🙂

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

The topic ‘Fatal errors’ is closed to new replies.

 * ![](https://ps.w.org/svg-support/assets/icon.svg?rev=1417738)
 * [SVG Support](https://wordpress.org/plugins/svg-support/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/svg-support/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/svg-support/)
 * [Active Topics](https://wordpress.org/support/plugin/svg-support/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/svg-support/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/svg-support/reviews/)

 * 5 replies
 * 0 participants
 * Last reply from: [Benbodhi](https://wordpress.org/support/users/benbodhi/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/fatal-errors-39/#post-8480111)
 * Status: resolved