Login
Register

VirtueMart

WooCommerce

Others

Docs

Support

Blog

About

Shipping by Rules for VirtueMart

IMPORTANT ANNOUNCEMENT: Plugin development ceased, all plugins made available freely (GPL)

With great sadness we have to announce that we are ceasing development of all our VirtueMart, WooCommerce and Joomla plugins. Effective immediately, all our plugins -- even those that were paid downloads -- are made available for free from our homepage (GPL license still applies), but we cannot and will not provide any support anymore.

It has been a great pleasure to be part of the thriving development communities of VirtueMart as well as WooCommerce. However, during the last year it became painstakingly clear that in addition to a full-time job, a young family and several other time-consuming hobbies at professional level (like being a professional singer) the plugin development and the support that it requires is not sustainable and is taking its toll. It has been an honor, but it is now time to say good bye!

×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

php error ? 18 Jun 2014 07:41 #1

  • logobis
  • logobis's Avatar Topic Author
Hi,

I'm on JOOMLA 2.5.17 VIRTUEMART 2.0.20b PHP 5.4.4-14+deb7u11

I've frequently this error in php log :
PHP Notice: Trying to get property of non-object in /var/www/***.com/plugins/vmshipment/rules_shipping/rules_shipping_base.php on line 564, referer: http://www.***.com/mes-coordonnees/editaddresscheckoutBT
and the same for lines 565 and 566.
In rules_shipping_base these lines are (function getOrderCountryState) :
if (!empty($country)) {
			564.	$data['country'] = $country->country_name;
			565.	$data['country2'] = $country->country_2_code;
			566.	$data['country3'] = $country->country_3_code;
			}

Have you any idea ?
Thank's for your answer.

php error ? 14 Jul 2014 23:05 #2

Hi logobis,
That's interesting. A long while ago I had some similar reports (but were unable to reproduce myself) when I was using the check "if (!isset($country)){". Since I have changed it to use the "empty" function, I didn't get any reports until I got yours...

Are you getting this on a test system of yours or only on a production system? If you can reproduce this on a test system, then we could insert some debugging code at line 564 to see the actual value of $country...
If this happens only on a production system, it's really not so easy to track down the problem, because we don't want to interrupt the user experience for your customers by strange debug messages...

Best regards,
Reinhold

php error ? 18 Jul 2014 08:19 #3

  • logobis
  • logobis's Avatar Topic Author
Hi Reinhold and thank's for your answer,

Unfortunately this is on a production system...on the local one I'm unable to reproduce the error, like you...
This is very embarrasing because when occured, it's impossible to finalize the order, no shipping rule can be selected !
I have to delete the cart, make a new one, and that's ok.(for customer who call us about the problem...).
I'm thinking about a problem with Joomla session...as you know, Joomla have an automatic logout system for unactive session. Do you think there could be a link with that ?

php error ? 11 Sep 2014 02:05 #4

I was finally able to track down the cause of the problem: It was a nastly little bug in the VirtueMart code, where the internal cache to optimize database access was not properly handled.

I submitted the proper fix to the VirtueMart core developers for future VM releases, and also released a new version 4.2 of my shipping plugins that contain a workaround for existing VM versions.

So, please upgrade your plugin to version 4.2 and things should work.

Best regards,
Reinhold

php error ? 11 Sep 2014 09:36 #5

  • logobis
  • logobis's Avatar Topic Author
Thank's a lot.
I'm going to try the upgrade and give you my results.

Regards.
Laurent.
  • Page:
  • 1