• Resolved teztezz

    (@teztezz)


    Hi Bhagwad,

    Thanks for this very useful plugin btw.

    Hoping you can help look into 2 errors I am seeing that is filling up the php error log and causes the WP editor to crash, please se below;

    Notice: Undefined offset: -1 in /home/evomone1/public_html/moneyactive.com.au/wp-content/plugins/calculate-values-with-shortcodes/evalmath.class.php on line 385

    Warning: unexpected operator ‘*’ in /home/evomone1/public_html/moneyactive.com.au/wp-content/plugins/calculate-values-with-shortcodes/evalmath.class.php on line 360

    Im calculating using field values from Formidable forms, everything works great, except for this issue.

    Thanks,
    Terry

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hi,

    I’m running into the same problem:

    Notice:  Undefined offset: -1 in /wp-content/plugins/calculate-values-with-shortcodes/evalmath.class.php on line 385
    
    Total events: 1351
    
    Stack Trace
    -----------
    1.  EvalMathStack->last(2)
        /wp-content/plugins/calculate-values-with-shortcodes/evalmath.class.php:217
    2.  EvalMath->nfx('100.0*(1-0.11)')
        /wp-content/plugins/calculate-values-with-shortcodes/evalmath.class.php:149
    3.  EvalMath->evaluate('100.0*(1-0.11)')
        /wp-content/plugins/calculate-values-with-shortcodes/calculate-values-shortcodes.php:29
    ...

    Please advise.

    Same issue here too.

    Is the plugin still supported? Still having issues and have mailed the author at his website with no reply?

    Plugin Author bhagwad

    (@bhagwad)

    Hi, it’s only been 3 hrs since I saw the e-mail. So give me some time to respond ??

    Could you share with me the exact expression you’re using in the shortcode? I might need to get a test login on your site for further debugging…

    Hi bhagwad,

    These are the shortcodes ??

    [calculate]([wlt-calories progress=”auto”])*.85+([wlt-calories progress=”auto”])*.15*7[/calculate]

    [calculate]([wlt-calories progress=”auto”])*.85[/calculate]

    Regards,

    Rick

    Plugin Author bhagwad

    (@bhagwad)

    Hi!

    Try removing the “()” around the wlt shortcodes since there’s no expression inside them.

    For example:

    [calculate][wlt-calories progress=”auto”]*.85+[wlt-calories progress=”auto”]*.15*7[/calculate]

    Let me know if this works!

    Regards,
    Bhagwad

    Hi!

    Try removing the “()” around the wlt shortcodes since there’s no expression inside them.

    For example:

    [calculate][wlt-calories progress=”auto”]*.85+[wlt-calories progress=”auto”]*.15*7[/calculate]

    Let me know if this works!

    Regards,
    Bhagwad

    That did the trick!! This plugin is awesome, thanks so much ??

    Plugin Author bhagwad

    (@bhagwad)

    Glad to help! If you’re happy, please feel free to leave a nice review ??

    Plugin Author bhagwad

    (@bhagwad)

    Marking as resolved…

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘PHP Errors on Line 360 & 385’ is closed to new replies.