Title: help diagnosing import errors please!
Last modified: December 19, 2025

---

# help diagnosing import errors please!

 *  Resolved [doctorproctor](https://wordpress.org/support/users/doctorproctor/)
 * (@doctorproctor)
 * [5 months, 2 weeks ago](https://wordpress.org/support/topic/help-diagnosing-import-errors-please/)
 * Hi, I’ve successfully used FooGallery for years; great plugin.
 * I now need to migrate to a different host, and different website, so I’m using
   FooGallery export/import functionality. Export readily creates a text file I 
   use for import…which works, sometimes. (FooGallery 3.1.1; WP latest on Bluehost.)
 * I usually get “There has been a critical error on this website.” I’ve enabled
   debug_log, and once saw php_ini limit of 60 sec as problem, so I upped to 300
   sec, but that hasn’t fixed the import issues…which often happen without logging
   on debug_log.
 * Sometimes I simply repeat the import and it works…or adds a few slides to gallery
   before error. Usually not at all.
 * I have about 20 yr of annual slideshows, each about 40 images per gallery, to
   import. I’m importing them one by one to help. Any advice on how to diagnose/
   fix appreciated; my interactions with Bluehost support staff has been decidedly
   mixed, so I suspect this forum may be more helpful.
 * Jim
    -  This topic was modified 5 months, 2 weeks ago by [doctorproctor](https://wordpress.org/support/users/doctorproctor/).
      Reason: little edit
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhelp-diagnosing-import-errors-please%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [elviiso](https://wordpress.org/support/users/elviiso/)
 * (@elviiso)
 * [5 months, 2 weeks ago](https://wordpress.org/support/topic/help-diagnosing-import-errors-please/#post-18763011)
 * Hi [@doctorproctor](https://wordpress.org/support/users/doctorproctor/)
 * We’re glad to hear FooGallery has served you well over the years!
 * Based on what you’ve described, this does sound very likely to be a **server-
   side limitation rather than a FooGallery bug**, especially given that:
    - The same import sometimes works when retried
    - The error is intermittent and not always logged
    - Increasing max_execution_time helped once, but didn’t fully resolve it
    - The import occasionally completes partially before failing
 * All of those are classic signs of hosting constraints being hit mid-process. 
   Let me break this down further:
 * **What’s most likely happening**
 * The FooGallery import process needs to:
    - Parse the import file
    - Create gallery records
    - Process and attach multiple images
    - Write data to the database
 * On some hosts (Bluehost included), this can be interrupted by limits such as:
    - max_execution_time
    - memory_limit
    - post_max_size / upload_max_filesize
    - Internal PHP worker limits or request throttling
 * Unfortunately, when these are enforced at the server level, WordPress doesn’t
   always log them to debug.log, which explains why you’re seeing failures without
   any clear error output.
 * **Why retrying sometimes works**
 * When you retry the import, fewer items may be left to process, so the request
   completes before hitting the server limit. That’s why you’re seeing partial success
   or full success on subsequent attempts.
 * **What we recommend next**
 * Since you’re already importing galleries one by one (which is the right approach
   in this case), the next step would be to ask your host to specifically check 
   and adjust the following for your site:
    - PHP memory limit (ideally 256MB or higher)
    - Max execution time (300 seconds is good, but confirm it’s actually applied)
    - PHP workers / request limits
    - Any ModSecurity or request timeout rules that may interrupt long POST requests
 * When contacting Bluehost, it helps to be very explicit that this is a **long-
   running admin import request** that needs sufficient PHP resources to complete.
 * With all of this said, we’re limited in how deeply we can debug server-level 
   behaviour, but from everything you’ve shared, this is almost certainly something
   your host will need to assist with on their end.
 * Thanks again for using FooGallery, and I hope this helps point you in the right
   direction.
 * Regards,
   Elvis
 *  Thread Starter [doctorproctor](https://wordpress.org/support/users/doctorproctor/)
 * (@doctorproctor)
 * [5 months, 2 weeks ago](https://wordpress.org/support/topic/help-diagnosing-import-errors-please/#post-18763243)
 * Hi, excellent response, thank you!…I’ll keep in touch on progress for the benefit
   of others.
 * Jim P.
 *  Thread Starter [doctorproctor](https://wordpress.org/support/users/doctorproctor/)
 * (@doctorproctor)
 * [5 months, 2 weeks ago](https://wordpress.org/support/topic/help-diagnosing-import-errors-please/#post-18763491)
 * OK, well, I’m sorta limping along here with FooGallery imports. This is what 
   I and Bluehost have done so far:
    - Upped max_execution_time, now at 1200 sec (!). Longer exec time *may* be helping,
      but import process still aborts.
    - Bluehost also whitelisted possibly uploads URL in mod_security.
    - Most common now is (FooGallery?) reporting “Something went wrong with the 
      import.” But no other debug.log errors evident. (display_errors set on in 
      PHP_INI, but no new errors display.)
    - Noted warning: “[21-Dec-2025 02:52:23 UTC] PHP Warning: Attempt to read property“
      ID” on false in /[host]/plugins/foogallery/extensions/import-export/class-
      foogallery-import-export.php on line 69″
    - Also noted error WP automatically reported: “An error of type E_PARSE was 
      caused in line 141 of the file /[host]/wp-content/plugins/foogallery/extensions/
      import-export/class-foogallery-import-export.php. Error message: syntax error,
      unexpected identifier “wp_die”, expecting “function””
 * At this point, here is what I do: (a) I run an import script and monitor media
   library (NOT FooGallery import screen; it often does not display) for progress;(
   b) I note “Something went wrong” error, but continue to check media library, 
   as images continue to import [oddly in .webp, then convert to .jpg, though originally
   in .jpg, I don’t have any image optimization plugins nor do I find anything in
   Bluehost that does this]; then (c) once images stop importing I re-run same script,
   repeating several times until all images imported. Once they are all imported,
   script completes (though doesn’t necessarily tell me so) and seems to correctly
   create a new gallery.
 * The above process is laborious, but has now worked for ~1/2 of the galleries 
   I need to create.
 * Jim P.
 *  Plugin Author [bradvin](https://wordpress.org/support/users/bradvin/)
 * (@bradvin)
 * [5 months, 2 weeks ago](https://wordpress.org/support/topic/help-diagnosing-import-errors-please/#post-18763743)
 * hi [@doctorproctor](https://wordpress.org/support/users/doctorproctor/),
   Thanks
   for providing all that info – it is really helpful. The 2 PHP errors you mention
   are warnings and should not stop the import. Having said that, I have made some
   tweaks so those errors will not occur in future.Looking at the code, the reason
   you are not seeing any progress when doing an import, is because the whole import
   is being run in a single operation on the server, which can be problematic for
   large galleries, or where the image importing into the media lib is taking a 
   long time and causing the overall import to timeout (which I suspect is what 
   is happening).Just a side note – when FooGallery imports attachments, it uses
   the standard WP functions for doing so, so if there is any other process converting
   to webp etc then that would make it take longer. FooGallery does not do any image
   conversions and does not do anything specific to webp, so that must be coming
   from another plugin or your theme.Are you able to post your gallery import JSON,
   so I can test it out locally to see what the problem is?
 * Also, can you paste your System Info from FooGallery Setting pls?
 *  Plugin Author [bradvin](https://wordpress.org/support/users/bradvin/)
 * (@bradvin)
 * [5 months, 2 weeks ago](https://wordpress.org/support/topic/help-diagnosing-import-errors-please/#post-18763748)
 * Another thing – since WP 6.1 WordPress **automatically generates WebP versions**
   of images during upload _if_ the server supports it.
 *  Plugin Author [bradvin](https://wordpress.org/support/users/bradvin/)
 * (@bradvin)
 * [5 months, 2 weeks ago](https://wordpress.org/support/topic/help-diagnosing-import-errors-please/#post-18763778)
 * [@doctorproctor](https://wordpress.org/support/users/doctorproctor/)
 * Some good news! I refactored the import so that it incrementally imports images
   and galleries to avoid the problem you are having. It will now show progress 
   as it imports each image and then does the galleries, and it will log any errors
   it may get along the way. And you can resume imports if you refresh the page.
   
   It is available in v3.1.5 here: [https://downloads.wordpress.org/plugin/foogallery.3.1.5.zip](https://downloads.wordpress.org/plugin/foogallery.3.1.5.zip)
 *  Thread Starter [doctorproctor](https://wordpress.org/support/users/doctorproctor/)
 * (@doctorproctor)
 * [5 months, 2 weeks ago](https://wordpress.org/support/topic/help-diagnosing-import-errors-please/#post-18763787)
 * Hi, and again thank you for such quick and detailed help!…your plugin has a great
   developer ;-).
 * By miracle, my (shared hosting) import process sped up late last night, not without
   similar burps but I got through the remainder of my import more quickly. I assume
   your updates will be of great help to those doing something similar to my task
   of the last few days!
 * Below is system, info, just fyi. Thank you again for all your help.
 * Jim P.
 * ***
 *     ```wp-block-code
       FooGallery version : 3.1.1WordPress version : 6.9Activated Theme : Bluehost BlueprintWordPress URL : https://jimproctor.mePHP version : 8.3.28Thumb Engine : defaultPHP GD : Loaded (V2)PHP Imagick : LoadedWP Image Editor : FooGallery_Thumb_Image_Editor_ImagickThumbnail Generation Test : https://jimproctor.me/wp-content/plugins/foogallery/assets/logo.pngHTTPS Thumb Mismatch : NoneAvailable Image Editors : Array([0] => FooGallery_Thumb_Image_Editor_Imagick[1] => FooGallery_Thumb_Image_Editor_GD)PHP Open SSL : LoadedPHP HTTP Wrapper : FoundPHP HTTPS Wrapper : FoundPHP Config[allow_url_fopen] : 1PHP Config[allow_url_include] :Features Active : Array([0] => foogallery-custom-css[1] => foogallery-import-export)Gallery Templates : Array([0] => default[1] => image-viewer[2] => justified[3] => masonry[4] => simple_portfolio[5] => thumbnail[6] => carousel)Lightboxes : Array([foogallery] => FooGallery Lightbox[foobox] => FooBox)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[default_gallery_attachments] =>[default_gallery_settings] => 0[caption_title_source] => caption[caption_desc_source] => desc[gallery_creator_role] =>[limit_gallery_selector_block_editor] =>[album_creator_role] => inherit[thumb_engine] => default[default_crop_position] => center,center[thumb_resize_upscale_small_color] => rgb(0,0,0)[language_imageviewer_prev_text] => Prev[language_imageviewer_next_text] => Next[language_imageviewer_of_text] => of[language_images_count_none_text] => No images[language_images_count_single_text] => 1 image[language_images_count_plural_text] => %s images[pro_promo_disabled] => on[custom_js] =>[custom_css] =>[default_retina_support] => Array([2x] => false[3x] => false[4x] => false))Active Plugins : Array([0] => foogallery/foogallery.php[1] => bluehost-wordpress-plugin/bluehost-wordpress-plugin.php[2] => foobox-image-lightbox/foobox-free.php[3] => instawp-connect/instawp-connect.php[4] => prevent-file-access/media-restriction.php)
       ```
   

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhelp-diagnosing-import-errors-please%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/foogallery/assets/icon-256x256.gif?rev=2602542)
 * [Photo Gallery by FooGallery : Responsive Image Gallery, Masonry Gallery & Carousel](https://wordpress.org/plugins/foogallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/foogallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/foogallery/)
 * [Active Topics](https://wordpress.org/support/plugin/foogallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/foogallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/foogallery/reviews/)

## Tags

 * [errors](https://wordpress.org/support/topic-tag/errors/)
 * [Import](https://wordpress.org/support/topic-tag/import/)

 * 7 replies
 * 3 participants
 * Last reply from: [doctorproctor](https://wordpress.org/support/users/doctorproctor/)
 * Last activity: [5 months, 2 weeks ago](https://wordpress.org/support/topic/help-diagnosing-import-errors-please/#post-18763787)
 * Status: resolved