Fatal error in one post with Gallery
-
Hi,
First, MANY thanks for a usually excellent plugin.
This is for information rather than a request for help. The problem came up when I was creating a page with multiple examples of the Shortcodes Ultimate Gallery. I wanted to make an archive of all the posts on my website organised chronologically by year. The Shortcodes Ultimate Gallery lets me use the header image from each post as the link, which is great.
I was aware that I couldn’t put more than 100 links in each Gallery, but I had a Gallery for each year and I thought that would work. It did, up to a point. But after I’d filled 7 Galleries (for each of 7 years) with around 60 links in each, the page seems to have been overloaded. WP returned a fatal error warning. (See below.)
There’s no harm done. The site is still functioning as it should and all the Shortcodes Ultimate shortcodes I’ve got set up seem to be fine too (including one of the Gallery). But I had to bin the page I’d been working on. Now I need to think of another way to organise my archive.
Here’s the error warning (clipped from an e-mail WP sent me):
WordPress version 5.4.1
Current theme: GeneratePress Child – SC (version 0.1)
Current plugin: Shortcodes Ultimate (version 5.8.1)
PHP version 7.3.0RC1Error Details
=============
An error of type E_ERROR was caused in line 133 of the file /storage/content/70/109970/thesupercargo.com/public_html/wp-content/plugins/shortcodes-ultimate/includes/shortcodes/custom-gallery.php. Error message: Uncaught Error: Cannot use object of type WP_Error as array in /storage/content/70/109970/thesupercargo.com/public_html/wp-content/plugins/shortcodes-ultimate/includes/shortcodes/custom-gallery.php:133
Stack trace:
#0 /storage/content/70/109970/thesupercargo.com/public_html/wp-includes/shortcodes.php(343): su_shortcode_custom_gallery(Array, ”, ‘su_custom_galle…’)
#1 [internal function]: do_shortcode_tag(Array)
#2 /storage/content/70/109970/thesupercargo.com/public_html/wp-includes/shortcodes.php(218): preg_replace_callback(‘/\\[(\\[?)(su_cus…’, ‘do_shortcode_ta…’, ‘\n2013 ̵…’)
#3 /storage/content/70/109970/thesupercargo.com/public_html/wp-includes/class-wp-hook.php(287): do_shortcode(‘\n2013 ̵…’)
#4 /storage/content/70/109970/thesupercargo.com/public_html/wp-includes/plugin.php(206): WP_Hook->apply_filters(‘\n2013 ̵…’, Array)
#5 /storage/content/70/109970/thesupercargo.com/public_html/wp-content/plugins/wordpress-seo/admin/links/class-link-watcher.php(144): apply_filters(‘
- The topic ‘Fatal error in one post with Gallery’ is closed to new replies.