• Resolved mhartste

    (@mhartste)


    Hi AIOWPS team (or anyone else who has solved this issue) – Thanks for the great plugin!

    I’m running AIOWPS v4.4.8, and I noticed my /wp-content/debug.log file contains PHP Fatal Errors every hour, every time when your aiowps_hourly_cron_event cron event runs:

    [24-Sep-2021 17:11:01 UTC] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /var/www/wp-includes/wp-db.php on line 2022

    I am running WP 5.8.1, PHP 7.3.12 / 64Bit OS, and 512 MB Memory.

    Have you seen this issue before? Do you have any ideas how I can resolve it?

    Thanks!

    Mike

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support vupdraft

    (@vupdraft)

    Hi,

    This means that your WordPress Memory limit has been exceeded

    Can you add this to the top of your wp-config.php, before the line that says, “Happy Blogging”:

    define(‘WP_MEMORY_LIMIT’, ‘1024M’);

    Thread Starter mhartste

    (@mhartste)

    Thanks, vupdraft, for your reply.

    Normally, my site uses about 17MB, or about 3% of what it has available. So I have plenty of memory available.

    But something is happening in this AIOWPS cron job which exhausts whatever amount of memory is available, then gets that fatal error. When the cron job crashes all of its memory is freed up, and I’m back to 3%.

    Plugin Support vupdraft

    (@vupdraft)

    The file that is generating the error is this one.

    wp-includes/wp-db.php

    If this memory usage isn’t typical for you, can you do a quick scan to see if you have experienced an sql injection attack?
    Can you go to Scan>>File change detection

    It my also be worth changing your DB Prefix and checking the file permissions of your includes file.

    • This reply was modified 3 years, 5 months ago by vupdraft.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Fatal error’ is closed to new replies.