vaizard / glued-skeleton-modular

Web application skeleton that uses the Slim4 Framework, PHP-DI, Nyholm PSR7 and Twig.
MIT License
1 stars 4 forks source link

JS error on registration form - Uncaught TypeError: res is undefined #134

Closed zelitomas closed 3 years ago

zelitomas commented 3 years ago

Steps to reproduce

Expected behavior

Helpful error message is displayed

Actual behavior

Nothing happens. Browser console has following error:

Uncaught TypeError: res is undefined
    error http://localhost:8080/core/signup:241
    each http://localhost:8080/assets/cache/stisla-template.aed90e14c58c2241cd65a0a33c1abf68f39e8c29.js:3
    each http://localhost:8080/assets/cache/stisla-template.aed90e14c58c2241cd65a0a33c1abf68f39e8c29.js:3
    error http://localhost:8080/core/signup:236
    c jQuery
    c http://localhost:8080/assets/cache/stisla-template.aed90e14c58c2241cd65a0a33c1abf68f39e8c29.js:3
    fireWith http://localhost:8080/assets/cache/stisla-template.aed90e14c58c2241cd65a0a33c1abf68f39e8c29.js:3
    l http://localhost:8080/assets/cache/stisla-template.aed90e14c58c2241cd65a0a33c1abf68f39e8c29.js:3
    o http://localhost:8080/assets/cache/stisla-template.aed90e14c58c2241cd65a0a33c1abf68f39e8c29.js:3
    send http://localhost:8080/assets/cache/stisla-template.aed90e14c58c2241cd65a0a33c1abf68f39e8c29.js:3
    ajax http://localhost:8080/assets/cache/stisla-template.aed90e14c58c2241cd65a0a33c1abf68f39e8c29.js:3
    c jQuery
    dispatch http://localhost:8080/assets/cache/stisla-template.aed90e14c58c2241cd65a0a33c1abf68f39e8c29.js:3
    handle http://localhost:8080/assets/cache/stisla-template.aed90e14c58c2241cd65a0a33c1abf68f39e8c29.js:3
    error http://localhost:8080/core/signup:241
    each http://localhost:8080/assets/cache/stisla-template.aed90e14c58c2241cd65a0a33c1abf68f39e8c29.js:3
    each http://localhost:8080/assets/cache/stisla-template.aed90e14c58c2241cd65a0a33c1abf68f39e8c29.js:3
    error http://localhost:8080/core/signup:236
    c jQuery
    c http://localhost:8080/assets/cache/stisla-template.aed90e14c58c2241cd65a0a33c1abf68f39e8c29.js:3
    fireWith http://localhost:8080/assets/cache/stisla-template.aed90e14c58c2241cd65a0a33c1abf68f39e8c29.js:3
    l http://localhost:8080/assets/cache/stisla-template.aed90e14c58c2241cd65a0a33c1abf68f39e8c29.js:3
    o http://localhost:8080/assets/cache/stisla-template.aed90e14c58c2241cd65a0a33c1abf68f39e8c29.js:3
    (Async: EventHandlerNonNull)
    send http://localhost:8080/assets/cache/stisla-template.aed90e14c58c2241cd65a0a33c1abf68f39e8c29.js:3
    ajax http://localhost:8080/assets/cache/stisla-template.aed90e14c58c2241cd65a0a33c1abf68f39e8c29.js:3
    c jQuery
    dispatch http://localhost:8080/assets/cache/stisla-template.aed90e14c58c2241cd65a0a33c1abf68f39e8c29.js:3
    handle http://localhost:8080/assets/cache/stisla-template.aed90e14c58c2241cd65a0a33c1abf68f39e8c29.js:3
zelitomas commented 3 years ago

Found the initial cause - user was already registered. Changed original bug.