I try to add wp_head();
I try to add hook: add_action(‘wp_head’, array(&$this, ‘init_current_post_type’));
And no effect. Consol showed an error.
It's funny, but wpdiscuz working on other hosting, on same theme!!!
How can I fix the problem?
"
VM3496:1 Uncaught ReferenceError: wpdiscuzAjaxObj is not defined
at eval (eval at <anonymous> (jquery.js,qver=1.12.4.pagespeed.jm.pPCPAKkkss.js:1), <anonymous>:1:1)
at eval (<anonymous>)
at jquery.js,qver=1.12.4.pagespeed.jm.pPCPAKkkss.js:1
at Function.globalEval (jquery.js,qver=1.12.4.pagespeed.jm.pPCPAKkkss.js:1)
at Ha (jquery.js,qver=1.12.4.pagespeed.jm.pPCPAKkkss.js:1)
at a.fn.init.append (jquery.js,qver=1.12.4.pagespeed.jm.pPCPAKkkss.js:1)
at a.fn.init.<anonymous> (jquery.js,qver=1.12.4.pagespeed.jm.pPCPAKkkss.js:1)
at Y (jquery.js,qver=1.12.4.pagespeed.jm.pPCPAKkkss.js:1)
at a.fn.init.html (jquery.js,qver=1.12.4.pagespeed.jm.pPCPAKkkss.js:1)
at Object.<anonymous> (jquery.js,qver=1.12.4.pagespeed.jm.pPCPAKkkss.js:1)
(anonymous) @ VM3496:1
(anonymous) @ jquery.js,qver=1.12.4.pagespeed.jm.pPCPAKkkss.js:1
globalEval @ jquery.js,qver=1.12.4.pagespeed.jm.pPCPAKkkss.js:1
Ha @ jquery.js,qver=1.12.4.pagespeed.jm.pPCPAKkkss.js:1
append @ jquery.js,qver=1.12.4.pagespeed.jm.pPCPAKkkss.js:1
(anonymous) @ jquery.js,qver=1.12.4.pagespeed.jm.pPCPAKkkss.js:1
Y @ jquery.js,qver=1.12.4.pagespeed.jm.pPCPAKkkss.js:1
html @ jquery.js,qver=1.12.4.pagespeed.jm.pPCPAKkkss.js:1
(anonymous) @ jquery.js,qver=1.12.4.pagespeed.jm.pPCPAKkkss.js:1
i @ jquery.js,qver=1.12.4.pagespeed.jm.pPCPAKkkss.js:1
fireWith @ jquery.js,qver=1.12.4.pagespeed.jm.pPCPAKkkss.js:1
y @ jquery.js,qver=1.12.4.pagespeed.jm.pPCPAKkkss.js:1
c @ jquery.js,qver=1.12.4.pagespeed.jm.pPCPAKkkss.js:1"
please revert back all you've done, deactivate and delete wpDiscuz and install it again.
Then navigate in Dashboard to Comments > Forms admin page, edit the Default Form, make sure it's enabled for all post types and save it. Then delete cache and check it again.