大网数据广告活动
服务器运维问答

Strange PHP error: "Allowed memory exhausted"

· 52CE 我爱测

I tried to set up a new local XAMPP installation recently, and wanted to install the Luna Forum software on it. But after finishing the installation, I got prompted with this error: Fatal error: Allowed memory size of 134217728 b…

问题原文

原帖链接 · a25bedc5-3d09-41b8-82fb-ea6c353d75ae · CC BY-SA 3.0

I tried to set up a new local XAMPP installation recently, and wanted to install the Luna Forum software on it. But after finishing the installation, I got prompted with this error:

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 7168 bytes) in [...]\forum\themes\Fifteen\views\header.php on line 43

It is not the usual problem that has been asked here before, because as you see the 7168 bytes is way below the maximum of 134217728 bytes. The file where the error occours is https://github.com/GetLuna/Luna/blob/lunadev/themes/Fifteen/views/header.php .

It doesn't seem to belong to the code, because as you see in the line there is nothing that could create problems, only the </div>.

The error appears both on the latest stable version and the newest developer build of Luna.

Any idea how to fix that?

已采纳解答

原帖链接 · R. S. · CC BY-SA 3.0

The error is slightly different then you've interpreted it. It's not saying that you've only used 7168 bytes, but that 7168 + currently used >= 134217728 bytes.

Really, you should file a bug with the Luna software team to investigate, as this will be really complicated to solve without having in-depth knowledge of their software internals.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-10-16)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。