2

this is my first actual post on StackOverflow. I'm on here quite often because you guys always solve my queries!

We have a problem in a checkout cart on a Magento site.

We have Magento version 1.4.1.1 and are using the one page checkout and Paypal Standard Checkout.

The problem appears when a customer adds lots of different products to their cart (say 7 or more). When they click on the 'Place Order' button, they should be taken to paypal to complete the order. But instead they are redirected to the cart (the default failure URL)

The checkout works fine when you buy a few items or many of the same item. It doesn't work when you buy multiple different items.

Any help/advice/solution/anything! would be much appreciated!

Thanks, Heather

4

2 回答 2

4

我遇到了这个问题...我们运行 PHP 版本 5.2.10,Magento 版本。1.3.2.4 并使用Paypal Website Standard PRO...

我们一直在优化服务器安装 APC 并调整 MySQL...卸载/重新安装 APC 以换出使用自旋锁的 APC 版本...

在完成这些工作并运行端到端测试后,Paypal 集成无法正常工作......或者更多的是点击“下订单”,我们被重定向到购物车页面......

我查看了按“下订单”后发送的标头,发现服务器发出了 500 错误,并且由于 Magento 是生产配置,因此未显示此错误,并且浏览器被重定向到引荐来源网址,在这种情况下为购物篮页面。 ..

我们的 PHP 错误记录到我们的 Apache error_log 中,在查看时我发现了以下条目:

PHP 致命错误:在第 101 行的 /home/user/htdocs/lib/Zend/Feed/Abstract.php 中找不到类“DOMDocument”

我进一步查看了这个并发现了 DOMDocument 并找到了一个帖子,指出“PHP-XML 模块”是必需的......

由于我们一直在安装/安装软件,我们运行“yum install php-xml”...

这解决了问题!!!这很奇怪,因为这确实有效,所以暗示这不是问题......

于 2011-02-23T04:28:16.093 回答
1

还有更多选项/领域可供查看...

我体验过繁忙的 Magento 安装,有很多产品和订单,需要很长时间才能在单击“下订单”时重定向到 Paypal。这可能是您的实际问题,升级是前进的方向,尝试升级到 1.4.2.0(最终的 1.4 稳定版本)......但通常在这种情况下,该过程将在延长等待后完成(60 秒以上!!!) ...

当您有很多商品时,您的结帐会重定向到购物车页面这一事实很可能是一个超时问题。当转移到支付网关页面发生错误时,Magento 会从结帐提交重定向回购物车,因此页面超时或 PHP 内存不足将导致您被重定向回购物车...

你应该检查: -

Apache:“超时”通常设置在 120(秒)左右考虑增加 PHP:“max_execution_time”18000(秒) - Magento 友好图

还可以尝试在 .htaccess 文件中增加 PHP 设置“memory_limit”...设置 64、128、256 确实增加超过 256 应该不是必需的。

同时开始记录 yopur PHP 错误:log_errors On

希望这可以帮助

Ps 我的原始解决方案显然不正确,因为您的失败仅在您的购物车中有多个产品时才会发生......

于 2011-04-02T02:30:43.027 回答