1

Error : PHP Fatal error: Call to a member function getMethodInstance() on boolean in /home/error/public_html/app/code/core/Mage/Payment/Helper/Data.php on line 119

I am using Paytm & Payubiz payment gateway for my Magento 1.9 website, from the day before to still now most of the customer said amount debited but success page is empty

One of the customers share the error screenshot:

enter image description here

Note : I spoke to Payment Gateway developer regarding this issue they told, our end everything ok, pls check your code. Log error also not related to this error

How to solve success page return error?

4
  • Check the Log file is there anything? check on extension where you call getMethodInstace() in that? Commented Aug 19, 2020 at 6:53
  • @DhirenVasoya I searched keyword getMethodInstace() with my paytm module doesn't match.
    – Gem
    Commented Aug 19, 2020 at 12:02
  • Used Paytm module we.tl/t-ForNRl1QSP
    – Gem
    Commented Aug 19, 2020 at 12:06
  • As you know i am using paytm & Payubiz, payubiz return Fatal error: Call to a member function getMethodInstance() on boolean in /home/test/public_html/app/code/core/Mage/Payment/Model/Observer.php on line 46
    – Gem
    Commented Aug 19, 2020 at 13:04

1 Answer 1

0

Your helper is not working correctly and success page try to call helper method.

It have 2 solution as below:

  1. try to find issue why helper is not working by log files or debug code.

  2. You can copy file "Data.php" from "app/code/core/Mage/Payment/Helper/" and upload in local folder on path "app/code/local/Mage/Payment/Helper/"

11
  • Data.php what i need to paste
    – Gem
    Commented Aug 19, 2020 at 6:40
  • You need to copy it from the file path mentioned in your error. Commented Aug 19, 2020 at 6:42
  • @Gem, did you check it? Commented Aug 19, 2020 at 7:27
  • Sorry to late reply, now i am getting error like Fatal error: Call to a member function getMethodInstance() on boolean in /home/test/public_html/app/code/local/Mage/Payment/Helper/Data.php on line 119
    – Gem
    Commented Aug 19, 2020 at 10:36
  • @Gem You can copy file "Data.php" from "app/code/core/Mage/Payment/Helper/" and upload in local folder on path "app/code/local/Mage/Payment/Helper/" Commented Aug 19, 2020 at 11:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.