dedecmsFatal error: Allowed memory size of 8388608 bytes exhausted 解决方案

    技术2022-05-20  49

     

    今日使用织梦的全站更新功能,发现不能使用。当点击全站更新后,就会出现以下Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 16 bytes) in ……common.func.php文件第241行的错误。这里我就到网上找来一些处理办法,并通过自己实践,成功解决问题。

     

    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 16 bytes) in ……common.func.php文件第241行错误原因分析:更新时可能会因为文件过多从页造成单个页面内存使用过多,

     

    提示错误为:

     

    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 775920 bytes) in……这里是文件位置,

     

    解决方法:

     

    打开这个提示出错的这个文件,在程序尾加一句:ini_set('memory_limit','-1');就可以了。

     

    处理过程,复制代码ini_set('memory_limit','-1');然后找到in中对于的文件,并在所在行的结尾加上ini_set('memory_limit','-1');即可。

     


    最新回复(0)