Author Topic: Paypal Error undefined method PaypalHelperPayPalStd  (Read 2314 times)

References

  • Beginner
  • *
  • Posts: 17
Paypal Error undefined method PaypalHelperPayPalStd
« on: March 06, 2015, 19:37:26 pm »
I just updated to vm 2.6.16.  Sortly After updating VM I got a notification from our OPC plugin that was an error that caused a white screen

Error message data:
1 Call to undefined method PaypalHelperPayPalStd::validateIp() in file: /home/referen6/public_html/plugins/vmpayment/paypal/paypal/helpers/paypal.php line: 674

I notices there was an update available for paypal so I updated that plugin but since updating paypal I have gotten this error again





References

  • Beginner
  • *
  • Posts: 17
Re: Paypal Error undefined method PaypalHelperPayPalStd
« Reply #1 on: March 06, 2015, 20:30:29 pm »
 Using paypal sandbox I am getting this error every time I place an order.

References

  • Beginner
  • *
  • Posts: 17
Re: Paypal Error undefined method PaypalHelperPayPalStd
« Reply #2 on: March 06, 2015, 23:41:08 pm »
Now that I dig deeper into this.... this is a serious bug.  The order gets approved by paypal but the order is not changed to as "confirmed"  it is set to pending. 

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10070
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Paypal Error undefined method PaypalHelperPayPalStd
« Reply #3 on: March 07, 2015, 09:40:40 am »
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

References

  • Beginner
  • *
  • Posts: 17
Re: Paypal Error undefined method PaypalHelperPayPalStd
« Reply #4 on: March 07, 2015, 15:16:37 pm »
I will try your fix  but I also solved the problem just moments ago. :)


So I am posting this for  anyone who experiences this issue and is using cloudflare.  For some reason the newest 2.6.16 update caused and issue with clouldflare where it wasn't passing the right IP address.  Cloudflare offers a plugin to fix this issue:

http://extensions.joomla.org/extensions/extension/core-enhancements/performance/cloudflare

As soon as I installed the cloudflare plugin the problem was resolved. 

But I will look at your solution as well because I feel the fewer extension I have to maintain and update the happier I am.  Thank you for your assistance.   

References

  • Beginner
  • *
  • Posts: 17
Re: Paypal Error undefined method PaypalHelperPayPalStd
« Reply #5 on: March 07, 2015, 17:00:50 pm »
Please install the updated paypal http://dev.virtuemart.net/attachments/download/926/paypal.2.6.16.2.zip

I did try the update you suggested but when trying to access the plugin in virtumart I got a blank white page and the following error:


RuposTel OPC plugin detected a problem with your site.
Your site caused a blank screen upon a visit of this URL:
https://e-dmv.org:443/development/administrator/index.php?option=com_virtuemart&view=paymentmethod&task=edit&cid[]=5
Error message data:
64 require() [<a href='function.require'>function.require</a>]: Failed opening required '/home/referen6/public_html/development/plugins/vmpayment/paypal/paypal/helpers/paypal.php' (include_path='.:/usr/local/lib/php') in file: /home/referen6/public_html/development/plugins/vmpayment/paypal/paypal.php line: 28 timestamp: 2015-03-07T14:21:57+00:00


Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10070
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Paypal Error undefined method PaypalHelperPayPalStd
« Reply #6 on: March 08, 2015, 10:22:40 am »
Seems to be an install error. The file is there. Please look if you have the paypal.php in '/home/referen6/public_html/development/plugins/vmpayment/paypal/paypal/helpers/'
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

References

  • Beginner
  • *
  • Posts: 17
Re: Paypal Error undefined method PaypalHelperPayPalStd
« Reply #7 on: March 08, 2015, 17:31:38 pm »
Seems to be an install error. The file is there. Please look if you have the paypal.php in '/home/referen6/public_html/development/plugins/vmpayment/paypal/paypal/helpers/'

I checked and you are right, it did not install correctly.  Only the language folder was updated the whole paypal/paypal folder what missing. I tried re-installing and it did not add the correct files. So I uploaded it manually over ftp, however now the IPN is not working again.  And I have tried with both the cloudflare plugin that fixed the issue yesterday, enabled and disabled.  Still the ipn is not updating the order.   However the white screen fatal error is now resolved. 

I also turned cloudflare off to see if it was a clouldflare issue and the IPN didn't work.  So this isn't a cloudflare conflict.

Restoring my paypal folder to the older version before 2.6.26.2 with the cloudflare plugin enabled is the only way to get it to work again. 

reinhold

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 204
Re: Paypal Error undefined method PaypalHelperPayPalStd
« Reply #8 on: March 08, 2015, 18:45:28 pm »
I'm also getting this error message after updating the paypal plugin to 2.6.16.2:
Code: [Select]
Error message data:
1 Call to undefined method PaypalHelperPayPalStd::validateIp() in file: /var/www/clients/client4/web20/web/plugins/vmpayment/paypal/paypal/helpers/paypal.php line: 674 timestamp: 2015-03-08T17:38:39+00:00

Looking at the code, it seems that the function validateIp really does not exist and line 674 of paypal.php should rather call the existing function validate_ip instead!

Best regards,
Reinhold

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10070
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Paypal Error undefined method PaypalHelperPayPalStd
« Reply #9 on: March 09, 2015, 10:12:04 am »
I just downloaded the plugin from the server and checked the zip file. The file at /plugins/vmpayment/paypal/paypal/helpers/paypal.php has the function validateIp at line 681.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

antonino78

  • Jr. Member
  • **
  • Posts: 130
Re: Paypal Error undefined method PaypalHelperPayPalStd
« Reply #10 on: March 09, 2015, 17:52:10 pm »
Hello,
order status does not change after payment with paypal.
The state order remains pending.  :-\

the version of the plugin is 2.6.16.2

alatak

  • Contributing Developer
  • Full Member
  • *
  • Posts: 2047
    • alatak.net

References

  • Beginner
  • *
  • Posts: 17
Re: Paypal Error undefined method PaypalHelperPayPalStd
« Reply #12 on: March 10, 2015, 15:52:19 pm »
hello
Please test http://dev.virtuemart.net/attachments/download/927/com_virtuemart.2.6.17_extract_first.zip

Hi, I tested the update you suggested and it did solve my IPN issues and any other errors.  You said "test" so I just want to make sure it is safe to install on my production site.