News:

Support the VirtueMart project and become a member

Main Menu

[solved]A cart/PayPal fatal error

Started by jjk, October 04, 2011, 16:12:16 PM

Previous topic - Next topic

jjk

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

Hi,

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

QuoteUnpublishing 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

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

Hi

:)

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

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


jjk

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

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

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

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

jjk

ok - thanks for the explanation :-)
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

Mattlab

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

What exactly is the error message you get?
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

alatak

Hi,

Did you install the new version all in one component?