简体   繁体   English

网站关闭,PHP错误

[英]website down with php error

i do not know php but had installed wordpress, i visit my site and see the following error 我不知道php但已安装了wordpress,我访问我的网站并看到以下错误

Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 98304 bytes) in E:\Domains\mysite.com\wwwroot\wp-content\plugins\wordfence\lib\wfLog.php on line 431
PHP Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 98304 bytes) in E:\Domains\mysite.com\wwwroot\wp-content\plugins\wordfence\lib\wfLog.php on line 431

how do i fix hat above, please guide 我如何在上面固定帽子,请指导

You have a plugin called Wordfence which is causing the problem. 您有一个名为Wordfence的插件导致了此问题。 It appears to be overloading your memory. 它似乎使您的内存超负荷。 I wouldn't mess with your server config, the problem is with the plugin. 我不会弄乱您的服务器配置,问题出在插件上。 Try deleting those logs, that should work, but it may only be a temporary solution. 尝试删除那些日志,这应该可行,但这可能只是一个临时解决方案。 Removing the plugin would certainly solve the problem. 删除插件肯定可以解决问题。 No idea what Wordfence is though. 不知道什么是Wordfence。 If that doesn't work, change the title of your question to include "Wordfence plugin". 如果这不起作用,请将问题的标题更改为包括“ Wordfence插件”。

In my opinion i have got a better solution for you. 我认为我为您提供了更好的解决方案。 All you need to do is just to increase memory size. 您需要做的只是增加内存大小。

By default, when you installed and configure Wordpress it comes by 16MB memory . 默认情况下,在安装和配置Wordpress时,它具有16MB的内存。 In your case, you can keep the plugin you already installed and add the following one line code to your wp-config.php file. 就您而言,您可以保留已安装的插件,并将以下一行代码添加到wp-config.php文件中。

You can access this file via FTP(File Transfer Protocol) client FileZilla or from your hosting cPanel. 您可以通过FTP(文件传输协议)客户端FileZilla或从托管cPanel访问此文件。

/* Increase memory */ code : define( 'WP_MEMORY_LIMIT', '96M' ); / *增加内存* /代码:define('WP_MEMORY_LIMIT','96M');

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM