magento PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate xxxxx)
来源:互联网 发布:单片机简易电子琴7键 编辑:程序博客网 时间:2024/06/06 03:56
今天在magento1.9上给后台添加数据,根据客户要求添加数据(数据比较多,所以我写了一个脚本添加的,这不是重点),添加完数据以后,后台出现500错误,通过IE关闭友好提示,得到了详细的错误信息PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2944886 bytes) inC:\virtualhost\goglobalis2017\html\app\code\core\Mage\Core\Model\Layout.php on line 556
注意:一定请看完本片文章以后,再去实验
错误的大致意思是说php内存超出,所以我要修改php.ini 的memory_limit 的大小
1.修改php.ini
在magento的根目录打开php.ini配置文件,搜索memory_limit
默认是64M,我把它改成1024M了,(哈哈)
修改后:
why???
改了之后没有奏效,无用!
没事我还有办法.
2.修改.htaccess
php_value memory_limit 1024M
why???改完也没效果
卧槽,没事继续第三种
3.直接在程序页面上修改。
ini_set('memory_limit', '1024M');
效果立竿见影。搞定。
为什么写三种修改办法,如果你使用第一种可以奏效不建议使用第二种,更不建议使用第三种!原因我在这里就不说了!
0 0
- magento PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate xxxxx)
- Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 775920 bytes) 问题解决
- Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 775920 bytes)
- Fatal error: Allowed memory size of 12582912 bytes exhausted (tried to allocate 62 bytes) in
- 问题解决Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 38218371 bytes)
- Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2611816 bytes) 今天要
- Fatal error: Allowed php错误提示memory size of 8388608 bytes exhausted (tried to allocate 58368 bytes) i
- Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 393216 byt
- php项目编写过程中Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 3214636 byt
- Allowed memory size of 33554432 bytes exhausted (tried to allocate 43148176 bytes) in php
- Allowed memory size of 33554432 bytes exhausted (tried to allocate 16 bytes)
- php内存不够用,出现Allowed memory size of 8388608 bytes exhausted (tried to allocate 1298358 bytes)
- PHP的内存限制 Allowed memory size of 134217728 bytes exhausted (tried to allocate 1099 bytes) in
- php内存不够用,出现Allowed memory size of 8388608 bytes exhausted (tried to allocate 1298358 bytes)
- PHP的内存限制 Allowed memory size of 134217728 bytes exhausted (tried to allocate 1099 bytes) in
- PHP的内存限制 Allowed memory size of 134217728 bytes exhausted (tried to allocate 1099 bytes) in
- PHP的内存限制 Allowed memory size of 134217728 bytes exhausted (tried to allocate 1099 bytes) in
- PHP的内存限制 Allowed memory size of 134217728 bytes exhausted (tried to allocate 1099 bytes) in
- 5位运动员参加了10米台跳水比赛,有人让他们预测比赛结果
- 树:将二叉搜索树转换为排序的双向链表
- 写在清明
- 语义网的愿景
- SSH之IDEA2017整合Struts2+Spring+Hibernate
- magento PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate xxxxx)
- SQL复习 2017-3-30
- hive 函数
- lintcode 96 链表划分
- java中final关键字
- l1约束的最小二乘学习
- Bash基本命令
- 最大公约数(gcd):Euclid算法证明
- linux find命令及特殊权限