Author Topic: [solved]A cart/PayPal fatal error  (Read 4812 times)

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3470
  • using Matomo instead of Google Analytics
[solved]A cart/PayPal fatal error
« on: October 04, 2011, 16:12:16 pm »
J1.7.1/VM2 SVN revision 4247

When I click on a cart link the result currently is:

Fatal error: Class plgVMPaymentPaypal contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (vmPaymentPlugin::plgVmOnConfirmedOrderGetPaymentForm) in ...\plugins\vmpayment\paypal\paypal.php on line 509

Unpublishing PayPal as a payment method or unchecking 'Enable Automatic Selected Payment' doesn't help.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

alatak

  • Contributing Developer
  • Full Member
  • *
  • Posts: 2047
    • alatak.net
Re: A cart/PayPal fatal error
« Reply #1 on: October 04, 2011, 19:24:17 pm »
Hi,

Well, i don't understand how can you have the error.
The function plgVmOnConfirmedOrderGetPaymentForm should be around line 134.

Quote
Unpublishing PayPal as a payment method or unchecking 'Enable Automatic Selected Payment' doesn't help.
In that case, it is in Joomla that you have to unpublish.

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3470
  • using Matomo instead of Google Analytics
Re: A cart/PayPal fatal error
« Reply #2 on: October 04, 2011, 21:31:53 pm »
Hi,

I just found the problem  :). In the folder ...\plugins\vmpayment I had two more folders named 'paypal' and 'standard' holding older copies of the current versions. The paypal.php that caused that error is dated 5th September 2011. I never had a look at these files, so maybe its an SVN hiccup (older versions not deleted). Did you move the files to their current location within the past four weeks?

Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

alatak

  • Contributing Developer
  • Full Member
  • *
  • Posts: 2047
    • alatak.net
Re: A cart/PayPal fatal error
« Reply #3 on: October 04, 2011, 21:44:26 pm »
Hi

:)

Quote
I never had a look at these files, so maybe its an SVN hiccup (older versions not deleted).
probably ...

Quote
Did you move the files to their current location within the past four weeks?
No afaik.

 

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3470
  • using Matomo instead of Google Analytics
Re: A cart/PayPal fatal error
« Reply #4 on: October 05, 2011, 11:22:53 am »
Hello again,

this morning I noticed that when editing payment methods and shipping methods, the 'Configuration' tab shows a blank view after I removed the older duplicate files
...\plugins\vmpayment\paypal (paypal.php, paypal.xml)
...\plugins\vmpayment\standard (standard.php, standard.xml)
...\plugins\vmshipper\weight_countries (weight_countries.php, weight_countries.xml)

Could you please check if you can edit payment and shipping methods under the configuration tab?
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

alatak

  • Contributing Developer
  • Full Member
  • *
  • Posts: 2047
    • alatak.net
Re: A cart/PayPal fatal error
« Reply #5 on: October 05, 2011, 11:35:05 am »
Hi,

You  selected the shipping / or payment.
Press APPLY
and it shows a blank screen?

If you forgot to press APPLY, it is normal in a way. It should write a warning.
I have to reinstall a Joomla 1.7 test environment.

I'll check that.

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3470
  • using Matomo instead of Google Analytics
Re: A cart/PayPal fatal error
« Reply #6 on: October 05, 2011, 12:18:38 pm »
No, I mean if I delete the older files in their subdirectories (which are not in the trunk anymore - see third screenshot below), the content from the 'Payment Method' - 'Configuration' tab doesn't show. In other words, I see empty views instead of what is shown in the first two screenshots below.

[attachment cleanup by admin]
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9853
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: A cart/PayPal fatal error
« Reply #7 on: October 05, 2011, 12:59:08 pm »
Hi,

I just found the problem  :). In the folder ...\plugins\vmpayment I had two more folders named 'paypal' and 'standard' holding older copies of the current versions. The paypal.php that caused that error is dated 5th September 2011. I never had a look at these files, so maybe its an SVN hiccup (older versions not deleted). Did you move the files to their current location within the past four weeks?
No, the error is more complex,

j1.5 expects the plugins in the folder of the "plugin family" like vmpayment.
But j1.7 the plugins are stored in the family folder and in its own folder. for exampel vmpayment/paypal.

So you just deleted your active files. For updating your j1.7, you must wait for the AIO, or copy the files manually from the directories above into the subfolders.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3470
  • using Matomo instead of Google Analytics
Re: A cart/PayPal fatal error
« Reply #8 on: October 05, 2011, 13:10:50 pm »
ok - thanks for the explanation :-)
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

Mattlab

  • Beginner
  • *
  • Posts: 3
Re: [solved]A cart/PayPal fatal error
« Reply #9 on: October 14, 2011, 05:35:34 am »
So I am confused. I have J1.7.1 and the version H of VM and am getting this error. How do I fix this? Is this a known bug? I can't purchase anything in my store as a result of this.

Thanks...

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3470
  • using Matomo instead of Google Analytics
Re: [solved]A cart/PayPal fatal error
« Reply #10 on: October 14, 2011, 08:55:38 am »
What exactly is the error message you get?
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

alatak

  • Contributing Developer
  • Full Member
  • *
  • Posts: 2047
    • alatak.net
Re: [solved]A cart/PayPal fatal error
« Reply #11 on: October 14, 2011, 09:06:04 am »
Hi,

Did you install the new version all in one component?