• Resolved mvittel

    (@mvittel)


    Hello professionals, I hope someone can help me.
    When updating WP Statistics I get the following error:

    Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in …wp-includes/class-wpdb.php on line 2316

    I have looked in the file, but I don’t see any values there, only this:
    while ( $row = mysqli_fetch_object( $this->result ) ) {
    $this->last_result[ $num_rows ] = $row;
    ++$num_rows;

    Thank you very much for your help

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hi @mvittel,

    Thank you for reaching out,

    The error message you’re seeing indicates that your site has run out of the allowed PHP memory during the update process. This is not directly caused by the WP Statistics plugin code itself, but rather by a limitation set in your server’s PHP configuration.

    Here are a few suggestions to resolve this:
    1. You can try increasing the memory limit by adding the following line to your wp-config.php file, just before the line that says /* That's all, stop editing! */:

    define('WP_MEMORY_LIMIT', '512M');

    2. If the change above doesn’t help or is not allowed by your hosting setup, please reach out to your hosting provider and ask them to increase the PHP memory limit for your site.

    Once the memory limit is increased, please try updating WP Statistics again.
    Let us know if the problem persists—we’re happy to assist further.

    Best regards,
    Mehmet

Viewing 1 replies (of 1 total)

The topic ‘WP Statistics “Allowed memory size”’ is closed to new replies.