英文:
PHP Fatal error: Allowed memory size of 268435456 bytes exhausted in sitepress-multilingual-cms
问题
PHP严重错误:允许的内存大小已用尽(尝试分配2097160字节),位于wp-content/plugins/sitepress-multilingual-cms/classes/utilities/class-debug-backtrace.php的第138行。
我尝试通过在wp-config.php
中添加define("WP_MEMORY_LIMIT", "512M")
来增加内存限制,但没有帮助。
另外,我尝试通过更改插件文件夹名称来禁用sitepress-multilingual-cms
插件,但仍然没有成功。
有没有办法解决这个严重错误?如果有,感谢任何建议。
英文:
I am facing on the error like PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 2097160 bytes)in wp-content/plugins/sitepress-multilingual-cms/classes/utilities/class-debug-backtrace.php line 138
.
I tried to increase the memory limit in wp-config.php
by adding define("WP_MEMORY_LIMIT", "512M")
, but it didn't help me.
Also, tried to disable sitepress-multilingual-cms
plugin by renaming the plugin folder name, but it was still no luck.
Is there any way to solve this critical error? If yes, that would be appreciated for any advise.
Thanks.
答案1
得分: 0
这个错误消息表示 PHP 在运行 site press-multilingual-cms 插件时已经耗尽了内存,就我所知。
你可以尝试增加 PHP 的内存限制,以下是如何操作的方式:
-
在你的服务器上找到 PHP.ini 文件。
-
用文本编辑器打开 PHP.ini 文件。
-
在文件中找到以下行:
memory_limit = 128M
-
将数值增加到更高的数字,例如 256M 或 512M:
memory_limit = 512M
-
保存对 PHP.ini 文件的更改。
-
重新启动你的 web 服务器(例如 Apache 或 Nginx)以及 PHP。
这样应该增加了 PHP 可用的内存,从而防止出现 "Allowed memory size exhausted" 错误。如果问题仍然存在,你可能需要咨询服务器管理员或你的 web 主机以获得进一步的帮助。
英文:
This error message is indicating that PHP has run out of memory while running the site press-multilingual-cms plugin to the best of my knowledge.
You can try increasing the memory limit for PHP and Here's how you can do it.
Locate the PHP.ini file on your server.
Open the PHP.ini file in a text editor.
Find the following line in the file:
memory_limit = 128M
Increase the value to a higher number, such as 256M or 512M:
memory_limit = 512M
Save the changes to the PHP.ini file.
Restart your web server (e.g. Apache or Nginx) and PHP.
This should increase the amount of memory available for PHP to use and prevent the "Allowed memory size exhausted" error. If the issue persists, you may need to consult with a server administrator or your web host for further assistance.
答案2
得分: 0
WordPress在版本6.2中进行了核心更改,导致X和Pro中出现无限循环。我们已经在X 10.1.10和Pro 6.1.10中修复了此问题。如果可能,请不要升级到WordPress 6.2,直到您使用这些版本。不幸的是,WordPress似乎已经更改了其默认设置以自动更新到最新版本(通常不是一个好主意)。您可以在您的WordPress设置中更改这一设置。
如果您已经使用WordPress 6.2,并且访问您的网站时出现问题,请删除X/Pro文件夹,从您的Themeco仪表板下载最新版本,然后重新上传并将您的主题更改回X/Pro。如果您希望手动修复此问题,可以在framework/legacy/functions/plugins/cornerstone.php文件的第194行添加return;。
英文:
WordPress made a core change in version 6.2 that caused an infinite loop in X and Pro. We have fixed the issue in X 10.1.10 and Pro 6.1.10. If possible, please do not update to WordPress 6.2 until you are on these versions. Unfortunately it appears WordPress has changed their default setting to auto update to the latest versions (generally, never a good idea). You can change this in your WordPress settings.
If you are already on WordPress 6.2 and having trouble accessing your site, please remove the X/Pro folder, download the latest version from your Themeco dashboard, and then re-upload and change your theme back to X/Pro. If you wish to manually fix the issue you can add return; to line 194 of framework/legacy/functions/plugins/cornerstone.php.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论