A WordPress plugin to clarify meaningless errors like "Allowed memory size of xxxxxxxx bytes exhausted".
As of April 2026, Hagakure is a WordPress php plugin with 30 active installations and a 5/5 rating from 2 reviews. It has been downloaded 2.0K+ times in total. Requires WordPress 5.9+ and PHP 7.4+. Available on WordPress.org since 2019. Last updated 1 year ago — may have compatibility concerns. Top alternative: WPCode – Insert Headers and Footers +….
Have you ever seen an error log like the one below?
PHP Fatal error: Allowed memory size of xxxxxx bytes exhausted (tried to allocate xxx bytes) in /var/www/wordpress/wp-includes/wp-db.php on line 2007
This means that PHP memory limit is exhausted while retrieving data from a database. In any case, this happens when your site has big data and makes insane loops inside.
But we want to know that which plugin tried to retrieve data?
Hagakure adds extra information to error.log file when wp-db.php causes memory limit error:
[08-May-2019 10:28:37 UTC] wpdb Error Backtrace: #1 Kunoichi\Hagakure\DbLogger->filter_query() /app/public/wp-includes/class-wp-hook.php Line 286 #2 WP_Hook->apply_filters() /app/public/wp-includes/plugin.php Line 208 #3 apply_…
| WordPress | 5.9+ requiredTested up to 6.6.5 |
| PHP | 7.4+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.