zblog网站搬家出现错误提示E_ERROR : Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) (register_shutdown_function)如下图所示
Z-BlogPHP
错误提示
错误信息
(1)E_ERROR : Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) (register_shutdown_function) (1.6.7.2160 (Valyria)) (Linux4.18.0; nginx1.20.1; PHP7.2.33x64; mysqli5.7.37; curl-o7.70.0; OpenSSL1.0.2u)
/www/xxx/xx/zb_system/function/lib/database/mysqli.php
195 }
196
197 $data = array();
198 if (is_object($results)) {
199 while ($row = mysqli_fetch_assoc($results)) {200 $data[] = $row;
201 }
202 } else {
203 $data[] = $results;
204 }
第199行出现的错误提示,其中E_ERROR : Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) (register_shutdown_function) (1.6.7.2160 (Valyria)) (Linux4.18.0; nginx1.20.1; PHP7.2.33x64; mysqli5.7.37; curl-o7.70.0; OpenSSL1.0.2u)提示可以找出错误的根本原因,脚本运行内存不够,增大脚本运行内存即可解决问题!
宝塔面板解决方案为软件商店->php-7.2管理(其中7.2是你网站用的php版本)->配置修改->
脚本内存限制memory_limit把128M改成1024M即可解决问题。