• Artan

    (@artankrasniqi1988)


    Hi,

    in an earlier post that I wrote (https://www.ads-software.com/support/topic/nested-elements-in-editor-eat-up-all-php-memory/) I explained a problem with server error “500” when trying to save an edited page.

    I thought that the excessive usage of PHP memory limit was connected to the use of nested elements. Well I was wrong.

    Our hoster upgraded PHP memory limit from 1024MB to 2048MB and I was sure I will never hit the limit of that while editing. Well, I was wrong. I thought it can′t be, because I just changed minor things like texts, some styles, etc. and had also nested elements. I knew the problem was lying somewhere else then in the nested elements after that.

    Then the revisions came into my mind. Because I saved a lot of times to test and see the site in “live view” mode, also a lot of revisions were created. They seem to bloat up until you reach at one point crazy PHP memory sizes, which then lead to “error 500” when trying to save.

    There really should be an Elementor in house option to limit the revisions or delete them easily so that people don′t run into that problem. I have read already on github on other sites about this error. So I′m pretty sure now it is due to excessive revisions loaded into the editor.

    For everyone who wants to limit revisions globally can modify the native WP revisions system, but be careful as this is not especially only for Elementor revisions!

    Read more about this for example here: https://www.wpkube.com/how-to-disable-post-revisions-in-wordpress/

    For example limit to 3 revisions globally. You have to insert it into your wp-config.php file.

    define( 'WP_POST_REVISIONS', 3 )

    Give the server some time then reload your elementor page you want to edit. For me then the last 3 revisions were shown and the error 500 problem was gone.

    I hope this helps and that Elementor perhaps fixes this problem.

    Regards

  • The topic ‘Error 500 while saving due to excessive revisions history’ is closed to new replies.