Site logo

Archived topic

413 Request Entity Too Large

3 replies · Started by Jackie on September 11, 2019

Viewing posts 1–4 of 4

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 :)

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.

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 :)

Glad you found a workaround :)

This archived topic is closed to new replies.