• Any time I make any changes to any wording, even if is just a letter, I am getting 413 error. My PHP is set correctly on my dedicated server that I have this hosted on, so not sure why it’s happening. Has anyone ever had this issue, and if so, how did you resolve this?

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @biggyboss92,

    A 413 error means the request is too large, and it usually comes from the web server, not PHP. When you save, the editor sends the whole page, so a long page can hit the limit even for a one letter change.

    Could you check these?

    1. Save a new page with one short paragraph. If that works, the page size is the problem.
    2. On Nginx, set client_max_body_size to 64M and reload Nginx.
    3. On Apache, check for a LimitRequestBody directive.
    4. If ModSecurity is on, raise SecRequestBodyNoFilesLimit. Its default is only 128 KB.

    Let me know how it goes.

    Have a great day ahead!

    Thread Starter biggyboss92

    (@biggyboss92)

    Forgot to mention using elementor for this.. and the error happens when I am editing with edit elementor.

    • This reply was modified 2 weeks, 3 days ago by biggyboss92.
    • This reply was modified 2 weeks, 3 days ago by biggyboss92.

    Hi @biggyboss92,

    Does it happen with multiple pages/posts? Refer to the following tutorial (section: 413 Request Entity Too Large Error) and a similar forum thread; I hope they will help you resolve the issue.

    https://elementor.com/blog/troubleshooting-wordpress-errors/

    https://wordpress.org/support/topic/error-server-413/

    If not, it would be great if you could consult the Elementor team directly about this bug.

    Elementor suport forum link: https://wordpress.org/support/plugin/elementor/

    • This reply was modified 2 weeks, 3 days ago by Bigul Malayi.
    • This reply was modified 2 weeks, 3 days ago by Bigul Malayi.
    Thread Starter biggyboss92

    (@biggyboss92)

    Just seems to be the one page I am getting the error from. I’ll consult with them though, thank you.

    Thread Starter biggyboss92

    (@biggyboss92)

    So what fixed the issue in the end guys was on my server the mod security feature was turned on, and turning this of somehow magically let me edit my website again.

    Thought I would share in case this happens with anyone else might help them in the future too.

    Hi @biggyboss92,

    Glad you can edit again! Turning off ModSecurity removes the protection it gives your site, but you might be able to keep it on. I suspect the save request for that page is larger than a ModSecurity size limit, while your other pages are smaller.

    Potential solution:

    1. In your ModSecurity configuration, change or add this line to raise the limit, for example to 4 MB: SecRequestBodyNoFilesLimit 4194304
    2. Turn ModSecurity back on, reload Apache, and save the page again.

    If you can’t edit the ModSecurity configuration, for example because you can only switch it on or off, ask your hosting provider to make the change in step 1.

    If you still get the 413, look in the Apache error log for ModSecurity: Request body no files data length is larger than the configured limit. The number at the end of that line is the limit that blocked the save, so set a higher value. If you don’t have access to the error log, your hosting provider can check it for you.

    Hopefully, this lets you keep ModSecurity on and have everything working.

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

You must be logged in to reply to this topic.