Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @therealex

    Hope you are doing well today.

    I have reviewed your error logs but can’t see anything related to the 500 error, you should look for a Fatal error in debug logs to find more clues about this issue, please keep the debug mode enabled and try reproduce the error. after that share the logs with us.

    Also I ran some tests and submitted your form a few times but didn’t get any errors. Are you getting the error when uploading a specific file? Maybe the file format is not allowed by your server, or it’s too large.

    Kind Regards
    Amin

    Thread Starter therealex

    (@therealex)

    Thank you again for your kind efforts. I saw the uploads. The issue comes when I’m uploading a larger file , greater than 100 megs. As I want to use this to allow fans to upload videos, I set the maximum size to 1 gig – both in the plugin and the php files.
    I tried this with different size files. Up to 133 megs worked. Anything 140 or over didn’t. Would it be at all helpful if I pasted in the info from the Network tab of Inspect Mode? The debug.log file doesn’t show anything new, just repeats of what you already saw.
    I’m guessing the size limit is a clue, but where that can be changed is beyond me. The network tab references admin-ajax.php as being what fails.
    Thank you again, I really appreciate your help.

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @therealex

    You can check the max file upload limit in wp-admin -> site health -> server to see how much your limit is.

    There are server options to change the upload limit however, it depends on your server and site configuration.

    If your site is a WordPress Multisite, you need to update the allowed upload size.

    – Go to: Network Admin → Settings → Network Settings
    – Scroll down to Upload Settings
    – Find “Max upload file size”, increase it to 1048576 (1GB in KB)
    – Click Save Changes

    If you’re using an Apache server, edit the .htaccess file in your WordPress root directory and add:

    php_value upload_max_filesize 1024M
    php_value post_max_size 1024M
    php_value memory_limit 1024M
    php_value max_execution_time 300
    php_value max_input_time 300

    If neither of the suggestions helped, you may contact your hosting provider and ask them about how to increase the upload. In some hosting providers, the limits cannot be changed at all.

    Kind Regards
    Amin

    Thread Starter therealex

    (@therealex)

    Ok, I got the answer. I thought you might like to know about it, in case this comes up again:

    Thank you for contacting support. I checked the Apache logs and found the ModSecurity is blocking the upload because of the  “Request body (Content-Length) is larger than the configured limit” This can not be changed since you are on a shared server. 
    The size 134217728 roughly is 134.22 MB. So the files larger that that won’t be able to be uploaded.  The only way to increase this limit would be to upgrade to a VPS  where you have root level access to make these changes. 

    Plugin Support Nebu John – WPMU DEV Support

    (@wpmudevsupport14)

    Hi @therealex,

    Thank you for sharing the details. This information will be helpful if a similar issue arises in the future.

    Since your question has been answered, we will mark this topic as resolved. If you need further assistance, feel free to reach out. Have a great day!

    Best Regards,
    Nebu John

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

The topic ‘Follow up – 500 server error when uploading with forminator’ is closed to new replies.