Title: Error loading block
Last modified: October 6, 2023

---

# Error loading block

 *  Resolved [spdctrl](https://wordpress.org/support/users/spdctrl/)
 * (@spdctrl)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/error-loading-block-8/)
 * Hi,
 * I installed the light version with all the default settings. I went to add a 
   new post (Gutenberg editor) and add the “GT3 Photo & Video Gallery – Grid” block.
   After I select a couple photos from the media library, I get the following error:
 * Error loading block: <p> There has been a critical error on this website.</p>
 * Thinking it might be a plugin incompatibility, I deactivated all plugins except
   GT3. Same error occurs.
 * Thinking it might be some kind of theme incompatibility, I changed to the Twenty
   Twenty Three theme. Same error occurs.
 * I believe I’m more or less on a base install of WordPress and I have this error.
   What am I doing wrong, please?
 * WordPress 6.3.1
 * GT3 2.7.7.18

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

 *  Plugin Support [Alex](https://wordpress.org/support/users/ameximus/)
 * (@ameximus)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/error-loading-block-8/#post-17118600)
 * [@spdctrl](https://wordpress.org/support/users/spdctrl/) Hi there! Sorry for 
   the delay in response. Can you please share PHP error logs for more information?
 *  Thread Starter [spdctrl](https://wordpress.org/support/users/spdctrl/)
 * (@spdctrl)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/error-loading-block-8/#post-17119680)
 *     ```wp-block-code
       [12-Oct-2023 16:26:00 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function GT3\PhotoVideoGallery\imagecreatetruecolor() in /var/www/example.com/public_html/wp-content/plugins/gt3-photo-video-gallery/core/class-lazy-images.php:134
       Stack trace:
       #0 /var/www/example.com/public_html/wp-content/plugins/gt3-photo-video-gallery/core/class-lazy-images.php(120): GT3\PhotoVideoGallery\Lazy_Images::transparentImage()
       #1 /var/www/example.com/public_html/wp-content/plugins/gt3-photo-video-gallery/core/class-lazy-images.php(102): GT3\PhotoVideoGallery\Lazy_Images::get_placeholder_image()
       #2 /var/www/example.com/public_html/wp-includes/class-wp-hook.php(310): GT3\PhotoVideoGallery\Lazy_Images->process_image_attributes()
       #3 /var/www/example.com/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters()
       #4 /var/www/example.com/public_html/wp-includes/media.php(1127): apply_filters()
       #5 /var/www/example.com/public_html/wp-content/plugins/gt3-photo-video-gallery/core/block/traits/trait-get-attachment-image.php(26): wp_get_attachment_image()
       #6 /var/www/example.com/public_html/wp-content/plugins/gt3-photo-video-gallery/core/block/class-isotope-gallery.php(192): GT3\PhotoVideoGallery\Block\Basic->wp_get_attachment_image()
       #7 /var/www/example.com/public_html/wp-content/plugins/gt3-photo-video-gallery/core/block/class-grid.php(121): GT3\PhotoVideoGallery\Block\Isotope_Gallery->renderItem()
       #8 /var/www/example.com/public_html/wp-content/plugins/gt3-photo-video-gallery/core/block/class-basic.php(383): GT3\PhotoVideoGallery\Block\Grid->render()
       #9 /var/www/example.com/public_html/wp-content/plugins/gt3-photo-video-gallery/core/block/class-basic.php(90): GT3\PhotoVideoGallery\Block\Basic->render_block()
       #10 /var/www/example.com/public_html/wp-includes/rest-api/class-wp-rest-server.php(1188): GT3\PhotoVideoGallery\Block\Basic->restHandler()
       #11 /var/www/example.com/public_html/wp-includes/rest-api/class-wp-rest-server.php(1035): WP_REST_Server->respond_to_request()
       #12 /var/www/example.com/public_html/wp-includes/rest-api/class-wp-rest-server.php(447): WP_REST_Server->dispatch()
       #13 /var/www/example.com/public_html/wp-includes/rest-api.php(418): WP_REST_Server->serve_request()
       #14 /var/www/example.com/public_html/wp-includes/class-wp-hook.php(310): rest_api_loaded()
       #15 /var/www/example.com/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
       #16 /var/www/example.com/public_html/wp-includes/plugin.php(565): WP_Hook->do_action()
       #17 /var/www/example.com/public_html/wp-includes/class-wp.php(398): do_action_ref_array()
       #18 /var/www/example.com/public_html/wp-includes/class-wp.php(779): WP->parse_request()
       #19 /var/www/example.com/public_html/wp-includes/functions.php(1335): WP->main()
       #20 /var/www/example.com/public_html/wp-blog-header.php(16): wp()
       #21 /var/www/example.com/public_html/index.php(17): require('...')
       #22 {main}
         thrown in /var/www/example.com/public_html/wp-content/plugins/gt3-photo-video-gallery/core/class-lazy-images.php on line 134
       ```
   
 *  Thread Starter [spdctrl](https://wordpress.org/support/users/spdctrl/)
 * (@spdctrl)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/error-loading-block-8/#post-17119683)
 * Thanks, Alex. Obviously, I changed my domain name in the error log to ‘example.
   com’.
 *  Plugin Support [Alex](https://wordpress.org/support/users/ameximus/)
 * (@ameximus)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/error-loading-block-8/#post-17119752)
 * [@spdctrl](https://wordpress.org/support/users/spdctrl/) Hmm, very strange. I’m
   going to forward this log to our developers. Will keep you posted. Can you also
   let me know which PHP version you use? Thanks and sorry for the inconvenience.
 *  Plugin Support [Alex](https://wordpress.org/support/users/ameximus/)
 * (@ameximus)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/error-loading-block-8/#post-17119779)
 * Our devs recommend to enable PHP GD Library extension. It looks like it’s either
   missing or disabled.
 *  Thread Starter [spdctrl](https://wordpress.org/support/users/spdctrl/)
 * (@spdctrl)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/error-loading-block-8/#post-17120080)
 * Yes, that worked, thanks very much, Alex!
 *  Plugin Support [Alex](https://wordpress.org/support/users/ameximus/)
 * (@ameximus)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/error-loading-block-8/#post-17120152)
 * Glad to hear it. Thanks for choosing our product.

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

The topic ‘Error loading block’ is closed to new replies.

 * ![](https://ps.w.org/gt3-photo-video-gallery/assets/icon-256x256.png?rev=3031763)
 * [Photo Gallery - GT3 Image Gallery & Gutenberg Block Gallery](https://wordpress.org/plugins/gt3-photo-video-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gt3-photo-video-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gt3-photo-video-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/gt3-photo-video-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gt3-photo-video-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gt3-photo-video-gallery/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Alex](https://wordpress.org/support/users/ameximus/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/error-loading-block-8/#post-17120152)
 * Status: resolved