I was building a special event page using the "flexible multi-image gallery plugin for Empire CMS" approach, and the morepic gallery needed a lot of photos — more than 300.
With the default configuration, the first upload finished, but saving threw an error: "The field 'image description' is empty. Please complete the required fields."
I tried switching the morepic field type to LONGTEXT. That didn't help either.
After asking around, the fix turned out to be adjusting the PHP configuration (php.ini) to lift the system-level limits:
PHP caps the number of files per upload and the request size by default, and if you leave those alone the upload will fail.
- Find php.ini: check the Loaded Configuration File path in phpinfo(), or edit it directly under the PHP settings in BT Panel.
Change the parameters (these are sample values; adjust as needed):
Parameter Default Suggested Notes max_file_uploads 20 500 Max files per form submission; must be at least your planned count post_max_size 8M 500M Total POST request size; must cover the combined size of all images upload_max_filesize 2M 5M Max size per image; adjust as needed max_execution_time 30 300 Script timeout; keeps large uploads from timing out memory_limit 128M 256M PHP memory limit; prevents out-of-memory errors - Restart the service: restart PHP-FPM, Apache, or Nginx for the changes to take effect.
With those steps done, morepic handles 500+ images in a single upload without any trouble.
Comments No Comments