VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: thesilentman on December 01, 2011, 15:02:46 PM

Title: Fresh installation RC3_Pre: Class 'vmPaymentPlugin' not found in product detail
Post by: thesilentman on December 01, 2011, 15:02:46 PM
Hi,

I did a fresh test-installation on J1.7.3 and on the product-detail page I get a ->

Fatal error: Class 'vmPaymentPlugin' not found in {hidden}\plugins\vmpayment\standard\standard.php on line 25

I tried extending the plugin in question from vmSPPlugin instead but then it threw->

Fatal error: Class plgVmPaymentStandard contains 3 abstract methods and must therefore be declared abstract or implement the remaining methods (vmPSPlugin::plgVmOnShowOrderBE, vmPSPlugin::checkConditions, vmPSPlugin::getCosts) in {hidden}\plugins\vmpayment\standard\standard.php on line 193

A quick fix was to append the following lines inside the classes in
\plugins\vmpayment\standard\standard.php
and
\plugins\vmpayment\paypal\paypal.php


--- lines start ---

function plgVmOnShowOrderBE($psType, $_virtuemart_order_id, $_method_id){

}

protected function checkConditions($cart, $method, $cart_prices){

}

function getCosts(VirtueMartCart $cart, $method, $cart_prices){

}

--- lines end ---

This is just a quick fix and is still untested. I don't know if those functions must return something to the caller, so it might not be correct. For now I fixed this only to see if I could get some custom fields functionality running, that did not work with the previous versions.

Greets,
Frank
Title: Re: Fresh installation RC3_Pre: Class 'vmPaymentPlugin' not found in product detail
Post by: Milbo on December 01, 2011, 15:35:42 PM
Did you also updated the plugins?

Class 'vmPaymentPlugin'  does not exist anylonger in the code
Title: Re: Fresh installation RC3_Pre: Class 'vmPaymentPlugin' not found in product detail
Post by: thesilentman on December 01, 2011, 17:13:49 PM
Hello,

