Support » Plugin: WordPress Shortcodes Plugin — Shortcodes Ultimate » Fatal error in one post with Gallery

  • Resolved TheSupercargo



    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.0RC1

    Error Details
    An error of type E_ERROR was caused in line 133 of the file /storage/content/70/109970/ Error message: Uncaught Error: Cannot use object of type WP_Error as array in /storage/content/70/109970/
    Stack trace:
    #0 /storage/content/70/109970/ su_shortcode_custom_gallery(Array, ”, ‘su_custom_galle…’)
    #1 [internal function]: do_shortcode_tag(Array)
    #2 /storage/content/70/109970/ preg_replace_callback(‘/\\[(\\[?)(su_cus…’, ‘do_shortcode_ta…’, ‘\n2013 &#821…’)
    #3 /storage/content/70/109970/ do_shortcode(‘\n2013 &#821…’)
    #4 /storage/content/70/109970/ WP_Hook->apply_filters(‘\n2013 &#821…’, Array)
    #5 /storage/content/70/109970/ apply_filters(‘

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error in one post with Gallery’ is closed to new replies.