Notifications
Clear all

[Solved] Can't add or disable emoticons in admin area

2 Posts
2 Users
1 Reactions
1,286 Views
Posts: 31
Customer
Topic starter
(@angeljs)
Member
Joined: 8 years ago

I suspect it may be a javascript issue, but I can't add new emoticons or disable any that are already there. I have no idea how to fix it, but here is the result from the element console:

Uncaught SyntaxError: Unexpected token '<'
edit-comments.php?page=wpdiscuz_options_page:3989 Uncaught ReferenceError: Cookies is not defined
at HTMLDocument.<anonymous> (edit-comments.php?page=wpdiscuz_options_page:3989)
at i (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,underscore,wp-util,jquery-ui-mouse,jquery-ui-sortable,moxiejs,p&load[chunk_1]=lupload,jquery-ui-draggable,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,jquery-effects-core,jquery-effects-fade&ver=5.3.1:2)
at Object.fireWith [as resolveWith] (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,underscore,wp-util,jquery-ui-mouse,jquery-ui-sortable,moxiejs,p&load[chunk_1]=lupload,jquery-ui-draggable,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,jquery-effects-core,jquery-effects-fade&ver=5.3.1:2)
at Function.ready (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,underscore,wp-util,jquery-ui-mouse,jquery-ui-sortable,moxiejs,p&load[chunk_1]=lupload,jquery-ui-draggable,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,jquery-effects-core,jquery-effects-fade&ver=5.3.1:2)
at HTMLDocument.J (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,underscore,wp-util,jquery-ui-mouse,jquery-ui-sortable,moxiejs,p&load[chunk_1]=lupload,jquery-ui-draggable,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,jquery-effects-core,jquery-effects-fade&ver=5.3.1:2)
2wp-auth-check.min.js?ver=5.3.1:1 Uncaught TypeError: Cannot read property 'hasClass' of undefined
at HTMLDocument.<anonymous> (wp-auth-check.min.js?ver=5.3.1:1)
at HTMLDocument.dispatch (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,underscore,wp-util,jquery-ui-mouse,jquery-ui-sortable,moxiejs,p&load[chunk_1]=lupload,jquery-ui-draggable,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,jquery-effects-core,jquery-effects-fade&ver=5.3.1:3)
at HTMLDocument.r.handle (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,underscore,wp-util,jquery-ui-mouse,jquery-ui-sortable,moxiejs,p&load[chunk_1]=lupload,jquery-ui-draggable,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,jquery-effects-core,jquery-effects-fade&ver=5.3.1:3)
at Object.trigger (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,underscore,wp-util,jquery-ui-mouse,jquery-ui-sortable,moxiejs,p&load[chunk_1]=lupload,jquery-ui-draggable,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,jquery-effects-core,jquery-effects-fade&ver=5.3.1:3)
at Object.a.event.trigger (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,underscore,wp-util,jquery-ui-mouse,jquery-ui-sortable,moxiejs,p&load[chunk_1]=lupload,jquery-ui-draggable,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,jquery-effects-core,jquery-effects-fade&ver=5.3.1:8)
at HTMLDocument.<anonymous> (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,underscore,wp-util,jquery-ui-mouse,jquery-ui-sortable,moxiejs,p&load[chunk_1]=lupload,jquery-ui-draggable,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,jquery-effects-core,jquery-effects-fade&ver=5.3.1:3)
at Function.each (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,underscore,wp-util,jquery-ui-mouse,jquery-ui-sortable,moxiejs,p&load[chunk_1]=lupload,jquery-ui-draggable,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,jquery-effects-core,jquery-effects-fade&ver=5.3.1:2)
at a.fn.init.each (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,underscore,wp-util,jquery-ui-mouse,jquery-ui-sortable,moxiejs,p&load[chunk_1]=lupload,jquery-ui-draggable,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,jquery-effects-core,jquery-effects-fade&ver=5.3.1:2)
at a.fn.init.trigger (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,underscore,wp-util,jquery-ui-mouse,jquery-ui-sortable,moxiejs,p&load[chunk_1]=lupload,jquery-ui-draggable,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,jquery-effects-core,jquery-effects-fade&ver=5.3.1:3)
at Object.<anonymous> (heartbeat.min.js?ver=5.3.1:1)
2edit-comments.php?page=wpdiscuz_options_page:3987 Uncaught ReferenceError: Cookies is not defined
at HTMLLIElement.<anonymous> (edit-comments.php?page=wpdiscuz_options_page:3987)
at HTMLDocument.dispatch (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,underscore,wp-util,jquery-ui-mouse,jquery-ui-sortable,moxiejs,p&load[chunk_1]=lupload,jquery-ui-draggable,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,jquery-effects-core,jquery-effects-fade&ver=5.3.1:3)
at HTMLDocument.r.handle (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,underscore,wp-util,jquery-ui-mouse,jquery-ui-sortable,moxiejs,p&load[chunk_1]=lupload,jquery-ui-draggable,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,jquery-effects-core,jquery-effects-fade&ver=5.3.1:3)
wp-auth-check.min.js?ver=5.3.1:1 Uncaught TypeError: Cannot read property 'hasClass' of undefined
at HTMLDocument.<anonymous> (wp-auth-check.min.js?ver=5.3.1:1)
at HTMLDocument.dispatch (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,underscore,wp-util,jquery-ui-mouse,jquery-ui-sortable,moxiejs,p&load[chunk_1]=lupload,jquery-ui-draggable,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,jquery-effects-core,jquery-effects-fade&ver=5.3.1:3)
at HTMLDocument.r.handle (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,underscore,wp-util,jquery-ui-mouse,jquery-ui-sortable,moxiejs,p&load[chunk_1]=lupload,jquery-ui-draggable,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,jquery-effects-core,jquery-effects-fade&ver=5.3.1:3)
at Object.trigger (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,underscore,wp-util,jquery-ui-mouse,jquery-ui-sortable,moxiejs,p&load[chunk_1]=lupload,jquery-ui-draggable,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,jquery-effects-core,jquery-effects-fade&ver=5.3.1:3)
at Object.a.event.trigger (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,underscore,wp-util,jquery-ui-mouse,jquery-ui-sortable,moxiejs,p&load[chunk_1]=lupload,jquery-ui-draggable,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,jquery-effects-core,jquery-effects-fade&ver=5.3.1:8)
at HTMLDocument.<anonymous> (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,underscore,wp-util,jquery-ui-mouse,jquery-ui-sortable,moxiejs,p&load[chunk_1]=lupload,jquery-ui-draggable,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,jquery-effects-core,jquery-effects-fade&ver=5.3.1:3)
at Function.each (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,underscore,wp-util,jquery-ui-mouse,jquery-ui-sortable,moxiejs,p&load[chunk_1]=lupload,jquery-ui-draggable,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,jquery-effects-core,jquery-effects-fade&ver=5.3.1:2)
at a.fn.init.each (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,underscore,wp-util,jquery-ui-mouse,jquery-ui-sortable,moxiejs,p&load[chunk_1]=lupload,jquery-ui-draggable,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,jquery-effects-core,jquery-effects-fade&ver=5.3.1:2)
at a.fn.init.trigger (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,underscore,wp-util,jquery-ui-mouse,jquery-ui-sortable,moxiejs,p&load[chunk_1]=lupload,jquery-ui-draggable,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,jquery-effects-core,jquery-effects-fade&ver=5.3.1:3)
at Object.<anonymous> (heartbeat.min.js?ver=5.3.1:1)
1 Reply
Elvina
Posts: 1403
(@elvina)
Support
Joined: 5 years ago

Hi @angeljs,

Please follow the steps below to get it resolved:

1. Open the /wp-content/plugins/wpdiscuz/class.WpdiscuzCore.php file

2. Find the following line (1068 line):

wp_register_script('wpdiscuz-jquery-cookie', plugins_url(WPDISCUZ_DIR_NAME . '/assets/third-party/wpdcookiejs/customcookie.js'), array('jquery'), $this->version, true);

3. Replace with the following one:

wp_register_script('wpdiscuz-jquery-cookie', plugins_url(WPDISCUZ_DIR_NAME . '/assets/third-party/wpdccjs/wpdcc.js'), array('jquery'), $this->version, true);

Don't forget to delete all caches before checking.

Reply
Share:
Scroll to top