为何有时出现:Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes)的错误?

答:大多数是服务器问题,内存耗尽,建议优化服务器。
1、修改php.ini (改配置)
memory_limit = 128
或
2、通过ini_set函数修改配置选项值 (改代码)
ini_set (‘memory_limit’ ‘128M’) ;
或
3、直接取消PHP的内存限制(改代码)
ini_set ("memory_limit""-1");
其他参考解决方法:
这个主要是内存溢出!可以用补丁进行先解决,能解决就没事了。 相关教程如下:
https://www.eyoucms.com/video/bug/31407.html