Title: PHP Errors on Line 360 &amp; 385
Last modified: January 28, 2020

---

# PHP Errors on Line 360 & 385

 *  Resolved [teztezz](https://wordpress.org/support/users/teztezz/)
 * (@teztezz)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/php-errors-on-line-360-385/)
 * 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)

 *  [geraldmenzel](https://wordpress.org/support/users/geraldmenzel/)
 * (@geraldmenzel)
 * [6 years ago](https://wordpress.org/support/topic/php-errors-on-line-360-385/#post-12917159)
 * 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.
 *  [geraldmenzel](https://wordpress.org/support/users/geraldmenzel/)
 * (@geraldmenzel)
 * [6 years ago](https://wordpress.org/support/topic/php-errors-on-line-360-385/#post-12917173)
 * Seems to be related: [https://stackoverflow.com/questions/4939711/help-debugging-evalmaths-undefined-offset](https://stackoverflow.com/questions/4939711/help-debugging-evalmaths-undefined-offset)
 *  [ukbestrong](https://wordpress.org/support/users/ukbestrong/)
 * (@ukbestrong)
 * [6 years ago](https://wordpress.org/support/topic/php-errors-on-line-360-385/#post-12975256)
 * Same issue here too.
 *  [ukbestrong](https://wordpress.org/support/users/ukbestrong/)
 * (@ukbestrong)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/php-errors-on-line-360-385/#post-13139391)
 * Is the plugin still supported? Still having issues and have mailed the author
   at his website with no reply?
 *  Plugin Author [bhagwad](https://wordpress.org/support/users/bhagwad/)
 * (@bhagwad)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/php-errors-on-line-360-385/#post-13139951)
 * 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…
 *  [ukbestrong](https://wordpress.org/support/users/ukbestrong/)
 * (@ukbestrong)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/php-errors-on-line-360-385/#post-13202593)
 * 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](https://wordpress.org/support/users/bhagwad/)
 * (@bhagwad)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/php-errors-on-line-360-385/#post-13261640)
 * 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
 *  [ukbestrong](https://wordpress.org/support/users/ukbestrong/)
 * (@ukbestrong)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/php-errors-on-line-360-385/#post-13268898)
 * > 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](https://wordpress.org/support/users/bhagwad/)
 * (@bhagwad)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/php-errors-on-line-360-385/#post-13318025)
 * Glad to help! If you’re happy, please feel free to leave a nice review 🙂
 *  Plugin Author [bhagwad](https://wordpress.org/support/users/bhagwad/)
 * (@bhagwad)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/php-errors-on-line-360-385/#post-13318029)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/calculate-values-with-shortcodes.
   svg)
 * [Calculate Values with Shortcodes](https://wordpress.org/plugins/calculate-values-with-shortcodes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/calculate-values-with-shortcodes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/calculate-values-with-shortcodes/)
 * [Active Topics](https://wordpress.org/support/plugin/calculate-values-with-shortcodes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/calculate-values-with-shortcodes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/calculate-values-with-shortcodes/reviews/)

 * 10 replies
 * 4 participants
 * Last reply from: [bhagwad](https://wordpress.org/support/users/bhagwad/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/php-errors-on-line-360-385/#post-13318029)
 * Status: resolved