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


Angela
Posts: 16
Customer
(@angeljs)
Member
Joined: 3 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: 425
Moderator
(@elvina)
Reputable Member
Joined: 5 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:
Green
Default
Pear
Black Emo
{green}:grinning:
{green}:wink:
{green}:face:
{green}:inlove:
{green}:sweaty:
{green}:surprised:
{green}:lovekiss:
{green}:laugh:
{green}:formalsmile:
{green}:displeased:
{green}:cool:
{green}:resent:
{green}:nerd:
{green}:screaming:
{green}:amazed:
{green}:sad:
{green}:deceitful:
{green}:starryeyes:
{green}:evil:
{green}:shocked:
{green}:tears:
{green}:sulky:
{green}:smile:
{green}:vomited:
{green}:hi:
{green}:afraid:
{green}:crazy:
{green}:rabid:
{green}:fighting:
{green}:nonoise:
{green}:blushed:
{green}:idontknow:
{green}:scared:
{green}:razz:
{green}:kiss:
{green}:eat:
{green}:shutmouth:
{green}:gape:
{green}:suspicious:
{green}:laughingoutloud:
{green}:bruise:
{green}:crying:
{green}:pray:
{green}:serious:
{green}:excitement:
:)
:d
:wink:
:mrgreen:
:neutral:
:twisted:
:arrow:
:shock:
:???:
:cool:
:evil:
:oops:
:razz:
:roll:
:cry:
:eek:
:lol:
:mad:
:sad:
:!:
:?:
:idea:
:hmm:
:beg:
:whew:
:chuckle:
:silly:
:envy:
:shutmouth:
{pear}:happy:
{pear}:smile:
{pear}:laugh:
{pear}:laughingoutloud:
{pear}:crying:
{pear}:exhausted:
{pear}:nerd:
{pear}:surprised:
{pear}:veryhungry:
{pear}:wink:
{blackemo}:laughtertotears:
{blackemo}:gift:
{blackemo}:love:
{blackemo}:inlove:
{blackemo}:shamefaced:
{blackemo}:heart:
{blackemo}:crazy:
{blackemo}:anguished:
{blackemo}:bruise:
{blackemo}:easymoney:
{blackemo}:exhausted:
{blackemo}:vampire:
{blackemo}:shutmouth:
{blackemo}:wink:
{blackemo}:carnival:
{blackemo}:flowers:
{blackemo}:hotdrink:
{blackemo}:party: