Support » Plugin: Easy Sign Up » Issue with data page on IIS

  • Resolved jpsteinwand


    On IIS when there is more than one entry in the database, the just names & email box only has a single comma. With only one entry it does work.

    The issue seems to be with the following line lib/esu-simple-data-page.php:
    $data_to_array = explode(PHP_EOL, $data);

    On IIS it creates an array with only one item, because the PHP_EOL does not split the entries. This causes an invalid JSON string which returns null.

    It works fine on Unix.

Viewing 3 replies - 1 through 3 (of 3 total)
  • If I replace PHP_EOL with “\n” it works on both IIS and Unix.

    Plugin Author Greenweb


    Thanks jpsteinwand, there is no way I can test on every system so folks like you provide great feedback and advice. No code will ever be perfect but with a bit of help we can try :-).

    I’ll run a few tests tomorrow on a few different PHP versions and push up an update – thanks again you rock.

    Glad to help. If there is a possibility this data could be OS dependent, (and use \r\n instead), you could strip the \r:

    explode(“\n”, str_replace(“\r”, ”, $data));

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Issue with data page on IIS’ is closed to new replies.