不管是使用wp,还是使用其他php程序的朋友,可能会在使用过程中,出现提示内存不足,错误提示如下:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 7680 bytes) in /home/trytryco/public_html/blog/wp-content/plugins/tdo-mini-forms/widgets/tdomf-customfield-widget.php on line 405

这个原因主要是你的程序内存占用超过了服务器的php.ini最大限制,可以这样解决:
在网站根目录(public_html)下创建一个文件php.ini,里面添加下面的代码:

memory_limit = 64M

然后编辑同目录下的.htaccess文件,在文件末尾添加以下代码:

suPHP_ConfigPath /home/******/public_html/

用你控制面板的用户名替换******,支持问题即可解决。如果还有其他错误提示,请在客服中心与我们联系。

标签: