I have 2 issues after the upgrade from v1.41.1 to v1.15.4 also had done a PHP version upgrade from 7.2 to 7.4
Consol shows:
Uncaught ReferenceError: jQuery is not defined
Uncaught ReferenceError: getConfig is not defined

/tickets.php?id=11470#reply

Issue 1: when end-user reply via the portal
the message is typed, when hitting Post Reply message shows "Correct any errors below and try again"
it seems like whatever typed is not registering

Issue #2:on End-user portal
Clicked on Ticket number opens the ticket, but not when clicking on Subject

system info:

  • ramrajone and stevejonn replied to this.
  • ramrajone
    update, Issue #1 is fixed by editing ticket.php: line 81

    From: $POST['message'] = ThreadEntryBody::clean($POST['message']);

    To: $POST['message'] = ThreadEntryBody::clean($POST[$messageField->getFormName()]);

    ramrajone
    update, Issue #1 is fixed by editing ticket.php: line 81

    From: $POST['message'] = ThreadEntryBody::clean($POST['message']);

    To: $POST['message'] = ThreadEntryBody::clean($POST[$messageField->getFormName()]);

    ramrajone
    Issue #2 was fixed by re-loading all js files in /js, not sure which file fixed the issue

    quick note, not sure if it's my setup or something I missed
    Most of the errors were related to jquery-3.4.0.min.js, after I have copied this file all errors were gone
    so, a new version is this: jquery-3.5.1.min.js but some code still looking for 3.4.0

    a year later

    ramrajone Uncaught ReferenceError: jQuery is not defined

    The "Uncaught ReferenceError: jQuery is not defined" error in JavaScript usually occurs when the jQuery library is not properly loaded or included in the HTML file.

    This error means that the code is trying to use the jQuery syntax, but the browser cannot find the jQuery library. To fix this error, you need to ensure that the jQuery library is properly loaded in the HTML file before any JavaScript code that uses it.

    Here are some common reasons why this error occurs:

    • The jQuery library is not included in the HTML file, or the file path is incorrect.
    • The jQuery library is included after the JavaScript code that uses it.
    • There is a conflict with another JavaScript library that uses the same dollar sign ($).

    To fix this error, you can try the following steps:

    • Check that the jQuery library is included in the HTML file before any JavaScript code that uses it.
    • Verify that the file path to the jQuery library is correct and that the file is present in that location.
    • Use the jQuery.noConflict() method to avoid conflicts with other JavaScript libraries that use the dollar sign ($) as a shorthand for their own library.
      -
    Write a Reply...