Roundcube Community Forum

Release Support => Pending Issues => Topic started by: jlachapelle on March 21, 2024, 12:41:41 PM

Title: Uncaught TypeError in Elastic theme on send email page load and submit action
Post by: jlachapelle on March 21, 2024, 12:41:41 PM
Uncaught TypeError in Elastic theme on send email page load and submit action
I'm encountering a JavaScript error when using the Elastic theme in Roundcube. The issue occurs on page load and when clicking the submit button in the UI. Below are the details of the errors.

This error seems to be related to the initialization of some components or plugins, possibly involving TinyMCE or jQuery.

This error occurs when attempting to submit a form, indicating a problem accessing or invoking the 'get_content' method, potentially related to the email content being composed.

On page load
https://i.postimg.cc/d02NCpvY/Screenshot-2024-03-21-123257.png (https://i.postimg.cc/d02NCpvY/Screenshot-2024-03-21-123257.png)
jQuery.Deferred exception: Cannot read properties of undefined (reading 'registry') TypeError: Cannot read properties of undefined (reading 'registry') at S.e.config.setup_callback (https://webmail.mydomain.qc.ca/skins/elastic/ui.min.js?s=1640816963:13:13303 (https://webmail.mydomain.qc.ca/skins/elastic/ui.min.js?s=1640816963:13:13303)) at l.setup (https://webmail.mydomain.qc.ca/program/js/editor.min.js?s=1701182961:1:3328 (https://webmail.mydomain.qc.ca/program/js/editor.min.js?s=1701182961:1:3328)) at Ux.execCallback (https://webmail.mydomain.qc.ca/program/js/tinymce/tinymce.min.js?s=1701182961:1:339848 (https://webmail.mydomain.qc.ca/program/js/tinymce/tinymce.min.js?s=1701182961:1:339848)) at new Ux (https://webmail.mydomain.qc.ca/program/js/tinymce/tinymce.min.js?s=1701182961:1:335037 (https://webmail.mydomain.qc.ca/program/js/tinymce/tinymce.min.js?s=1701182961:1:335037)) at n (https://webmail.mydomain.qc.ca/program/js/tinymce/tinymce.min.js?s=1701182961:1:347434 (https://webmail.mydomain.qc.ca/program/js/tinymce/tinymce.min.js?s=1701182961:1:347434)) at Array.<anonymous> (https://webmail.mydomain.qc.ca/program/js/tinymce/tinymce.min.js?s=1701182961:1:348999 (https://webmail.mydomain.qc.ca/program/js/tinymce/tinymce.min.js?s=1701182961:1:348999)) at Lt (https://webmail.mydomain.qc.ca/program/js/tinymce/tinymce.min.js?s=1701182961:1:27137 (https://webmail.mydomain.qc.ca/program/js/tinymce/tinymce.min.js?s=1701182961:1:27137)) at e (https://webmail.mydomain.qc.ca/program/js/tinymce/tinymce.min.js?s=1701182961:1:348848 (https://webmail.mydomain.qc.ca/program/js/tinymce/tinymce.min.js?s=1701182961:1:348848)) at Se.m.bind (https://webmail.mydomain.qc.ca/program/js/tinymce/tinymce.min.js?s=1701182961:1:11037 (https://webmail.mydomain.qc.ca/program/js/tinymce/tinymce.min.js?s=1701182961:1:11037)) at Object.M [as bind] (https://webmail.mydomain.qc.ca/program/js/tinymce/tinymce.min.js?s=1701182961:1:89064 (https://webmail.mydomain.qc.ca/program/js/tinymce/tinymce.min.js?s=1701182961:1:89064)) undefined E.Deferred.exceptionHook @ jquery.min.js?s=1610484926:2 t @ jquery.min.js?s=1610484926:2 setTimeout (async) (anonymous) @ jquery.min.js?s=1610484926:2 i @ jquery.min.js?s=1610484926:2 fireWith @ jquery.min.js?s=1610484926:2 fire @ jquery.min.js?s=1610484926:2 i @ jquery.min.js?s=1610484926:2 fireWith @ jquery.min.js?s=1610484926:2 ready @ jquery.min.js?s=1610484926:2 B @ jquery.min.js?s=1610484926:2 jquery.min.js?s=1610484926:2 Uncaught TypeError: Cannot read properties of undefined (reading 'registry') at S.e.config.setup_callback (ui.min.js?s=1640816963:13:13303) at l.setup (editor.js:161:12) at Ux.execCallback (tinymce.min.js?s=1701182961:1:339848) at new Ux (tinymce.min.js?s=1701182961:1:335037) at n (tinymce.min.js?s=1701182961:1:347434) at Array.<anonymous> (tinymce.min.js?s=1701182961:1:348999) at Lt (tinymce.min.js?s=1701182961:1:27137) at e (tinymce.min.js?s=1701182961:1:348848) at Se.m.bind (tinymce.min.js?s=1701182961:1:11037) at Object.M [as bind] (tinymce.min.js?s=1701182961:1:89064)

On button click (submit)
https://postimg.cc/t7gGvyqW (https://postimg.cc/t7gGvyqW)
Uncaught TypeError: Cannot read properties of undefined (reading 'registry') at S.e.config.setup_callback (https://webmail.mydomain.qc.ca/skins/elastic/ui.min.js?s=1640816963:13:13303 (https://webmail.mydomain.qc.ca/skins/elastic/ui.min.js?s=1640816963:13:13303)) at l.setup (https://webmail.mydomain.qc.ca/program/js/editor.min.js?s=1701182961:1:3328 (https://webmail.mydomain.qc.ca/program/js/editor.min.js?s=1701182961:1:3328)) ... at Object.M [as bind] (https://webmail.cooptel.qc.ca/program/js/tinymce/tinymce.min.js?s=1701182961:1:89064 (https://webmail.cooptel.qc.ca/program/js/tinymce/tinymce.min.js?s=1701182961:1:89064))
Title: Re: Uncaught TypeError in Elastic theme on send email page load and submit action
Post by: JohnDoh on March 21, 2024, 04:05:03 PM
What version of Roundcube are you running and what version of TinyMCE (have a look at the header in [rc root]/program/js/tinymce/tinymce.min.js)? With Roundcube 1.5 TinyMCE was updated to version 5 and that added the `registry` object mentioned as missing in your error message.