drzrzzkh462254 2014-03-18 17:32
浏览 264

增加php值内存限制

I transferred the web directory of a site to new hosting. after importing the directory and the DB, I got this error:

PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 79 bytes) in /mnt/stor12-wc1-ord1/895923/www.youth-panel.com/web/content/libraries/joomla/database/database/mysql.php on line 712

I found my .htaccess file that was empty and added the line php_value memory_limit 256m, and it didn't work, I changed it to 512m, which is the highest that they support and still doesn't work. Can someone help me please.....Never thought a site transfer would be this difficult.


so I added the folloing to .htaccess php_value memory_limit 512M php_flag display_errors 1 php_value error_reporting 8191

RewriteEngine on RewriteBase /

and I get the following

Strict Standards: Only variables should be assigned by reference in /mnt/stor12-wc1-ord1/895923/www.youth-panel.com/web/content/plugins/system/jantispam/jantispam.php on line 90

Strict Standards: Only variables should be assigned by reference in /mnt/stor12-wc1-ord1/895923/www.youth-panel.com/web/content/plugins/system/jantispam/jantispam.php on line 68

Strict Standards: Only variables should be assigned by reference in /mnt/stor12-wc1-ord1/895923/www.youth-panel.com/web/content/plugins/system/jantispam/jantispam.php on line 261

Strict Standards: Only variables should be assigned by reference in /mnt/stor12-wc1-ord1/895923/www.youth-panel.com/web/content/plugins/system/jantispam/jantispam.php on line 274

Strict Standards: Only variables should be assigned by reference in /mnt/stor12-wc1-ord1/895923/www.youth-panel.com/web/content/plugins/system/jantispam/jantispam.php on line 39

Strict Standards: Only variables should be assigned by reference in /mnt/stor12-wc1-ord1/895923/www.youth-panel.com/web/content/plugins/system/slprettyphoto/slprettyphoto.php on line 30

Strict Standards: Only variables should be assigned by reference in /mnt/stor12-wc1-ord1/895923/www.youth-panel.com/web/content/plugins/system/ctkfbinit/ctkfbinit.php on line 94

Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 79 bytes) in /mnt/stor12-wc1-ord1/895923/www.youth-panel.com/web/content/libraries/joomla/database/database/mysql.php on line 712

I will try turning off those plugins to see what happens

  • 写回答

3条回答 默认 最新

  • douzhong2954 2014-03-18 17:37
    关注

    Two possibilities -

    First, you need to increase the value of "memory_limit" in php.ini.

    Second, you could have a problem with your code that is allocating too much memory.

    评论

报告相同问题?

悬赏问题

  • ¥20 delta降尺度方法,未来数据怎么降尺度
  • ¥15 c# 使用NPOI快速将datatable数据导入excel中指定sheet,要求快速高效
  • ¥15 再不同版本的系统上,TCP传输速度不一致
  • ¥15 高德地图点聚合中Marker的位置无法实时更新
  • ¥15 DIFY API Endpoint 问题。
  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程