Guest Ticket not working. Hangs on screen. Errors below
-
When a guest user tries to initiate a new ticket at https://benseidler.com/submit-ticket/ it sits there and hangs. If I click the button a few times, sometimes I can get it to go, sometimes I cant. I have tried to clear cache, tried Internet Explorer and Chrome, and had other users try it, with the same results. Please feel free to try to create a guest ticket here for yourself to troubleshoot.
I already looked at the troubleshooting guide for this, but I cannot see how those two methods listed are causing this issue… If you think they are, please explain… Also explain why you would not want to have logged in users utilize caching…?
Errors:
Unable to get property ‘getContent’ of undefined or null referenceif (typeof tinyMCE != “undefined”) {
$(‘.wpas-form’).submit(function (event) {
var submitBtn = $(‘[type=”submit”]’, $(this));
var editorContent = tinyMCE.activeEditor.getContent();
if (!replyClose.is(‘:checked’) && (editorContent === ” || editorContent === null)) {/* Highlight the active editor */
$(tinyMCE.activeEditor.getBody()).css(‘background-color’, ‘#ffeeee’);/* Alert the user */
alert(wpas.translations.emptyEditor);/* Restore the editor background color */
$(tinyMCE.activeEditor.getBody()).css(‘background-color’, ”);/* Focus on editor */
tinyMCE.activeEditor.focus();return false;
} else {
submitBtn.prop(‘disabled’, true).text(wpas.translations.onSubmit);
}
});Unable to get property ‘getContent’ of undefined or null reference
/*
Check if TinyMCE is empty
http://codeblow.com/questions/method-to-check-whether-tinymce-is-active-in-wordpress/
http://stackoverflow.com/a/8749616
*/
if (typeof tinyMCE != “undefined”) {$(‘.wpas-form’).submit(function (event) {
var submitBtn = $(‘[type=”submit”]’, $(this));
var editorContent = tinyMCE.activeEditor.getContent();
if (!replyClose.is(‘:checked’) && (editorContent === ” || editorContent === null)) {/* Highlight the active editor */
$(tinyMCE.activeEditor.getBody()).css(‘background-color’, ‘#ffeeee’);/* Alert the user */
alert(wpas.translations.emptyEditor);/* Restore the editor background color */
$(tinyMCE.activeEditor.getBody()).css(‘background-color’, ”);/* Focus on editor */
tinyMCE.activeEditor.focus();return false;
} else {
submitBtn.prop(‘disabled’, true).text(wpas.translations.onSubmit);
}
});} else {
The page I need help with: [log in to see the link]
- The topic ‘Guest Ticket not working. Hangs on screen. Errors below’ is closed to new replies.