• Resolved idk2065

    (@idk2065)


    Hello,
    I need to add a large number of pictures (10-20K) to my galleries and I’m trying all the available methods, but all of them keep on failing after some time.
    For example, I created a new gallery and imported the folder of the files I uploaded via FTP, but it adds only something like 200 pictures before stopping.
    I get also the same problem if I try scanning the folder for new images: it retrieves about 200 pictures at a time and then freezes.
    I understand that this could be an issue with the hosting provider and I tried moving it to a personal VPS: unfortunately I had no improvement in the performance.

    These are my current server stats:
    Linux 3.10.0-1160.45.1.el7.x86_64 x86_64
    Server web Apache
    PHP Versione 7.3.33 (supporting 64bit)
    PHP SAPI fpm-fcgi
    PHP max input 10000
    PHP time limit 900
    PHP memory limit 512M
    Max input time 120
    Max file upload size 300M
    Max PHP post size 300M

    What can I do in order to add a large number of pictures without interruption? If the problem is caused by the server, do you know any service that you recommend? I like nextgen and I don’t want to switch to another plugin
    Thank you

    • This topic was modified 3 years, 11 months ago by idk2065.
Viewing 1 replies (of 1 total)
  • Plugin Contributor Imagely

    (@imagely)

    Hi @idk2065,

    Let’s check to see if there are any server’s CPU or RAM spikes during the uploading process. If it reaches 100% for any of them, its most like related to the issue you are getting. And the main recommendations would be trying to upload less images either to further upgrade the hardware.

    As an idea, you can try disabling the parallel uploads adding the following constant to your wp-config.php file to see if that’d be of any help:

    define('NGG_UPLOAD_LIMIT', 1);

    The above constant should only allow uploading one image at a time. While that’ll make the process slower – it may help use lower hardware resources.

Viewing 1 replies (of 1 total)

The topic ‘Problem adding multiple pictures to gallery’ is closed to new replies.