• I am getting this error when trying to edit a page on WordPress:

    Fatal error: Allowed memory size of 805306368 bytes exhausted (tried to allocate 212992 bytes) in?/home/customer/www/avensolewinery.com/public_html/wp-includes/class-wpdb.php?on line?2425

    There has been a critical error on this website. Please check your site admin email inbox for instructions.”

    We can edit the page in Elementor and I reached out to our web host (site ground) and they confirmed that there is enough memory in the php files and that the error is to do with a plugin.

    All the plugins have been updated and I have turned them all of and tried turning them on one by one and the problem still persists, can anyone please help?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi @darius530,

    Thanks for reaching us,

    The error message you’re encountering indicates that your WordPress site is running out of memory when trying to edit a page, and it specifically mentions the class-wpdb.php file, which is a core WordPress file.

    The issues generally occur due to the minimum execution time set in your php.ini. In order to fix the issue, you can try increasing the PHP Memory Limit. For this, you can contact the hosting provider and request them to increase the upload size, and they will do it for you.

    Moreover, if it doesn’t work for you, you can try switching to the WordPress Default theme, as sometimes the themes can also cause Memory Issues.

    If the issue is fixed after switching the theme, you can contact the specific Theme Support forum and drop your support query there.

    Regards

    To increase memory limit in WordPress, edit wp-config.php and add this code:


    /** Memory Limit */
    define('WP_MEMORY_LIMIT', '256M');
    define( 'WP_MAX_MEMORY_LIMIT', '256M' );
    set_time_limit(300);

    Add it before this line:


    /* That's all, stop editing! Happy blogging. */

    Could you please perform that procedure and see if it helps?

    Thank you

    Thread Starter darius530

    (@darius530)

    Yes I have added that line of code and I ams till getting the error

    Thread Starter darius530

    (@darius530)

    I have tried these solutions and none have worked. Can anyone else help diagnose this problem?

    Thread Starter darius530

    (@darius530)

    Wanted to bump this again.

    I added this line of code to the php files

    /** Memory Limit */
    define(‘WP_MEMORY_LIMIT’, ‘256M’);
    define( ‘WP_MAX_MEMORY_LIMIT’, ‘256M’ );
    set_time_limit(300);

    IT caused all the accordions and event pages we had on our site to disappear. Can someone please advise?

    @faisalahammad @barsha04

    Hey @darius530

    This code will enable debugging and does not provide a way to remove any pages. You may encounter error notices on specific pages after enabling debugging.

    Thread Starter darius530

    (@darius530)

    @faisalahammad so is there any way to fix the initial problem?

    I’m still getting the same error

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Fatal error: Allowed memory size of’ is closed to new replies.