Author Topic: vmError: Unrecognised mathop in calculation rule found  (Read 848 times)

raideruk

  • Beginner
  • *
  • Posts: 3
vmError: Unrecognised mathop in calculation rule found
« on: May 08, 2015, 21:19:05 pm »
Hi All,

I have tried searching these forums and I have had no luck, I can normally sort out any problems with doing the same thing but in this case it seems pretty elusive.

Basically I am getting the following error vmError: Unrecognised mathop in calculation rule found, seems you created this rule with plugin not longer accessible (deactivated, uninstalled?)

However, no plugins have been disabled, uninstalled, everything is the same it just seems to have appeared.I am using the following:

VirtueMart 2.6.14
PHP Version 5.5.24
Joomla! 2.5.25

I would say that I will update virtuemart to the latest version but I have a couple of pieces of code in place that will ultimately revert to default and could possibly break some "stuff", As a starting point I disabled all of the calculation rules, refreshed the shopping cart and the error still shows. And re-enabling them, the error still shows.

I enabled debugging and these were the errors shown

Notice: Undefined index: calc_value_mathop in /var/www/vhosts/hcsp.co.uk/httpdocs/hcsp/administrator/components/com_virtuemart/helpers/calculationh.php on line 1433

Notice: Undefined index: calc_currency in /var/www/vhosts/hcsp.co.uk/httpdocs/hcsp/administrator/components/com_virtuemart/helpers/calculationh.php on line 1435

Notice: Undefined index: calc_value_mathop in /var/www/vhosts/hcsp.co.uk/httpdocs/hcsp/administrator/components/com_virtuemart/helpers/calculationh.php on line 1433

Notice: Undefined index: calc_currency in /var/www/vhosts/hcsp.co.uk/httpdocs/hcsp/administrator/components/com_virtuemart/helpers/calculationh.php on line 1435


Any help would be greatly appreciated.

Regards

Wesley

raideruk

  • Beginner
  • *
  • Posts: 3
Re: vmError: Unrecognised mathop in calculation rule found
« Reply #1 on: May 08, 2015, 21:51:10 pm »
Nevermind, the option vat tax per product option in the Type of Arithmetic Operation fixes this issue