我有 joomla、virtualmart,当启用 Debug模式时出现错误。 如何修复它?我有vps服务器centos
Fatal error: Allowed memory size of 272629760 bytes exhausted (tried to allocate 284095 bytes) in /plugins/system/debug/debug.php on line 1213
Fatal error: Allowed memory size of 272629760 bytes exhausted (tried to allocate 232974 bytes) in /plugins/system/debug/debug.php on line 1061
Fatal error: Allowed memory size of 272629760 bytes exhausted (tried to allocate 233968 bytes) in /plugins/system/debug/debug.php on line 1064
Fatal error: Allowed memory size of 272629760 bytes exhausted (tried to allocate 285383 bytes) in /plugins/system/debug/debug.php on line 1216
最佳答案
256 MB 对于几乎所有 Joomla 网站来说都绰绰有余。如果您需要更多内存,那么分配更多内存很可能无法解决问题。
某处存在内存泄漏(很可能是由永无休止的递归函数引起的) - 增加到 4 GB(4294967296 字节)似乎有效的原因是服务器超时。检查this post关于如何在您的 Joomla 网站上查找内存泄漏(如果您的技术不是很好,请开始禁用第 3 方模块/插件,直到找到罪魁祸首)。
关于php - joomla fatal error : Allowed memory size of 272629760 bytes exhausted,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38257928/