News:

Looking for documentation? Take a look on our wiki

Main Menu

Errors after upgrading to VM 4.2.0.10905

Started by ViPeS, August 12, 2023, 10:48:40 AM

Previous topic - Next topic

ViPeS

Product page has errors after upgrading to VM 4.2.0.10905

Deprecated: Required parameter $htmlIn follows optional parameter $selected in /home/viinis/domains/virtuvinis.lt/public_html/plugins/vmshipment/rules_shipping_advanced/rules_shipping_base.php on line 491

Deprecated: Required parameter $shipCounter follows optional parameter $cart_prices in /home/viinis/domains/virtuvinis.lt/public_html/plugins/vmshipment/rules_shipping_advanced/rules_shipping_base.php on line 515

PS:
Errors were given by a third-party plugin VM Shipment - Advanced Shipping by Rules for VirtueMart, which was not used, but was published.
Removing the plugin solved the problem.
VM 4.2.18 11050, Joomla 4.4.8, PHP 8.1.13

Milbo

Thank you, the plugin is now part of the core, fixed.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/


GJC Web Design

agree - almost always asked by clients why the order/invoice numbers are random and asked for sequential...
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

Milbo

Please use https://extensions.virtuemart.net/shopper-order/orders/automated-numbers-detail

As far as I know it works almost with the same princip as the old ordernumber, but you can also modify a lot others
Username
Name
Password
Shoppernumber
Invoicenumber
Ordernumber
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Milbo

Quote from: GJC Web Design on August 15, 2023, 14:11:39 PM
agree - almost always asked by clients why the order/invoice numbers are random and asked for sequential...
They are not random. They have for security reasons 2 random chars, as far as I know. and both have a sequential number on default core
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

MAD King

Quote from: Milbo on August 13, 2023, 19:57:03 PM
Thank you, the plugin is now part of the core, fixed.

What do you mean by that? "the plugin is now part of the core"

I have the same issues. While I could fix line 491, I cannot figure out line 515.
Joomla! 4.4.5
VirtueMart 4.2.12 11012

Milbo

#7
Both problems are fixed in the core version.

it is now part of the core. A member payed for it. I think a silvermembership. Or gold, it was not that expensive to update the plugin to work with j4, Php8.2 and vm4.0.22.

I wonder about the messages, because both is fixed, by


public function plgVmDisplayListFEShipment (VirtueMartCart $cart, $selected, &$htmlIn) {


and

function plgVmOnCheckAutomaticSelectedShipment (VirtueMartCart $cart, array $cart_prices, &$shipCounter) {


Quote from: ViPeS on August 12, 2023, 10:48:40 AM
PS:
Errors were given by a third-party plugin VM Shipment - Advanced Shipping by Rules for VirtueMart, which was not used, but was published.
Removing the plugin solved the problem.
]

Hmm, should be installed unpublished, like the payments. Going to check this.[/code]
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

MAD King

I am still getting this error:

Deprecated: Required parameter $shipCounter follows optional parameter $cart_prices in plugins\vmshipment\rules_shipping_advanced\rules_shipping_base.php on line 515
Joomla! 4.4.5
VirtueMart 4.2.12 11012

Milbo


array $cart_prices

That just says it must be an array. Maybe you must remove the array for your php versoin (which one btw).
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

MAD King

Joomla! 4.4.5
VirtueMart 4.2.12 11012

Milbo

Hmm, Does it work for you, if you remove the "array" from the seconed parameter?
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

MAD King

Quote from: Milbo on August 21, 2023, 20:50:32 PM
Hmm, Does it work for you, if you remove the "array" from the seconed parameter?

I am not a programmer.
How do I remove that and with what do I have to replace it?
Joomla! 4.4.5
VirtueMart 4.2.12 11012

Milbo

Quote from: Milbo on August 21, 2023, 20:28:34 PM


function plgVmOnCheckAutomaticSelectedShipment (VirtueMartCart $cart, array $cart_prices, &$shipCounter) {


So just


function plgVmOnCheckAutomaticSelectedShipment (VirtueMartCart $cart, $cart_prices, &$shipCounter) {
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

MAD King

The code I have currently in under line 515 is this

function plgVmOnCheckAutomaticSelectedShipment (VirtueMartCart $cart, array $cart_prices = array(), &$shipCounter) {

There are two arrays in it.
Joomla! 4.4.5
VirtueMart 4.2.12 11012