News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Package 3.8.9 10514 throws an error when sending order

Started by man.of.earth, July 05, 2021, 17:47:00 PM

Previous topic - Next topic

man.of.earth

Hello everyone,

I noticed that the 3.8.9 10514 version of VM throws an error right when confirming/sending the order.

Call to a member function setConvertDecimal() on int

The temporary solution I found is replacing the 4 files modified here http://dev.virtuemart.net/projects/virtuemart/repository/revisions/10514 with their previous versions. It still throws errors, but at least it works.

sirius

J3.10.12 | PHP 7.4.33 + APC + memcached + Opcode
VM Prod : 3.8.6 | VM Test : 4.0.12.10777

LeandroM

I´m facing this issue in my website, did this bug is already solved?

sirius

I suppose that Révision 10521 and Révision 10522 could be related to this issue.
Just waiting for the new package to test it.
J3.10.12 | PHP 7.4.33 + APC + memcached + Opcode
VM Prod : 3.8.6 | VM Test : 4.0.12.10777

GJC Web Design

QuoteI´m facing this issue in my website, did this bug is already solved?

I hope u mean your test site?  odd numbered releases like 3.8.9 are NOT intended for production .. they are pre releases
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

sirius

Does someone already test the last com_virtuemart.3.8.9.10544 to see if this bug is fixed ?
J3.10.12 | PHP 7.4.33 + APC + memcached + Opcode
VM Prod : 3.8.6 | VM Test : 4.0.12.10777

Bob James

Hello. I also have this issue

Fatal error: Call to a member function setConvertDecimal() on integer in administrator/components/com_virtuemart/plugins/vmplugin.php on line 722

if($this->_toConvertDec){
$this->_vmpItable->setConvertDecimal($this->_toConvertDec);
}


I deleted that and got to the payment gateway.

What is the code doing?
Hello, I'm Bob James.

jenkinhill

Is that with the latest community test version release, com_virtuemart.3.8.9.10564
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Bob James

Hello, I'm Bob James.

Bob James

this one com_virtuemart.3.8.9.10514_package_or_extract

do you know what the code is doing please?
Hello, I'm Bob James.

jenkinhill

I have not seen anyone else report this as a problem in VM3.8.9.10514   I don't know what it does.

The code is different in 10564  (this is also J3.9 compatible, + J3.10)

   public function setConvertDecimal(array $toConvert) {

      $this->_toConvertDec = $toConvert;
   }


Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

sirius

Hi jenkinhill

just tested the 10564 package, and the error is gone

(but I have another issue, the card payment (systempay) do not appear anymore on the cart, I only have the bank transfer payment option)

Quote from: sirius on July 16, 2021, 18:48:06 PM
Hi

I confirm this bug on 3.8.9 10514

Quote from: arcturus on July 05, 2021, 17:47:00 PM
Hello everyone,

I noticed that the 3.8.9 10514 version of VM throws an error right when confirming/sending the order.

Call to a member function setConvertDecimal() on int

The temporary solution I found is replacing the 4 files modified here http://dev.virtuemart.net/projects/virtuemart/repository/revisions/10514 with their previous versions. It still throws errors, but at least it works.
J3.10.12 | PHP 7.4.33 + APC + memcached + Opcode
VM Prod : 3.8.6 | VM Test : 4.0.12.10777

Bob James

/*if($this->_toConvertDec){
$this->_vmpItable->setConvertDecimal($this->_toConvertDec);
}*/

if($this->_toConvertDec and is_array($this->_toConvertDec) ){
$table->setConvertDecimal($this->_toConvertDec);
}


Yes, this code change! (vmplugin.php Line 721)

Thank you very much guys.
Hello, I'm Bob James.

jenkinhill

Quote from: sirius on December 31, 2021, 15:02:14 PM

(but I have another issue, the card payment (systempay) do not appear anymore on the cart, I only have the bank transfer payment option)


I thought Systemplay stopped working when we went from VM2 to VM3. It is no longer part of VM so maybe you have a 3rd party plugin?
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

sirius

yes sorry I did not specify, it is the lyra network plugin V 2.2.1 compatible with VM 3.X
Two links to get it
https://paiement.systempay.fr/doc/fr-FR/plugins/#virtuemart
https://www.lyra.com/fr/guides/virtuemart/

And happy new year  :D
J3.10.12 | PHP 7.4.33 + APC + memcached + Opcode
VM Prod : 3.8.6 | VM Test : 4.0.12.10777