php - Getimagesize() - 读取错误

标签 php magento

因此,我正在对其他人的遗留代码进行一些维护,并且修复了一些基本权限问题,但是现在在图像 uploader 中,我收到以下错误:

Warning: getimagesize() [function.getimagesize]: Read error! in /home/kirby/public_html/members/upload_advanced.php on line 211

现在,该目录的权限设置为允许读取、执行和写入 - 什么会导致该问题?难道是上传者没有正确填写信息?

最佳答案

我以前见过这个,对我来说这是一个内存问题,方法失败:

_getNeedMemoryForFile

可能最安全的选择是包装为 try-catch 并尽可能优雅地处理异常。

关于php - Getimagesize() - 读取错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10175758/

相关文章:

php - 从数据库中删除选定的记录 onClick

php - Supervisord 仅生成 1 个实例

PHP/MySQL : Certain characters not being encoded properly and appearing as question marks

php - Magento:未发货的项目集合

xml - 在主题中扩展 Magento 小部件布局

Magento 缺货产品 SEO

Phpseclib 错误执行不同的命令

php - 玛根托 : How to Get product from cart and add it again

php - 如何在没有js的情况下在magento中结帐?

php - 需要通过 mod_rewrite 对 SEO 友好的 URLS 进行指导