VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: safire on September 11, 2020, 21:40:32 PM

Title: [SOLVED] getting PHP Warning:Declaration of plgVmShipmentRules_Shipping_Base...
Post by: safire on September 11, 2020, 21:40:32 PM
JM 3.9.21, VM 3.8.4, PHP 7.2 (7.3 breaks some elements on site).

This came to my attention today. My error_log is filled up with entries like this:

PHP Warning:  Declaration of plgVmShipmentRules_Shipping_Base::setCartPrices(VirtueMartCart $cart, &$cart_prices, $method) should be compatible with vmPSPlugin::setCartPrices(VirtueMartCart $cart, &$cart_prices, $method, $progressive = true) in /home/golfspast/public_html/htdocs/plugins/vmshipment/rules_shipping/rules_shipping_base.php on line 756

Not sure how to address this. Can anyone provide insights?
Title: Re: getting PHP Warning:Declaration of plgVmShipmentRules_Shipping_Base...
Post by: Jörgen on September 11, 2020, 21:52:50 PM
Is this an custom shipment extension:

plgVmShipmentRules, then I guess it is not PHP 7.x ready.

Jörgen @ Kreativ Fotografi
Title: Re: getting PHP Warning:Declaration of plgVmShipmentRules_Shipping_Base...
Post by: safire on September 11, 2020, 22:46:42 PM
I'm using this plugin: Shipping by Rules for VirtueMart. Attached is a screen shot.

http://open-tools.net/documentation/shipping-by-rules-plugins-for-virtuemart.html

This is the culprit? It's quite old. I'll look for a replacement plugin.
Title: Re: getting PHP Warning:Declaration of plgVmShipmentRules_Shipping_Base...
Post by: safire on September 11, 2020, 23:12:24 PM
I found new version. That's for your input:

https://extensions.virtuemart.net/checkout/shipments/advanced-shipping-by-rules-detail
Title: Re: [SOLVED] getting PHP Warning:Declaration of plgVmShipmentRules_Shipping_Base...
Post by: Jörgen on September 12, 2020, 09:18:06 AM
Did it resolve the issue ?

Jörgen @ Kreativ Fotografi
Title: Re: [SOLVED] getting PHP Warning:Declaration of plgVmShipmentRules_Shipping_Base...
Post by: safire on September 12, 2020, 18:39:53 PM
Yes, no more errors showing up.