I'm recently running into PHP out-of-memory problems on our large forum since after updating to 2.20.6 of this mod, with no clear cause indicated in the error log. So I can't say for certain it's this addon, except by correlation of update timing and more importantly the place it occurs.
Example XF admin panel error:
Code:
ErrorException: Fatal Error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) src/XF/PermissionCache.php:184
Generated by: Janus Aug 7, 2025 at 3:28 PM
Stack trace
#0 [internal function]: XF::handleFatalError()
#1 {main}
Request state
array(4) {
["url"] => string(24) "/index.php?reports/7352/"
["referrer"] => string(48) "https://forums.taleworlds.com/index.php?reports/"
["_GET"] => array(1) {
["reports/7352/"] => string(0) ""
}
["_POST"] => array(0) {
}
}
As you can see, the stack trace only indicates XF itself, not any addon. But it only happens when trying to view a report, and results in the server returning a 500 error. It's consistently failing to load report pages now for me, erroring every time.
I tried rebuilding the XF permission cache completely through the admin panel first based on the source file it's erroring in, and the rebuild went without a hitch, but the problem persisted. I've also tried temporarily increasing PHP's memory limit and found that 512 MB or higher does take care of it, but that seems excessive to have allocated to every PHP worker. And I've only noticed this problem pop up when viewing reports specifically; not definitive, though, of course. Oh, and I also notice that even with that memory increase, individual report pages seem to load significantly slower than other pages of the forums. Taking close to a second to load, versus normal fraction of a second page loads.
I decided to try disabling addons to check for possible culprits with PHP's memory limit reverted back down from the above test, and since this addon seemed the most likely related, I started by disabling it alone. The problem went away, and I could again view any report quickly without error. I re-enabled this addon, and again consistently get a server error trying to view any report. Disabled it again, and again I can view reports.
Tried disabling a couple other addons temporarily which are likewise related to reports or the moderator panel, the error persisted with them disabled. The problem went away only with this addon specifically disabled.
So the problem does seem to be caused or at the very least exacerbated by this addon, very likely related to permission checks. I wish XF had a more useful stack trace for this.