Joomla - 已用完 1073741824 字节的允许内存大小

2023-10-16php开发问题
2

本文介绍了Joomla - 已用完 1073741824 字节的允许内存大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

我的 joomla 网站开始显示以下错误

My joomla website started to show following error

致命错误:已用完允许的 1073741824 字节内存大小(尝试分配 78 字节)

我知道我们可以使用 ini_set 来增加内存限制,但我认为这不是解决这个问题的正确方法.尽管如此,如果我将内存限制设置为无限制 (-1),我将收到内部服务器错误.我完全不知道最近在这个网站上的活动,因为我是新分配的这项任务.我尝试使用 DB 禁用一些插件和模块.我所做的是,只需从 _modules_plugins 中以 id 的降序获取条目并更改 publish0.但没有任何效果.我收到同样的错误(致命错误:允许内存...).我试图打开管理页面,这也没有加载.只是显示一个空白页面.

I know we can increase the memory limit using ini_set, but I believe it is not the correct way to solve this. Even though, if I set the memory limit to unlimited (-1), I will get an Internal Server Error. I am completely unaware about the recent activities on this site, as I am newly assigned to this task. I tried to disable some plugins and modules using DB. What I did is, just fetch the entries from _modules and _plugins with descending order of id and change the publish to 0. But nothing works. I am getting the same error (Fatal error: Allowed memory...). I tried to open the admin page, that is also not loading. Just showing a blank page.

请帮我解决这个问题.我是 joomla 的新手

Please help me to fix this. I am new to joomla

推荐答案

对于这类问题,我认为您不会得到简明的答案,因为它太宽泛了.听起来你有内存泄漏.见:

I don't believe you're going to receive a concise answer for this type of problem as it is far too broad. It sounds like you have a memory leak. See:

  1. 如何查找哪个 PHP 脚本正在泄漏内存?
  2. 诊断内存泄漏 - 已用完 # 字节的允许内存大小

不幸的是,查找内存泄漏的原因很少是一项简单的任务.上面的两个链接确实提供了一些有用的提示,即调用 memory_get_usage 和 Xdebug 扩展名.

Unfortunately, finding the cause of a memory leak is seldom a simple task. The two links above do provide some useful tips, namely placing calls to memory_get_usage and also the Xdebug extension.

即使您不熟悉 Joomla 并且更熟悉代码库,它也可能不会让您更轻松地解决这个问题.

Even if you weren't new to Joomla and more familiar with the code base, it probably wouldn't make solving this problem any easier.

这篇关于Joomla - 已用完 1073741824 字节的允许内存大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

PHP实现DeepL翻译API调用
DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以...
2025-08-20 php开发问题
168

PHP通过phpspreadsheet导入Excel日期数据处理方法
PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的...
2024-10-23 php开发问题
287

mediatemple - 无法使用 codeigniter 发送电子邮件
mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)...
2024-08-23 php开发问题
11

Laravel Gmail 配置错误
Laravel Gmail Configuration Error(Laravel Gmail 配置错误)...
2024-08-23 php开发问题
16

将 PHPMailer 用于 SMTP 的问题
Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)...
2024-08-23 php开发问题
4

关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题
Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)...
2024-08-23 php开发问题
17