
Magento网站升级1.7后,paypal支付出现报错信息如下:
“Fatal error: Call to a member function setFieldNamePrefix() on a non-object in /home/********/public_html/
google了一下,发现官方论坛有此报错的解决办法,网址:http://www.magentocommerce.com/boards/viewth./viewthread/282519/#t393628
这是由于模板文件不兼容引起的,最快捷的办法就是删除当前模板中的paypal.xml文件。删除后,magento会使用base/default/layout中的paypal.xml 。注意此删除是否会影响你的网站,删除前备份此文件。
转载表明出处:www.hellokeykey.com
Solution for this problem
In your packeage/theme/layout/paypal.xml
need little change
View
Then after add some other blocks
thank you :)