The themes are mixed - Now Nodebb don't work - Help Me.

Technical Support
  • Hi guys.
    I've installed Nodebb 0.7.0 .
    I have a very strange problem.
    Do not ever happened to me a thing.
    The themes are mixed together.
    How is it possible?
    Lavender Actived is mixed to Persona.
    http://i.gyazo.com/fbf28d2325a968fa7db2a78a68dfc363.png
    If i active Persona, is mixed with NodeBB Vanilla.
    http://i.gyazo.com/fa1e62082c83e22267dd12986d416b88.png

    WTF ?

    I'm returned to 0.6.1 .

  • Clear your browser cache.

  • Yeah, this is definitely an issue that needs fixing. I'm sure they'll fix it before release though.

    Clearing cache of course works, but it's completely unrealistic to expect users to do this. (I had to look up a tutorial just to figure out how to clear cache in chrome. 😡 friggin' hate chrome.)

  • @hek Yes i know, but it does not solve anything.
    With each refresh must clear the cache.

  • Have you restarted your NodeBB after changing themes? To my knowledge, this is still required

  • @julian said:

    Have you restarted your NodeBB after changing themes? To my knowledge, this is still required

    Yes.
    So i returned to version 0.6.1
    Help me here please.
    https://community.nodebb.org/topic/4389/same-plugin-don-t-work-also-emojii/2

  • If you've downgraded back to v0.6.1, please reinstall the dependencies:

    $ rm -rf node_modules/
    $ npm i --production
    $ ./nodebb setup
    
  • I thought you couldn't drop back major versions? Especially 0.7.x to 0.6.x.

  • I am running into this mixed theme issue on my forums. I have restarted them via the admin UI after changing the theme. It works fine when you navigate to https://www.thesaltypotatoes.com, but if you click the top left icon to navigate back to home, it looks like another theme (the Lavender theme maybe?) hops in partially. It can also be seen when going into topics. A refresh of the page fixes it, but it is not ideal for most users.

    EDIT: It looks like the easiest way to reproduce this is to change the theme. Any user that has the old theme cached on their system will run into this issue.

  • @a_5mith You're right, you can't downgrade.

  • Yep, I had the same problem. I had to uninstall all but the main theme I was using otherwise It kept colliding with the chosen theme. The main issue was the main container was being switched to container-fluid by some javascript that was loaded by an unused theme.

  • I don't see this happening when switching from Lavender to Vanilla and back... under what themes does this switching bug out?

  • I'm using persona and i had lavender, vanilla, and a few of the other non-stock themes installed. I did a grep for "container-fluid" in the javascript of all the theme folders and found that some of them have code to change container to container-fluid (which is what my issue was) so I simply deleted them figuring their code was being included somehow and it immediately fixed the issue.

  • @KingCat said:

    I'm using persona and i had lavender, vanilla, and a few of the other non-stock themes installed. I did a grep for "container-fluid" in the javascript of all the theme folders and found that some of them have code to change container to container-fluid (which is what my issue was) so I simply deleted them figuring their code was being included somehow and it immediately fixed the issue.

    Could you describe in more detail how you did it?

    This bug brings a lot of inconvenience.
    It is strange that it has not yet been resolved.

    20141204163009.jpg

  • @XenTerSeO All I did was look at which themes were installed, if they weren't the active one, I deleted them. By deleting I mean I did an npm uninstall nodebb-theme-lavender, etc after disabling them in the ACP.

  • @KingCat said:

    @XenTerSeO All I did was look at which themes were installed, if they weren't the active one, I deleted them. By deleting I mean I did an npm uninstall nodebb-theme-lavender, etc after disabling them in the ACP.

    Unfortunately it does not help the change already established template.
    Whenever you add or change the code installed themes have to clear the cache.

    Have to wait for the official fix.

  • @XenTerSeO said:

    @KingCat said:

    @XenTerSeO All I did was look at which themes were installed, if they weren't the active one, I deleted them. By deleting I mean I did an npm uninstall nodebb-theme-lavender, etc after disabling them in the ACP.

    Unfortunately it does not help the change already established template.
    Whenever you add or change the code installed themes have to clear the cache.

    Have to wait for the official fix.

    I'm not exactly sure what you're saying here but whenever you restart nodebb it should re-generate all the css and javascript used. Removing those themes and then doing a restart should take care of the issue.

    If you're having the exact same issue as me with the container being turned into container-fluid I can help with that, just let me know.

  • @KingCat

    I try to explain step by step:

    Installed two themes:
    nodebb-theme-persona
    nodebb-theme-vanilla

    I use persona.
    Remove vanilla leads to errors. Probably, they are connected with each other.

    • I want to edit the theme (add or remove any items)
    • I turn to the folder: /www/node_modules/nodebb-theme-persona
    • Change necessary elements to me. For example, delete button "reply"
    • Then reboot the forum.
      As a result - If you go to any topic, the button 'reply' it will be in place, even though we have removed it.
      ...but worth to refresh the page - the button is removed.

    Something like

    I am running into this mixed theme issue on my forums. I have restarted them via the admin UI after changing the theme. It works fine when you navigate to https://www.thesaltypotatoes.com, but if you click the top left icon to navigate back to home, it looks like another theme (the Lavender theme maybe?) hops in partially. It can also be seen when going into topics. A refresh of the page fixes it, but it is not ideal for most users.

    The only solution would be - clear your browser cache. But I can not make everyone force users to clear the cache when any change.

    😏

  • @XenTerSeO First, I believe you are correct, vanilla may be required for persona, I didn't delete that one.

    Second, that issue is only temporary, It should fix itself once you close the browser window and revisit the site. Also hitting shift+refresh will force your browser to re-download all the assets. I'm pretty sure nodebb has it setup to cache the assets on the browser for a day or two.

  • @KingCat said:

    @XenTerSeO First, I believe you are correct, vanilla may be required for persona, I didn't delete that one.

    Second, that issue is only temporary, It should fix itself once you close the browser window and revisit the site. Also hitting shift+refresh will force your browser to re-download all the assets. I'm pretty sure nodebb has it setup to cache the assets on the browser for a day or two.

    The problem remains even after you close your browser, and shift+refresh.
    I have chrome browser.

    I'm pretty sure nodebb has it setup to cache the assets on the browser for a day or two.

    Unfortunately, it also remains uncomfortable, especially if you frequently change the structure of the template.


