• Resolved CGS Web Designs

    (@cgscomputers)


    Every time on the admin dashboard I try to list plugins, posts, or WooCommerce orders, the site throws either an HTTP 500 error or a generic WordPress error that sends me an email with this error message.

    An error of type E_ERROR was caused in line 52 of the file /public_html/wp-content/plugins/wp-security-audit-log/classes/Sensors/Database.php. Error message: Allowed memory size of 268435456 bytes exhausted (tried to allocate 4096 bytes)

    Front-end of the site seemed to be not affected (at least not at first glance). Not quite sure exactly when this started, I first saw it about a week ago but it happened just once and then everything was fine but tonight it was consistent. I had to use FTP to remove the plugin and then the site behaved as normal. Troubleshooting steps available are minimal as it’s a client site running eCommerce and high volume so I can’t just go in there and start disabling other plugins or running debug. I did try to re-install the plugin but as soon as I activated it, the problem returned – I reset the plugin settings and deleted all of the log – but no luck. Hoping that maybe someone has seen this particular behavior and can point me to a solution. So far, I have WP Security Audit log running on lots of other sites without any issue. My next troubleshooting step will be to remove the left-behind tables that remain and see if I can reinstall the plugin at that time, but haven’t had a chance to do it yet.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support robertabela

    (@robert681)

    Sorry to hear you are having such a problem @cgscomputers and thank you for reporting the issue.

    Let’s start with some basic troubleshooting questions:

    1) Can you please let me know what version of the plugin, WordPress and PHP are you running?

    2) What e-Commerce plugin is the user using and what version?

    Looking forward to hearing from you.

    Plugin Support robertabela

    (@robert681)

    Hello @cgscomputers

    Can you please also tell us how many plugins you have installed on this website?

    Thread Starter CGS Web Designs

    (@cgscomputers)

    Hey Robert thanks for the quick reply.

    I do believe I’ve figured this one out, at least for now. After enabling WP Debugging with the client’s permission, I was able to determine that the WP Memory was being exhausted. Had to bump it from 128MB to 512MB in order to resolve the issue. I’m not sure what has changed that suddenly the system needs 3x more memory than it used to, but I do update plugins as soon as updates are available so it could be any number of conflicts. No new plugins have been installed – just so happens your plugin was the only one that kept turning up in the logs. I don’t see any indication of other resources such as CPU increasing though – just seems to be memory.

    For the record, on this site, there are 3 monster plugins – WooCommerce, JetPack, and Paid Memberships Pro (latest versions). The customer also purchased extensions for WooCommerce and Paid Memberships Pro, each extension counts as an additional plugin so the plugin count for this site way higher than what I’d normally consider appropriate (like 40) – but the large majority of these extensions are not much more than small code snippets. The site runs on PHP 7.3. It’s still odd though, all of these have been running for almost 2 years with base memory and I’ve had no issues until now.

    I’ll keep monitoring for any additional error messages, but haven’t had a problem ::knock on wood:: since I upped the memory.

    Plugin Support robertabela

    (@robert681)

    Hello @cgscomputers

    The error was an out of memory error when running a specific query. In this case the query is trying to get a list of installed plugins. Hence why I asked you how many plugins does the website have. Though, 40 plugins are not too much and you should not have such a problem.

    However, over two years we and all the other plugin developers have added new features to our plugins, so it is normal for software to require more memory over time. So that might be the case.

    Anyway, if you want us to look further into this, please send us the System information file to [email protected] and we’ll start looking into it.

    Have a great day.

    Thread Starter CGS Web Designs

    (@cgscomputers)

    @robert681 just an FYI, this also occurred on another site of mine. This one doesn’t have any ‘heavy’ plugins and the error only occurred when doing a purge all on my cache. Same error message though referencing a PHP memory exhaustion on /wp-content/plugins/wp-security-audit-log/classes/Sensors/Database.php.

    I bumped the PHP memory from 256MB to 512MB and that resolved the issue. May be worth nothing though, that something has changed with this plugin seeming to be the common denominator. Everything appears to be working normally though after the memory adjustment.

    Plugin Support robertabela

    (@robert681)

    Thanks for the updaet @cgscomputers

    Every bit of information helps. We will keep an eye on this issue.

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