News:

Looking for documentation? Take a look on our wiki

Main Menu

Paypal Error undefined method PaypalHelperPayPalStd

Started by References, March 06, 2015, 19:37:26 PM

Previous topic - Next topic

References

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

 Using paypal sandbox I am getting this error every time I place an order.

References

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

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

References

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

Quote from: Milbo on March 07, 2015, 09:40:40 AM
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

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/'
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

References

#7
Quote from: Milbo 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 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

I'm also getting this error message after updating the paypal plugin to 2.6.16.2:

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

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.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

antonino78

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


References

Quote from: alatak on March 09, 2015, 18:36:25 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.