Author Topic: [SOLVED] getting PHP Warning:Declaration of plgVmShipmentRules_Shipping_Base...  (Read 1062 times)

safire

  • Beginner
  • *
  • Posts: 32
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?

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3866
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: getting PHP Warning:Declaration of plgVmShipmentRules_Shipping_Base...
« Reply #1 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
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

safire

  • Beginner
  • *
  • Posts: 32
Re: getting PHP Warning:Declaration of plgVmShipmentRules_Shipping_Base...
« Reply #2 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.

safire

  • Beginner
  • *
  • Posts: 32

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3866
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Did it resolve the issue ?

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

safire

  • Beginner
  • *
  • Posts: 32
Yes, no more errors showing up.