Suggested Topics


  • 0 Votes
    2 Posts
    196 Views

    Your image didn't finish uploading

  • 0 Votes
    1 Posts
    430 Views

    Happened on the MangoLassi community. Appears to have happened in someone's chat session. The result didn't bring down the forum, but did break some things like quotes and replies and we could no longer find the end of threads. But mostly the forum was intact. A restart fixed everything, and we've never seen this bug before. But didn't want to fail to report it, either.

    We are on NodeBB 1.10.2, all plugins fully up to date (and very few in general), and NodeJS 10.8.0.

    2018-11-02T15:50:41.288Z [14501] - error: /user/donahue/chats/2255 Error: [[error:no-privileges]] at /opt/mangolassi-1.0/src/controllers/accounts/chats.js:34:17 at nextTask (/opt/mangolassi-1.0/node_modules/async/dist/async.js:5324:14) at next (/opt/mangolassi-1.0/node_modules/async/dist/async.js:5331:9) at /opt/mangolassi-1.0/node_modules/async/dist/async.js:969:16 at /opt/mangolassi-1.0/node_modules/async/dist/async.js:2806:17 at /opt/mangolassi-1.0/node_modules/async/dist/async.js:473:16 at iteratorCallback (/opt/mangolassi-1.0/node_modules/async/dist/async.js:1064:13) at /opt/mangolassi-1.0/node_modules/async/dist/async.js:969:16 at Immediate._onImmediate (/opt/mangolassi-1.0/node_modules/async/dist/async.js:2799:21) at runCallback (timers.js:694:11) at tryOnImmediate (timers.js:664:5) at processImmediate (timers.js:646:5)
  • 0 Votes
    3 Posts
    600 Views

    You don't need to put it in public_html. It makes no difference.

  • 0 Votes
    6 Posts
    2k Views

    @jarko Glad to hear it!

  • 0 Votes
    7 Posts
    3k Views

    Managed to fix it

    Did editing of the package.json file
    went to node_modules;
    make installation of 0.3.0 which was offered by npm;
    upgrade button appeared on the db-search plugin;
    made upgrade trough admin panel;
    it worked!

    Thank you for the support!