Actually it was a fresh install but with a small mistake.
I Installed VM and the Plugin AIO and then it showed me the update icon. I clicked it, but actually it was downgrading, because it has old info. see image:
(http://s8.postimage.org/q4o0pri9d/127_0_0_1_screen_capture_2011_12_1_17_58_51.jpg) (http://postimage.org/image/q4o0pri9d/)

So after that I uninstalled everything, and reinstalled. Same problem persisted.

After your post I went and found the actual plugin-files not being updated to the latest version. The upgrade did not work, and I bet it's because the version information of the plugins is still 1.9.8 ;) see image:
(http://s7.postimage.org/5qskdvrsn/127_0_0_1_screen_capture_2011_12_1_18_8_45.jpg) (http://postimage.org/image/5qskdvrsn/)

So I removed all the plugins and AIO, deleted the files manually and reinstalled. Everything seems ok now. Now I need to test the custom fields thingy :)

Greets,
Frank

Title: Re: Fresh installation RC3_Pre: Class 'vmPaymentPlugin' not found in product detail
Post by: thesilentman on December 01, 2011, 17:27:19 PM
Hello again,

this is a bit off topic, but in the latest 1.9.8 I could add attributes and Values to the stockable variants plugin in a custom field. With the RC3 I click save and it doesn't save my entries. Any idea why this is happening? Did something break on the way to RC3?

Thanks,
Frank
Title: Re: Fresh installation RC3_Pre: Class 'vmPaymentPlugin' not found in product detail
Post by: Milbo on December 01, 2011, 17:51:01 PM
Yes, you did a downgrade, I added this as note to the post.
Hmm, we just forgot to update the version info of the plugins, it should update it with the new aio anyway.

The plugin variants are a bit tricky. We just rewrote this plugin type, because it is not using the correct programm pattern. We want enhance that silently behind the scene, after the final.
Title: Re: Fresh installation RC3_Pre: Class 'vmPaymentPlugin' not found in product detail
Post by: Studio 42 on December 01, 2011, 18:03:19 PM

HI,
we rebuild all the custom plug-in to use similar method as plug-in from joomla

I don't tested the Stockable, but I am quiet sure this is not working in RC3

It was is to finish for next release
(actually the textinput plug-in is converted in the SVN)

Title: Re: Fresh installation RC3_Pre: Class 'vmPaymentPlugin' not found in product detail
Post by: thesilentman on December 01, 2011, 18:19:21 PM
Ok, thanks for the info.
I'll postpone the upgrade from Vm 1to VM2 for a little while longer until this is ready.
Any timeline for when this will be available? (1 week, 2 weeks, a month, two....)

Title: Re: Fresh installation RC3_Pre: Class 'vmPaymentPlugin' not found in product detail
Post by: PRO on December 01, 2011, 18:23:38 PM
thesilentman, you should definitely be learning 2.0.

You are NOT going to be able to migrate a live site and have the shop exactly the same without some work.

You need to get xampp, or a test domain, and start working. There are many changes, its "different, but better"

Title: Re: Fresh installation RC3_Pre: Class 'vmPaymentPlugin' not found in product detail
Post by: thesilentman on December 02, 2011, 00:09:01 AM
@BanquetTables.pro

no offense but: I stated in my first post that this was a test to see if things work- using the functionality that has been announced for VM2.
That's when I stumbled upon the Version problems and unfinished part of the custom fields' plugin system.

So, I am actually trying to use VM, but as Max and electrocity stated, there have been changes that render the functionality that I need, unusable for the moment.
So i'll have to wait and retest when that functionality becomes available and the product is more stable.

Title: Re: Fresh installation RC3_Pre: Class 'vmPaymentPlugin' not found in product detail
Post by: Milbo on December 02, 2011, 12:52:29 PM
You both are right. When silentman already tested vm2 and needs now the stockable variants, then he should wait. We plan the release of RC3 or the final next week.

On the other hand, we need testers. Maybe it is a good idea, when you work together with electrocity to develop the stockable customs.
Title: Re: Fresh installation RC3_Pre: Class 'vmPaymentPlugin' not found in product detail
Post by: thesilentman on December 02, 2011, 13:00:09 PM
Hi, Milbo,

of course, as soon as you have fixed the issue with the form - not -saving, I am happy to test it. Just let me know when I can pull updated files from the SVN.
Title: Re: Fresh installation RC3_Pre: Class 'vmPaymentPlugin' not found in product detail
Post by: Milbo on December 02, 2011, 13:43:10 PM
The error was that the aio did not overwrite the old files. The b version should do it correctly now.
Title: Re: Fresh installation RC3_Pre: Class 'vmPaymentPlugin' not found in product detail
Post by: manch on December 02, 2011, 14:48:02 PM
Hi!

I have some problem with this aio plugin...after i upgrade to vm2rc3preb from vm198M and i put the new aio file then i realized that the vmplugins are not updated. Then i uninstalled the plugins with aio and reinstalled it. (After i unistalled the plugins I deleted the vm directories in the plugins dir.) But after i reinstall the new aio ,all the v198 plugins come back. How can i put the vmplugins version2.0 into vm?
I went again to aio interface and i try to use the updater but after the process ended the vm updater shows that its a vm1.98 version (altough the extension manager shows that installed virtuemart version is still vm2rc3preb! But not the plugins!(still 1.98) 
Is it a bug or i missed some steps ? 

Thanks any help!

Manch

[attachment cleanup by admin]
Title: Re: Fresh installation RC3_Pre: Class 'vmPaymentPlugin' not found in product detail
Post by: mabeall32 on December 03, 2011, 02:05:47 AM
on the shipping screen I seeing for headings ??????
COM_VIRTUEMART_CARRIER_LIST_NAME_LBL                     COM_VIRTUEMART_CARRIER_LIST_DESCRIPTION_LBL                     Shopper Group                     COM_VIRTUEMART_SHIPPINGCARRIER                     List Order         Published
=7]UPS (http://localhost/matlinmfg/administrator/index.php?option=com_virtuemart&view=shippingcarrier&task=edit&cid[)
=5] (http://localhost/matlinmfg/administrator/index.php?option=com_virtuemart&view=shoppergroup&task=edit&cid[)
=7]VM - Shipper, By weight, ZIP and countries (http://localhost/matlinmfg/administrator/index.php?option=com_virtuemart&view=shippingcarrier&task=edit&cid[)
               0            
(http://localhost/matlinmfg/administrator/templates/bluestork/images/admin/tick.png) (http://localhost/matlinmfg/administrator/index.php?option=com_virtuemart&view=shippingcarrier#)
Display #510152050100all
Title: Re: Fresh installation RC3_Pre: Class 'vmPaymentPlugin' not found in product detail
Post by: PRO on December 03, 2011, 14:15:35 PM
mabeall32, this is noted and will be fixed. It just the language files were not included.
Title: Re: Fresh installation RC3_Pre: Class 'vmPaymentPlugin' not found in product detail
Post by: Milbo on December 04, 2011, 15:07:46 PM
Just ignore the 1.9.8. I changed it now to 2.0.0. but it is just a false display.