• I’ve been redesigning our running club’s website, and part of that work has involved improving the visibility and presentation of our running route maps. For this, I’ve been using the free version of FooGallery, which has worked very well for a non-profit organisation like ours.

    I’ve recently been manually migrating our WordPress multisite installation from my local development environment to a staging server for testing purposes. Most areas of the website are working correctly following the migration, however I’m encountering issues specifically with FooGallery. None of the galleries are now displaying.

    I was wondering if there is any documentation or recommended process for migrating FooGallery installations manually, without relying on a migration plugin.

    I’ve already run a full search-and-replace across the SQL database using a plugin, which resolved most migration-related issues elsewhere on the site. However, it does not appear to have fixed the FooGallery problem. My assumption is that there may still be some form of reference to the original local site remaining in the database, which is preventing the thumbnails from generating or displaying correctly.

    The issue also occurs when I attempt to run the thumbnail test. I’ve checked your documentation and searched online for similar issues, but unfortunately I haven’t been able to find a solution.

    Would you be able to provide any guidance or support on this issue? I’ve included the error message I receive when attempting to access a gallery below.

    Many thanks for your time and assistance.

    Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, string given in /home/vol1_7/infinityfree.com/if0_36387705/ss-staging.rf.gd/htdocs/wp-content/plugins/foogallery/includes/admin/class-admin-notices.php:44 Stack trace: #0 /home/vol1_7/infinityfree.com/if0_36387705/ss-staging.rf.gd/htdocs/wp-content/plugins/foogallery/includes/admin/class-admin-notices.php(195): FooGallery_Admin_Notices->should_show_alert() #1 /home/vol1_7/infinityfree.com/if0_36387705/ss-staging.rf.gd/htdocs/wp-includes/class-wp-hook.php(341): FooGallery_Admin_Notices->display_thumb_test_notice(”) #2 /home/vol1_7/infinityfree.com/if0_36387705/ss-staging.rf.gd/htdocs/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array) #3 /home/vol1_7/infinityfree.com/if0_36387705/ss-staging.rf.gd/htdocs/wp-includes/plugin.php(522): WP_Hook->do_action(Array) #4 /home/vol1_7/infinityfree.com/if0_36387705/ss-staging.rf.gd/htdocs/wp-admin/admin-header.php(313): do_action(‘admin_notices’) #5 /home/vol1_7/infinityfree.com/if0_36387705/ss-staging.rf.gd/htdocs/wp-admin/edit.php(411): require_once(‘/home/vol1_7/in…’) #6 {main} thrown in /home/vol1_7/infinityfree.com/if0_36387705/ss-staging.rf.gd/htdocs/wp-content/plugins/foogallery/includes/admin/class-admin-notices.php on line 44

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author bradvin

    (@bradvin)

    hi @locka

    It could be corrupt options stored in the DB. Do you have any other php warnings from the logs for the frontend where the thumbnails are not showing?

    When you say the galleries are not displaying, do you mean there is no gallery HTML output at all, or are the thumbnails just blank? A link would also help please

    Thread Starter Adrian

    (@locka)

    Hi bradvin.

    So if I go to a page which should be showing me a gallery I get below error up and my site design changes style. I get no gallery pictures blank or otherwise. If I try and edit galleries I get similar error to below. If I click add new gallery that works. but as soon as I click galleries above that option the same error message appears. Below is a link to a staging site, it’s not fully completed. But you should be able to click on club kit link option. To see one gallery which is not working.

    https://ss-staging.rf.gd/

    I assume in my manually migration I might well have messed up and entry within the SQL. When trying to repoint all paths correctly. I could not find any instructions on what is need when doing a migration. So, what I’m missing are the steps need to fix FooGallery after my manual migration would probably allow me to go through migration process again and this time have less issues.

    Fatal error: Uncaught Error: Class “FooGallery_Thumb_Generator” not found in /home/vol1_7/infinityfree.com/if0_36387705/ss-staging.rf.gd/htdocs/wp-content/plugins/foogallery/includes/thumbs/default/class-foogallery-thumb-engine-default.php:150 Stack trace: #0 /home/vol1_7/infinityfree.com/if0_36387705/ss-staging.rf.gd/htdocs/wp-content/plugins/foogallery/includes/functions.php(1945): FooGallery_Thumb_Engine_Default->generate(‘https://ss-stag…&#8217;, Array) #1 /home/vol1_7/infinityfree.com/if0_36387705/ss-staging.rf.gd/htdocs/wp-content/plugins/foogallery/includes/class-thumbnails.php(130): foogallery_thumb(‘https://ss-stag…&#8217;, Array) #2 /home/vol1_7/infinityfree.com/if0_36387705/ss-staging.rf.gd/htdocs/wp-includes/class-wp-hook.php(341): FooGallery_Thumbnails->resize(‘https://ss-stag…&#8217;, Array, Object(FooGalleryAttachment)) #3 /home/vol1_7/infinityfree.com/if0_36387705/ss-staging.rf.gd/htdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘https://ss-stag…&#8217;, Array) #4 /home/vol1_7/infinityfree.com/if0_36387705/ss-staging.rf.gd/htdocs/wp-content/plugins/foogallery/includes/render-functions.php(22): apply_filters(‘foogallery_atta…’, ‘https://ss-stag…&#8217;, Array, Object(FooGalleryAttachment)) #5 /home/vol1_7/infinityfree.com/if0_36387705/ss-staging.rf.gd/htdocs/wp-content/plugins/foogallery/includes/render-functions.php(54): foogallery_attachment_html_image_src(Object(FooGalleryAttachment), Array) #6 /home/vol1_7/infinityfree.com/if0_36387705/ss-staging.rf.gd/htdocs/wp-content/plugins/foogallery/includes/render-functions.php(36): foogallery_build_attachment_html_image_attributes(Object(FooGalleryAttachment), Array) #7 /home/vol1_7/infinityfree.com/if0_36387705/ss-staging.rf.gd/htdocs/wp-content/plugins/foogallery/includes/render-functions.php(444): foogallery_attachment_html_image(Object(FooGalleryAttachment), Array) #8 /home/vol1_7/infinityfree.com/if0_36387705/ss-staging.rf.gd/htdocs/wp-content/plugins/foogallery/extensions/default-templates/simple-portfolio/gallery-simple_portfolio.php(18): foogallery_attachment_html(Object(FooGalleryAttachment)) #9 /home/vol1_7/infinityfree.com/if0_36387705/ss-staging.rf.gd/htdocs/wp-includes/template.php(816): require(‘/home/vol1_7/in…’) #10 /home/vol1_7/infinityfree.com/if0_36387705/ss-staging.rf.gd/htdocs/wp-content/plugins/foogallery/includes/public/class-foogallery-template-loader.php(197): load_template(‘/home/vol1_7/in…’, false) #11 /home/vol1_7/infinityfree.com/if0_36387705/ss-staging.rf.gd/htdocs/wp-content/plugins/foogallery/includes/public/class-foogallery-template-loader.php(137): FooGallery_Template_Loader->load_gallery_template(Object(FooGallery), ‘/home/vol1_7/in…’) #12 /home/vol1_7/infinityfree.com/if0_36387705/ss-staging.rf.gd/htdocs/wp-content/plugins/foogallery/gutenberg/class-foogallery-blocks.php(164): FooGallery_Template_Loader->render_template(Array) #13 /home/vol1_7/infinityfree.com/if0_36387705/ss-staging.rf.gd/htdocs/wp-includes/class-wp-block.php(599): FooGallery_Blocks->render_block(Array, ”, Object(WP_Block)) #14 /home/vol1_7/infinityfree.com/if0_36387705/ss-staging.rf.gd/htdocs/wp-includes/blocks.php(2383): WP_Block->render() #15 /home/vol1_7/infinityfree.com/if0_36387705/ss-staging.rf.gd/htdocs/wp-includes/blocks.php(2466): render_block(Array) #16 /home/vol1_7/infinityfree.com/if0_36387705/ss-staging.rf.gd/htdocs/wp-includes/class-wp-hook.php(341): do_blocks(‘<!– wp:paragra…’) #17 /home/vol1_7/infinityfree.com/if0_36387705/ss-staging.rf.gd/htdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘<!– wp:paragra…’, Array) #18 /home/vol1_7/infinityfree.com/if0_36387705/ss-staging.rf.gd/htdocs/wp-includes/post-template.php(256): apply_filters(‘the_content’, ‘<!– wp:paragra…’) #19 /home/vol1_7/infinityfree.com/if0_36387705/ss-staging.rf.gd/htdocs/wp-content/themes/inspiro/content-page.php(56): the_content() #20 /home/vol1_7/infinityfree.com/if0_36387705/ss-staging.rf.gd/htdocs/wp-includes/template.php(816): require(‘/home/vol1_7/in…’) #21 /home/vol1_7/infinityfree.com/if0_36387705/ss-staging.rf.gd/htdocs/wp-includes/template.php(749): load_template(‘/home/vol1_7/in…’, false, Array) #22 /home/vol1_7/infinityfree.com/if0_36387705/ss-staging.rf.gd/htdocs/wp-includes/general-template.php(206): locate_template(Array, true, false, Array) #23 /home/vol1_7/infinityfree.com/if0_36387705/ss-staging.rf.gd/htdocs/wp-content/themes/inspiro/page.php(33): get_template_part(‘content’, ‘page’) #24 /home/vol1_7/infinityfree.com/if0_36387705/ss-staging.rf.gd/htdocs/wp-includes/template-loader.php(132): include(‘/home/vol1_7/in…’) #25 /home/vol1_7/infinityfree.com/if0_36387705/ss-staging.rf.gd/htdocs/wp-blog-header.php(19): require_once(‘/home/vol1_7/in…’) #26 /home/vol1_7/infinityfree.com/if0_36387705/ss-staging.rf.gd/htdocs/index.php(17): require(‘/home/vol1_7/in…’) #27 {main} thrown in /home/vol1_7/infinityfree.com/if0_36387705/ss-staging.rf.gd/htdocs/wp-content/plugins/foogallery/includes/thumbs/default/class-foogallery-thumb-engine-default.php on line 150

    There has been a critical error on this website.

    Learn more about troubleshooting WordPress.

    Plugin Author bradvin

    (@bradvin)

    @locka can you check what is set for FooGallery Settings -> Images -> Thumbnail Engine? It should be default.

    I have never seen that error before, so this is a guess. You can also try resetting the FooGallery settings. If that doesnt work, then paste your FooGallery System Info, to try help me reproduce it.

    Thread Starter Adrian

    (@locka)

    Ok the thumbnail generator is set to default. Below is the settings after resetting to default. Neither of which has made any difference

    Are there any instructions\changes need when i migrate from a local site with to web. bearing in mind the local address is different to staging site online. As ultimately once changes have been approved will be migrating again to our actual web domain so don’t want to go through the same issues.

    FooGallery version : 3.1.26
    WordPress version : 6.9.4
    Activated Theme : Inspiro Child
    WordPress URL : https://ss-staging.rf.gd
    PHP version : 8.3.19
    Thumb Engine :
    PHP GD : Loaded (V2)
    PHP Imagick : Loaded
    WP Image Editor : FooGallery_Thumb_Image_Editor_Imagick
    Thumbnail Generation Test : https://ss-staging.rf.gd/wp-content/uploads/2026/05/Loaction-small.jpg
    HTTPS Thumb Mismatch : None
    Available Image Editors : Array
    (
    [0] => FooGallery_Thumb_Image_Editor_Imagick
    [1] => FooGallery_Thumb_Image_Editor_GD
    )

    PHP Open SSL : Loaded
    PHP HTTP Wrapper : Found
    PHP HTTPS Wrapper : Found
    PHP Config[allow_url_fopen] : on
    PHP Config[allow_url_include] : off
    Features Active : Array
    (
    [0] => foogallery-custom-css
    [1] => albums
    [2] => foogallery-import-export
    )

    Gallery Templates : Array
    (
    [0] => default
    [1] => image-viewer
    [2] => justified
    [3] => masonry
    [4] => simple_portfolio
    [5] => thumbnail
    [6] => carousel
    [7] => polaroid_promo
    [8] => grid_promo
    [9] => slider_promo
    [10] => spotlight_promo
    [11] => product_promo
    )

    Lightboxes : Array
    (
    [foogallery] => FooGallery Lightbox
    [foobox] => FooBox (Not installed!)
    [arifancylightbox] => ARI Fancy Lightbox
    )

    Settings : Array
    (
    [gallery_template] => default
    [gallery_permalinks_enabled] =>
    [gallery_permalink] => gallery
    [lightbox] => foogallery
    [thumb_jpeg_quality] => 90
    [gallery_sorting] =>
    [datasource] => media_library
    [advanced_attachment_modal] => on
    [hide_editor_button] => on
    [thumb_resize_upscale_small] => on
    [thumb_resize_upscale_small_color] => auto
    [album_template] => default
    )

    Active Plugins : Array
    (
    [0] => instagram-widget-by-wpzoom/instagram-widget-by-wpzoom.php
    [1] => social-icons-widget-by-wpzoom/social-icons-widget-by-wpzoom.php
    [2] => wordpress-importer/wordpress-importer.php
    )
    Plugin Author bradvin

    (@bradvin)

    @locka thanks for sending that – all looks in order.

    Can you try clicking “Run Tests” under FooGallery Settings -> Images. Your migration search/replace could have corrupted the array that is stored for the thumbnail tests.

    Thread Starter Adrian

    (@locka)

    Good, morning

    I had’nt realised that I had not mentioned the fact Ive already tried this unlike my local dev where i get “Thumbnail generation test ran successfully.” as expected. I get no message at all it’s blank.

    I would agree that somehow I’ve messed up thumbnails or other sections of the plugin. Would you be able to provide me with how I should migrate my local site to live so that I don’t do this again. As I can only see how to migrate from another gallery plugin to yours from your documentation.

    Plugin Author bradvin

    (@bradvin)

    hey @locka

    It is hard to tell without access to your site, but there is also an Import / Export feature under FooGallery -> Features which you can try. The only catch is the dev site needs to be accessible from your live site to import the images.

    The find-and-replace during migration must have renamed string values inside an encoded php array which is causing the problem, but the error in your logs “missing FooGallery_Thumb_Generator” is very strange indeed because that file is loaded by default in the plugin, which makes me think the plugin itself is corrupt.

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

You must be logged in to reply to this topic.