dongying6659 2011-09-15 15:01
浏览 46
已采纳

尝试在本地运行Wordpress站点时内存限制问题

I'm working on a wordpress website and I'm attempting to set up a local test-environment for development purposes. I'm running the MAMP (Mac Apache MySQL PHP) stack.

I'm running into the following error:

Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocate 4864 bytes) in /Users/casey/Documents/workspaces/yofreesamples.com/wp-includes/functions.php on line 1174

I've attempted to increase the memory limit by modifying line 28 in wp-config.php:

define('WP_MEMORY_LIMIT', '2024MB');

and by including the following value in index.php

ini_set('memory_limit','64M');

without any luck for any memory values I've tried. I'm relatively new to wordpress, anyone have any idea what's going on?

  • 写回答

1条回答 默认 最新

  • dongshi4773 2011-09-15 15:03
    关注

    Perhaps the MAMP configuration doesn't allow you to override the memory limit programmatically. Set it in php.ini as described here.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 蓝牙耳机怎么查看日志
  • ¥15 R语言 拟时序分析降维图如何减少分支
  • ¥15 Fluent齿轮搅油
  • ¥15 八爪鱼爬数据为什么自己停了
  • ¥15 交替优化波束形成和ris反射角使保密速率最大化
  • ¥15 树莓派与pix飞控通信
  • ¥15 自动转发微信群信息到另外一个微信群
  • ¥15 outlook无法配置成功
  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统