• Resolved Marion Dorsett

    (@mariondorsett)


    When this plugin v5.6 is activated it’s throwing a 500 error on the site.

    No error_log was generated because the error is throwing a fatal memory error.

    I reverted the plugin to 5.5.2 and no issues with that version of the plugin.

Viewing 6 replies - 1 through 6 (of 6 total)
  • rpodsada

    (@rpodsada)

    Update: Found a fix for this with 5.6: Go into Settings and Clear Cache. The error seems to be some kind of memory runaway with the cache after the upgrade. Maybe the upgrade process should clear the cache automatically on each upgrade?

    Plugin Author AAM Plugin

    (@vasyltech)

    Hi guys,

    Yup, @rpodsada is correct. That is one of the way to possibly resolve this issue. Check this thread https://www.ads-software.com/support/topic/white-screen-of-death-on-page-load/.

    Honestly I would love to find the real root cause for this issue, however it occur in rare occasions and seams like clearing cache actually helps.

    Currently I do not want to overload you guys with technical details on what I was able to find by troubleshooting some of the websites that I had access to, however just want to let you know that I keep my eyes open so please contact me if anything.

    Regards,
    Vasyl

    rpodsada

    (@rpodsada)

    @vasyltek, is there a way to clear the cache from the command-line? Either with wp-cli, PHP, or some other scriptable method?

    • This reply was modified 6 years ago by rpodsada.
    • This reply was modified 6 years ago by rpodsada.
    Plugin Author AAM Plugin

    (@vasyltech)

    Hi @rpodsada,

    You can do that programmatically by calling AAM_Core_API::clearCache().

    That should clear all the cache.

    Regards,
    Vasyl

    mvaneijgen

    (@mvaneijgen)

    @vasyltech could you elaborate from where do I need to call AAM_Core_API::clearCache()?

    I get the following errors

    Fatal error: Allowed memory size of 100663296 bytes exhausted (tried to allocate 294912 bytes) in /wp-content/plugins/advanced-access-manager/Application/Core/Object/Cache.php on line 75

    Fatal error: Allowed memory size of 100663296 bytes exhausted (tried to allocate 294912 bytes) in /wp-includes/formatting.php on line 4331

    rpodsada

    (@rpodsada)

    @mvaneijgen You can run this using wp-cli. The eval command it lets you execute PHP code. e.g. Run this from the command line of the root WordPress install folder:

    wp-cli eval 'AAM_Core_API::clearCache();'

    The PHP code would also work from any script that has wp-load.php loaded as well, so any file inside of your theme, or your own script which includes wp-load before running this code.

    That being said, it’s probably not a good idea to put it into functions.php or another theme file, though. Even though it would run, it would clear the cache on each page load, slowing down your site and eliminating any benefits the AAM cache would provide.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Memory Limit Error’ is closed to new replies.