[Resolved] 413 Request Entity Too Large

Home Forums Support 413 Request Entity Too Large

  • This topic has 3 replies, 2 voices, and was last updated 1 year ago by Tom.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1006742
    Jackie

    Hi,

    I am trying to add a hook via the “Elements” section to my homepage but everytime I click “Update” it returns the following message.

    Request Entity Too Large
    The requested resource
    /wp-admin/post.php
    does not allow request data with POST requests, or the amount of data provided in the request exceeds the capacity limit.

    The HTML I am adding is a really large piece of code that controls an animation on the homepage. I have it working but would prefer it to be added via a hook so people don’t break it when it is live.

    Thanks in advance 🙂

    #1006956
    Tom
    Lead Developer
    Lead Developer

    Hi Jackie,

    I’ve usually seen this when the URL in your address bar is too long – is there anything super long in the address bar for you?

    If not, it’s possible that the amount of code in the Hook you’re trying to save is too much for your server.

    #1011709
    Jackie

    Hi Tom,

    Yes I think it was a server issue.

    I have just got around it by using a custom HTML element directly on the page as a block and not used a hook in this case.

    I’ve then saved it as a reusable block and taken a backup of the code so hopefully it won’t be accidentally deleted 🙂

    #1011829
    Tom
    Lead Developer
    Lead Developer

    Glad you found a workaround 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.