dream_high1026 2013-01-11 19:10
浏览 74
已采纳

在wordpress中上传图像的内存不足错误

I'm having some problems uploading images in WordPress.

The images them selves are around 1-2mb and width/height is quite big 1000px+ X 1000px+ but the client wants to be able to upload them and let WordPress do the re-sizing.

However when trying to upload I'm getting the following error:

"Fatal error: Out of memory (allocated 28573696) (tried to allocate 4096 bytes)"

Now I understand that this means the server doesn't have enough memory to process the image but when I do a phpinfo() check on the server it tells me that I have 256M of memory.

So why would I be getting a fatal error message saying I'm only allocated 32M?

The website itself is hosted by someone else so I don't have access to a php.ini or any of the error logs.

Thanks In advance,

Mark,

  • 写回答

3条回答 默认 最新

  • dpwu16132 2013-01-23 23:51
    关注

    Turned out to be an issue with the company hosting the site limiting the memory allocated. Moved to a new host and the problem was sorted.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 虚拟机打包apk出现错误
  • ¥30 最小化遗憾贪心算法上界
  • ¥15 用visual studi code完成html页面
  • ¥15 聚类分析或者python进行数据分析
  • ¥15 逻辑谓词和消解原理的运用
  • ¥15 三菱伺服电机按启动按钮有使能但不动作
  • ¥15 js,页面2返回页面1时定位进入的设备
  • ¥50 导入文件到网吧的电脑并且在重启之后不会被恢复
  • ¥15 (希望可以解决问题)ma和mb文件无法正常打开,打开后是空白,但是有正常内存占用,但可以在打开Maya应用程序后打开场景ma和mb格式。
  • ¥20 ML307A在使用AT命令连接EMQX平台的MQTT时被拒绝