Paid Addons Support Forum Only

Please note, that here we only support Paid Addons issues and questions.

gVectors Support staff works from 6am to 6pm (GMT+0)

All questions related to wpForo and wpDiscuz free plugins should be asked in the corresponding plugin support forum:

 

wpDiscuz Support Forum   wpForo Support Forum

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


Angela
Posts: 24
Customer
(@angeljs)
Member
Joined: 4 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: 1039
Moderator
(@elvina)
Noble Member
Joined: 9 months 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: