• Resolved bocinet

    (@bocinet)


    Hi!

    We noticed that for some reason we cannot delete our posts from the site…
    If i press the Trash button on the post i’ll get an error message:

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

    This is really intersting because it happened from one day to the next…

    Same plugins same everything, i see one thing which maybe related to this in debug log: “PHP Fatal error: Allowed memory size of 838860800 bytes exhausted (tried to allocate 20480 bytes) in /wp-includes/class-wpdb.php on line 2320”

    Can you help me out?

    • This topic was modified 11 months, 2 weeks ago by bocinet.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi,

    Try enabling WordPress debugging. To enable WordPress debugging, search for following code in the wp-config.php file in the root folder of your website.

    define('WP_DEBUG', false);

    and replace with the following:

    define('WP_DEBUG', true);
    define('WP_DEBUG_LOG', true);
    define('WP_DEBUG_DISPLAY', true);

    Then delete a post and see if you get any errors in the error_log file in the root folder of your website or on the screen.

    Thread Starter bocinet

    (@bocinet)

    Hi!
    I enabled but i only found a memory exhaustion error related to this thing…
    I updated my original post with one thing in the php-fpm log file

    • This reply was modified 11 months, 2 weeks ago by bocinet.
    Thread Starter bocinet

    (@bocinet)

    Update:

    My memory limits are set in wp-config.php to 684M
    and in the php side, the memory is set up to 892M
    Planty enough
    Update:

    My memory limits are set in wp-config.php to 684M
    and in the php side, the memory is set up to 892M
    Planty enough

    But its not working with these values

    • This reply was modified 11 months, 2 weeks ago by bocinet.

    Remove the code from wp-config that is setting memory limit. Save changes. Try deleting the post now. If you still face the problem, contact your web host.

    Thread Starter bocinet

    (@bocinet)

    Thanks, the problem went away with the wp-config.php memory limit setting!
    Funny because i’m the web host ?? I forget that line here

    Thanks!

    No problem ?? Do check the plugin Sassy Social Share if you want to integrate the social media icons at your website.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Deleting posts are not working’ is closed to new replies.