jquery and require not defined
-
After few months that my website worked perfectly, two days a go after installing some plugins or upgrade my forum or I other thinks that I cannot remember ---> My admin panel is not working at all, I get those errors in the JS console:
on the index page itself, require is not defined and I do not see my footer any more (dont know if more is missing):
Please can someone help me !!! I realy need your help.
I found this issue the same as mine, but no one solved it : https://github.com/NodeBB/NodeBB/issues/2572 -
Did you try to disable all custom plugins as suggested in the referenced issue?
-
No not yet, I don't know how to do it. Can you tell me how please ?
-
@kacemlight just go to you ACP and in the plugins section deactivate one by one all plugins and reload your nodebb instance. Then check if the behaviour is now normal.
Instead of disable all plugins, you can just disable the few last you installed, if you remember, in order to check if those plugins are causing your nodebb instante to not work properly.
Regards.
-
I did it now.. but I have always the same javascript problem.. I can say it's worst.. ! nodejsworld.com
-
I disabled all plugins
-
@kacemlight post the version of nodebb from you have upgraded, and the version you upgraded to. Post the version of the theme you are using too. The more information you can provide, the easier would be to try to help you.
So, now you have no plugins installed?
-
I'm running the NodeBB v0.6.1. I cannot remember what version I had. I use not theme now, I disactived all plugins and theme.
@julian I have no more problem in my index page, but the admin panel don't work at all and I have always the same error.the error :
Uncaught ReferenceError: require is not defined(anonymous function) @ admin:29
colorpicker.js?v=v0.6.1:9 Uncaught ReferenceError: jQuery is not defined(anonymous function) @ colorpicker.js?v=v0.6.1:9
admin.js?v=v0.6.1:5 Uncaught ReferenceError: $ is not defined(anonymous function) @ admin.js?v=v0.6.1:5(anonymous function) @ admin.js?v=v0.6.1:151
nanoscroller.min.js?v=v0.6.1:3 Uncaught ReferenceError: jQuery is not defined(anonymous function) @ nanoscroller.min.js?v=v0.6.1:3
jquery.event.drag.js?v=v0.6.1:402 Uncaught ReferenceError: jQuery is not defined(anonymous function) @ jquery.event.drag.js?v=v0.6.1:402
jquery.event.drop.js?v=v0.6.1:302 Uncaught ReferenceError: jQuery is not defined(anonymous function) @ jquery.event.drop.js?v=v0.6.1:302
jquery.ba-serializeobject.min.js?v=v0.6.1:9 Uncaught ReferenceError: jQuery is not defined -
I have no plugin installed now.. you can see this in the website it becomes horrible !
-
I don't know how nodebb include Jquery library, but it's really clear that's my website don't contain anymore jquery. You can see it in the side client error.
Please can someone tell me how to fixe this problem ? -
Have you disabled/reset the widgets? They are separate from themes and plugins, and can also cause a crash like that if there is an error in their js.
-
Yess I think it was a widget that cause problem ..Thank you for the help !
-
np!, glad I could help.