When switching from Calculate the limits using an equation and tokens to Fields on the user profile can override limits stated below, I'm getting an AJAX error (see attachment).

This does not happen when switching from Everyone has the same limits, stated below to Fields on the user profile can override limits stated below

CommentFileSizeAuthor
ajax_error_balance_limits.txt2.57 KBnoel.rivas

Comments

matslats’s picture

Status: Active » Closed (works as designed)

It looks like the error is in parsing your php.
Parse error: syntax error, unexpected ';' in /nfs/c04/h04/mnt/61770/domains/circulot.nelovishk.com/drupal-7.15/sites/all/modules/mutual_credit/extras/limits/mcapi_limits.inc(157) : eval()'d code on line 1
This parsing function might help you see what's going on:

function mcapi_limits_equation_parse($string, $values) {
  $pattern = 'return '. str_replace('@', '', $string) .';';
  $formula = strtr(
    $pattern,
    $values
  );
  return eval($formula);
}