• Resolved ffenton

    (@ffenton)


    I updated Wordfence today and immediately got locked out of site with following message:
    Your access to this service has been temporarily limited. Please try again in a few minutes. (HTTP response code 503)
    Reason: Accessed a banned URL

    So after a minor panic I renamed the plugin folder and got back into site and wordpress admin. I installed wordfence assistent and turned off firewall.

    I renamed plugin folder back to orignal name but Wordfence wouldn’t reactivate. So I deleted plugin and did fresh install and now getting the following error when trying to activate the plugin:

    Plugin could not be activated because it triggered a fatal error.
    Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 30894399 bytes) in /home/xxxxx/public_html/xxxx/wp-includes/wp-db.php on line 1928

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @ffenton,

    This issue is not specific to Wordfence but indicates that you need to increase the memory allocated to PHP scripts.

    You can find more information about this error, here.

    Thread Starter ffenton

    (@ffenton)

    I’ve checked and double checked with hosting company and memory limit is set to 1024M so don’t think this is the problem.

    Any other ideas as to what might be causing this?

    Hi @ffenton,

    The error message shows:

    Allowed memory size of 268435456 bytes exhausted

    268435456 bytes = 256 Mb

    I’m not sure where that value of “1024 M” has been set but it doesn’t seem to be taken into account.

    Thread Starter ffenton

    (@ffenton)

    Found it!

    I had to alter wp-config.php. Even though I had define(‘WP_MEMORY_LIMIT’, ‘1024M’) for some reason admin was only using default 256M. Have now added define(‘WP_MAX_MEMORY_LIMIT’, ‘1024M’) to wp-config.php and the problem appears to have gone away.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Unable to activate plugin’ is closed to new replies.