• I uploaded 30k image files via FTP but the plugin can’t seem to process that many files. What’s the workaround for this?

    • This topic was modified 1 year, 3 months ago by jaceejoef.
    • This topic was modified 1 year, 3 months ago by jaceejoef.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author erolsk8

    (@erolsk8)

    Unfortunately, this is a known issue. Plugin was built to scan all files at once, with the goal of having the option to import all files at once. But it means it can break with that many files :/

    We’re currently trying to rewrite it to support any number of files (while keeping the option to import all files at once). But it’s not so simple and it’s taking a lot of time. So if there is a good solution, it will probably be paid add-on or even a new plugin. And I’ll try to update all of these topics then.

    Thread Starter jaceejoef

    (@jaceejoef)

    Hi. Thank you for responding.

    So far, what I did is use wp_insert_attachment, wp_generate_attachment_metadata and wp_update_attachment_metadata to register the images. I created a cron job to read the files from a specific directory.

    This approach would still return the execution timeout error so I created a bunch of txt files that have 40 images listed in them. I created these txt files via code and there are a total of almost 800 txt files. Once all the images from the txt files are registered, the txt file is deleted.

    I also added a checker if the image is already registered or not because sometimes, for some reason, it only registers the first image in the txt file and it just stops. I didn’t investigate further to know the reason.

    It’s not the best solution but atleast it’s working in the background. You might get some kind of idea from it and make it better.

    Plugin Author erolsk8

    (@erolsk8)

    Hey, yes, some async/background process is the key here. And I just remembered I had a similar idea (to use temporary files) a long time ago, but never tried it. So maybe I should really give it a go, it seems like it could work (with some nice UI, etc).

    Thank you for the nice explanation and inspiration/reminder ??
    And even tho this plugin didn’t really work, I’m glad you found a solution ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Returns 500 Error’ is closed to new replies.