Page 1 of 1

sending Emails jquery invalid unexpected token

Posted: Thu May 29, 2025 5:31 pm
by stevenmiller
Hello,
when I try to send emails with the testing function, now this is shown in console:

Uncaught SyntaxError: Invalid or unexpected token
at Object.successCallback (nuajax.js?ts=20250529151559:397:20)
at c (jquery-3.7.1.min.js?ts=1:2:25304)
at Object.fireWith [as resolveWith] (jquery-3.7.1.min.js?ts=1:2:26053)
at l (jquery-3.7.1.min.js?ts=1:2:77782)
at XMLHttpRequest.<anonymous> (jquery-3.7.1.min.js?ts=1:2:80265)

DB V.4.7-2025.05.25.00
Files V.4.7-2025.05.26.06

Re: sending Emails jquery invalid unexpected token

Posted: Thu May 29, 2025 8:09 pm
by kev1n
Hi,

Unfortunately, I’m unable to reproduce the issue on my end.

To help identify what’s causing the syntax error, please do the following:
  1. Insert

    Code: Select all

    debugger;
    on line 397, just above

    Code: Select all

    eval(fm.callback + ';'); in nuajax.js
    .
  2. Log out of nuBuilder, then log back in and open the email test form.
  3. Open the developer console by pressing Ctrl+Shift+I or F12.
  4. Send a test email.
The debugger will stop at line 397.
Now, hover your mouse over

Code: Select all

fm.callback
— the error message should appear.
Please take a screenshot of that message and upload it to the forum.
This will help us understand why the “Uncaught SyntaxError” is occurring.

E.g. if I follow the steps above, I see this:
2025-05-29_200111.png