VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: 2cool on November 14, 2019, 14:30:35 PM

Title: fix and disable warning
Post by: 2cool on November 14, 2019, 14:30:35 PM
Hi after update I see this warning;

How can this be disabled or fixed? Is this a setting?

Regards,
Pas
Title: Re: fix and disable warning
Post by: AH on November 14, 2019, 15:05:29 PM
this looks like your shipping plugin

you have already posted this error

please talk to the plugin developer
Title: Re: fix and disable warning
Post by: GJC Web Design on November 14, 2019, 16:38:09 PM
see->  http://forum.virtuemart.net/index.php?topic=143904.msg509094#msg509094
Title: Re: fix and disable warning
Post by: jenkinhill on November 14, 2019, 16:39:41 PM
 :) :) :) :)
Title: Re: fix and disable warning
Post by: 2cool on November 14, 2019, 23:41:23 PM
 :-X

Joomla 3.9.13 vm3.6.8 php 7.3

The message:
Unknown variable 'Amount' in rule 'Amount=100'
Syntax error during evaluation, RPN is not well formed! (Full rule: '=Amount')
Unknown error occurred during evaluation of rule '=Amount'.
Outstack:

Array
(
   

    => Amount
    [1] => =
    )

    Assignments are not allowed inside expressions (rule given was '=Amount')
    Unknown variable 'Amount' in rule 'Amount=200'

    Regards
    Pas
Title: Re: fix and disable warning
Post by: GJC Web Design on November 15, 2019, 09:53:26 AM
to solve we need some better debug with files and line numbers -- try with Joomla debug on to produce a full stack trace
Title: Re: fix and disable warning
Post by: 2cool on November 15, 2019, 10:28:36 AM
I set this rule in Advanced Shipping by Rules for VirtueMart:
Name=PostNL; Amount=25; ShippingWithTax=3.95
Name=Gratis verzending; 25<=Amount; ShippingWithTax=0

Unknown variable 'Amount' in rule 'Amount=25'
Unknown variable '25' in rule '25=Amount'

Seems the '<' is removed after save, not compatible with php7.3?

Regards
Pas