I am having a wordpress installation for a website with 90k+ posts, using the server stack from ServerPilot.io and hosted on Linode.
Everything works perfectly with no issues except when I try to edit any "page" in the website I get the following error
Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 268435464 bytes) in /srv/users/serverpilot/apps/site-name/public/wp-includes/post.php on line 4362
I have edited the WP_MEMORY_LIMIT and the WP_MAX_MEMORY_LIMIT and set them to the max (2024MB) and tried even more, but I still get the same error.
I researched Google and tried many of the different solutions posted by other developer for the same issue but most of them only suggests the WP_MEMORY solution which is not really working.
P.S. the error message appears exactly inside the "Page Attributes" box and the page does not completely loads, it just stops.
Any suggestion on that?