New theme problems



  • I did npm update to see if there were any updates to my plugins. It installed a new vanilla skin but it seems to have problems:
    Screen Shot 2014-05-13 at 9.29.40 PM.png

    EDIT: I did npm update while still on v0.4.2. I then upgraded to v0.4.3. to see if it was a minor version problem but the theme problem persists.



  • Additionally, it's stuck 'Checking for themes'. I guess I shouldn't issue npm update to check for plugin updates? Maybe that stuff is automatic?
    Screen Shot 2014-05-13 at 9.44.26 PM.png



  • @julian It seems to be specific to lavendar.

    I ran:

    $ npm install nodebb-theme-vanilla@latest
    $ npm install nodebb-theme-lavender@latest
    

    And the Vanilla theme now works:

    Screen Shot 2014-05-13 at 10.28.26 PM.png


  • Admin

    Very weird -- on Lavender, what errors do you see in console?



  • @julian No errors that I saw. Just old ones:

    Should I try npm uninstall nodebb-theme-lavendar && npm install nodebb-theme-lavendar?

    EDIT: Did that and nodebb-theme-lavender-0.0.25-16.tgz was installed. Same problem.



  • This post is deleted!


  • This post is deleted!

  • Admin

    What does git status give you?



  • This post is deleted!

  • Admin

    Your lavender is probably the right version, but vanilla should be 0.0.19-53.



  • This post is deleted!


  • @julian I think I've tracked down the problem. I completely restored the nodebb directory as of Tuesday using a backup, and the page renders fine. I think I was unable to upgrade properly before, and probably missed this error:

    git pull
    Updating 8839780..e2312c8
    error: Untracked working tree file 'docs/modules/index.rst' would be overwritten by merge.  Aborting
    
    git status
    # On branch master
    # Your branch is behind 'origin/master' by 86 commits, and can be fast-forwarded.
    #
    # Changed but not updated:
    #   (use "git add <file>..." to update what will be committed)
    #   (use "git checkout -- <file>..." to discard changes in working directory)
    #
    #	modified:   public/vendor/jquery/timeago/locales/jquery.timeago.uz.js
    #
    # Untracked files:
    #   (use "git add <file>..." to include in what will be committed)
    #
    #	docs/modules/
    #	npm-shrinkwrap.json
    #	socket.log
    #	src/user/auth.js
    no changes added to commit (use "git add" and/or "git commit -a")
    

    After which I blindly ran npm update and it may have pulled some incompatible packages. Thus, if we can fix the git pull error then I can pull the latest code and safely run ./nodebb upgrade, right?


  • Global Moderator

    @Guiri

    git stash
    git pull
    

    Should do it.


  • Admin

    @Guiri said:

    error: Untracked working tree file 'docs/modules/index.rst' would be overwritten by merge. Aborting

    The more pertinent question is why were you editing the docs in the first place :)



  • @julian I had no idea that I did. I think somehow I must have got on master around v0.4.2, which is my current nodebb version:

    git branch
      list
    * master
    

    @a_5mith Thanks. I tried your suggestion.

    git stash
    No local changes to save
    
    git checkout v0.4.x
    error: Untracked working tree file 'docs/modules/index.rst' would be overwritten by merge.
    

    Thus I didn't yet do:

    git pull
    ./nodebb upgrade
    ./nodebb restart
    

  • Admin

    @Guiri said:

    error: Untracked working tree file 'docs/modules/index.rst' would be overwritten by merge.

    Ah, wait -- this comes up if you downgrade...

    What if... git reset --hard origin/v0.4.x?



  • git reset --hard origin/v0.4.x
    HEAD is now at 7e1a072 fixed 1 more
    

  • Admin

    Okay, now...

    $ ./nodebb upgrade
    $ ./nodebb start
    

    ?



  • I no longer get the lavender error! But it still skips the widget migration, which may be what's messing up the theme.

    ./nodebb upgrade
    npm WARN package.json express-namespace@0.1.1 No repository field.
    npm WARN package.json nodebb-plugin-dbsearch@0.0.9 No repository field.
    npm WARN package.json nodebb-plugin-imgur@0.0.14 No repository field.
    npm WARN package.json nodebb-plugin-rss@0.1.8 No repository field.
    npm WARN package.json reds@0.2.4 No repository field.
    npm WARN package.json express-namespace@0.1.1 No repository field.
    npm WARN package.json nodebb-plugin-dbsearch@0.0.9 No repository field.
    npm WARN package.json nodebb-plugin-imgur@0.0.14 No repository field.
    npm WARN package.json nodebb-plugin-rss@0.1.8 No repository field.
    npm WARN package.json reds@0.2.4 No repository field.
    info trying registry request attempt 1 at 22:35:28
    http GET https://registry.npmjs.org/nodebb-theme-vanilla
    info trying registry request attempt 1 at 22:35:28
    http GET https://registry.npmjs.org/nodebb-theme-lavender
    http 304 https://registry.npmjs.org/nodebb-theme-vanilla
    http 304 https://registry.npmjs.org/nodebb-theme-lavender
    nodebb-theme-lavender@0.0.25-16 node_modules/nodebb-theme-lavender
    
    nodebb-theme-vanilla@0.0.19-53 node_modules/nodebb-theme-vanilla
    info: NodeBB v0.4.3 Copyright (C) 2013-2014 DesignCreatePlay Inc.
    info: This program comes with ABSOLUTELY NO WARRANTY.
    info: This is free software, and you are welcome to redistribute it under certain conditions.
    info: 
    info: Beginning database schema update
    info: [2014/2/19] Updating MOTD to use the HTML widget - skipped
    info: [2014/2/20] Adding Recent Replies, Active Users, and Moderator widgets to category sidebar - skipped
    info: [2014/2/20] Adding Forum Stats Widget to the Homepage Footer - skipped
    info: [2014/2/20] Updating Lavender MOTD - skipped
    info: [2014/2/20] Activating NodeBB Essential Widgets - skipped
    info: [2014/2/22] Added categories to sorted set - skipped
    info: [2014/3/18] Migrating Markdown settings to new configuration - skipped
    info: [2014/3/21] Removing gids and pruning groups - skipped
    info: [2014/3/31] Re-adding copyright message into global footer widget - skipped
    info: [2014/4/1] Moved home sidebar widgets into draft zone - skipped
    info: [2014/4/2] Moved deprecated vanilla footer widgets into draft zone - skipped
    info: [upgrade] Schema already up to date!
    
    NodeBB Dependencies up-to-date!
    

  • Admin

    ./nodebb reset widgets?


Log in to reply
 


Looks like your connection to NodeBB was lost, please wait while we try to reconnect.