New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JS errors on fresh install of v0.7.x #3200
Comments
I noticed this as well. It started happening almost two weeks ago when I did a |
seems to happen on NodeBB reload as well |
Where does it point to in nodebb.min.js? |
If I refresh the page I get this: |
Can you post the contents of nodebb.min.js first 15 lines or so? If you run it in dev mode it shouldn't be minified. |
seems to work fine in dev mode. this is the line that shows error.
|
Here is a screenshot of Dev Tools when I first load the page: https://db.tt/VsjhGTPc Here is after I refresh the page: https://db.tt/wM51TYLt |
I can reproduce this on a windows machine with |
@barisusakli Is there a way to run it with minification disabled (other than dev mode?) I guess I could run the dev mode and redirect the output to a file, though the file would grow pretty quickly like that ❓ |
If you don't mind modifying the source change this line https://github.com/NodeBB/NodeBB/blob/master/minifier.js#L21 Change Are you running the forum on windows as well? |
Okay, I'll do that tonight. Thanks!! 👍 ...No Windows, its on Ubuntu 15.04 |
No errors whatsoever with Debian 8 on client side (nodeBB running on the same machine). Tested against Chrome 43.0.2357.65 and current HEAD of nodeBB-0.7. just fyi, since the mentioning of Windows and the |
Hi, i just tried installing current 0.7.x branch on OpenShift and got the same error (in Chrome browser). After disabling minification (as described by @barisusakli in #3200 (comment)) it started working ok. |
Just an FYI, I am still seeing this after pulling the latest from master today (29c9b2e) |
Does it still happen when you disable all plugins? Including the ones that are included in core like markdown mentions etc? |
@barisusakli Yes, it does. |
@pichalite Is your site public? Post a link so we can take a look. |
I noticed if I disable my browser cache in chrome I always get the |
Same problem as #3167 |
I can confirm @barisusakli 's findings. It does not occur when the dev console is closed (and thus caching is enabled). It only happens when the dev console is open and the "disable cache option" is selected. |
@lots0logs @pichalite Can you please update to 2d70733, run |
@pichalite, @lots0logs did you guys try with the above changes? |
@barisusakli I did not run into this issue on latest master. |
@barisusakli I will check it now and let you know... |
@barisusakli The issue is the same for me on the latest master. The first load showed an error, then I refereshed the page which also resulted in a script error though not the same as the prior attempt. I refreshed once more and the site loaded without any script errors. Very weird 😕 |
Did you clear browser cache? Post your site link so we can take a look as well. |
Yeah, but Chrome has been acting weird when it comes to caching for the last few months. It wouldnt be the first time I cleared the cache and Chrome decided it would hang onto some of the files 😒 Check it out and let me know what you get: http://forum.antergos.com/ |
On doing "Empty Cache and Hard Reload" (right click refresh button; only avail. when DevTools open)
and widgets aren't showing. However: It could be a problem with Chromes "Hard Reload" - whatever it does. Chrome 43.0.2357.65 (64Bit) |
@barisusakli Any update on this issue? Has it been solved on another issue number? Just to add to what @rbeer said, the issue always occurs the first time you access any page on the forum during a browser session. After the first time, the behavior is as @rbeer described. |
Other than 2d70733 there hasn't been any other fixes. What commit hash are you on? Also try switcting to one of the default themes and disabling plugins to rule out those. |
I am seeing these JS errors on 0.7.1. |
I've just installed latest of 0.7.x branch and error seems to be gone. I'm just seeing warnings like:
but that's unrelated to this issue. |
Only happens on chrome. works fine on safari and firefox on mac.
Happens the first time you visit the site. Reload the page and you don't see the errors again.
The text was updated successfully, but these errors were encountered: