Hi guys, I’m new to discourse.
I’m getting an error but I couldn’t find the reason. Could you help me with this?
I refresh the page and it gives the error I shared below in the chrome console. What should I do?
User Alshain reports a “TypeError: r is not iterable” error occurring upon page refresh, visible in Chrome’s console, and seeks help. darkpixlz notes the error originates in “opcode-compiler” and asks about installed plugins. sam suggests testing in safe mode. pmusaraj shares having encountered the same issue locally, suspecting a corrupt build cache — resolved during git bisect — and recommends rebuilding the site in production. Alshain confirms the issue disappeared in safe mode and only occurred with the Discourse-Air theme; removing its default plugins resolved the problem, though the specific culprit plugin wasn’t identified. The consensus leans toward cache or theme/plugin conflicts, with rebuilding the site or testing in safe mode as key troubleshooting steps.
Hi guys, I’m new to discourse.
I’m getting an error but I couldn’t find the reason. Could you help me with this?
I refresh the page and it gives the error I shared below in the chrome console. What should I do?
Hm, this is in “opcode-compiler”. What plugins do you have installed?
Can you test in safe mode as well? Does it work?
I have seen this same error locally, and I thought it was a regression but while I was trying to determine when this would have regressed (via git bisect) it magically got solved. I believe it was because there was a corrupt build cache that got reset while bisecting.
In a production environment, you can try rebuilding your site, there is a good chance that it will resolve the issue.
Thanks for the safe-mode feature
I didn’t know that.
There was no problem in the default theme, after switching to the Discourse-Air theme, I found that the problem was there.
After removing the default plugins in the Discourse-Air theme, my problem was resolved. But which plugin etc. I haven’t been able to check.