【问题标题】:"There was an error processing your order. Please contact us or try again later." error on magento“处理您的订单时出错。请联系我们或稍后再试。” magento上的错误
【发布时间】:2012-05-01 04:48:55
【问题描述】:

我正在使用 magento 开发一个网站,出于某种原因,当我尝试结帐时收到此错误和电子邮件。

错误:

“处理您的订单时出错。请联系我们或稍后再试。”

电子邮件

Payment transaction failed.

Reason
Image is not a PNG

Checkout Type
onepage

Customer:
xxx

Items
Gift Certificate x 2 AUD 10
test product x 2 AUD 25
Gift Certificate x 1 AUD 10
test product x 2 AUD 25
test product x 1 AUD 25

Total:
AUD 155

Billing Address:
abhinab kayastha
ghj
gjhghj
g
jhgjhg, 7897
Togo
T: 234

Shipping Address:
abhinab kayastha
ghj
gjhghj
g
jhgjhg, 7897
Togo
T: 234

Shipping Method:
Free Shipping

Payment Method:
Check / Money order

Date & Time:
May 1, 2012 2:47:40 PM 

谢谢 抗体

【问题讨论】:

    标签: magento magento-1.6


    【解决方案1】:

    这听起来像是在创建 PDF 文件(可能是订单 PDF)时出现问题。

    抛出错误是因为在 PDF 创建的某个时刻 Magento 试图包含一个 .png 文件,而 没有 在其前三个字节中具有通常的 PNG 签名(如“真正的”.png 文件应该)。

    lib/Zend/Pdf/Resource/Image/Png.php

    检查您的var/log/exception.log 或设置

    Mage::setIsDeveloperMode(true);
    ini_set('display_errors', 1);
    

    在您的index.php 中获取异常跟踪,这应该可以帮助您确定导致错误的文件。

    【讨论】:

    • 您好,感谢您的回复我的日志文件夹没有 exception.log 文件。我发现错误是从 lib/Zend/Pdf/Resource/Image/Png.php 抛出的。但无法从哪个文件中弄清楚。还有 Mage::setIsDeveloperMode(true); ini_set('display_errors', 1);不显示有关图像的任何错误。任何更多的帮助将不胜感激。谢谢
    【解决方案2】:

    在下上传了有效的 png 文件 配置 -> 销售 -> 发票和装箱单设计

    工作正常!!!

    【讨论】:

      【解决方案3】:

      由于 memory_limit 低而发生此错误,在您的根目录中增加 memory_limit 或存储 .htaccess 文件在您的 .htaccess 文件中添加以下行。

      ## adjust memory limit
      php_value memory_limit 256M
      

      【讨论】:

        猜你喜欢
        • 2013-06-19
        • 1970-01-01
        • 2019-07-06
        • 2016-09-30
        • 2014-04-29
        • 2017-06-17
        • 2014-08-21
        • 1970-01-01
        相关资源
        最近更新 更多