Admin panel seems completely broken

Technical Support
  • Thank you. I found it in the console -- it was "Mousetrap" which was enabled in public/src/acp.min.js. I had to comment the entire section out. That was breaking everything else. Appreciate your assistance.

    Edit: Also, FWIW, the output.log only shows the tail of the startup log ending with the plugin spam-be-gone being loaded. Nothing ever posts afterward. Now I can proceed with deactivating plugins singularly and hopefully it was something with one of them which was causing output.log to show basically nothing...

  • @elandriel how are you viewing the contents of the file output.log?

    don't think plugins have the ability to mess with logging in output.log

    edits made to public/src/acp.min.js will be gone once you restart NodeBB.

  • I view it directly with vi as well as watching it realtime in ./nodebb log. The only reason I mention that plugin is because it's the last line of output before it stops logging. However that may be because these errors are not significant enough to warrant a log entry...

    It appears my woes continue anyway as there are issues with the dashboard still not recognizing properties.

    dashboard.js?325979c7-71ca-47a0-89a2-1ae2c285e4c3:190 Uncaught ReferenceError: Chart is not defined
    dashboard.js?325979c7-71ca-47a0-89a2-1ae2c285e4c3:333 Uncaught TypeError: Cannot read property 'segments' of null
    dashboard.js?325979c7-71ca-47a0-89a2-1ae2c285e4c3:49 Uncaught TypeError: Cannot read property 'lt' of undefined

    If .js edits disappear upon a reload then I am going to have a bad time. Any thoughts?

    Thanks again.

  • @elandriel there is no acp.min.js in public/src? do you mean public/acp.min.js?

  • @pichalite what do you see when you run cat logs/output.log from the nodebb directory?

  • You can also get more verbose logging using ./nodebb dev instead of ./nodebb start. This way it will start blocking. Useful for debugging.

  • @frissdiegurke Thanks. I will update more later after I have a bit more down time. I appreciate you guys' help.

    @pichalite The only thing that shows up in output log is the startup stuff, and when I installed a database import plugin with the hopes of exporting my database to a usable format in case I need to blow everything up.

    I did mean /public/acp.min.js; my mistake.

  • This is concerning... due to a change I made in how we load third-party assets.

    @elandriel What happens when you go to these urls?

    • /src/modules/mousetrap.js
    • /src/modules/Chart.js

    They should both load javascript files. If not, something went wrong during startup, as those files should have been bridged.

    During startup in dev mode (./nodebb dev) you'll see a line that looks like this:

    19/4 09:48 [8681] - verbose: [meta/js] 3 of 3 modules bridged
    

    That line means the bridging was successful and 2 of those three filese are mousetrap and Chart...

  • @julian Thanks for the reply.

    Looking into it, getting http://forum-url/src/mousetrap.js and /src/modules/Chart.js does load javascript files.

    Also, "19/4 11:29 [5447] - verbose: [meta/js] 3 of 3 modules bridged" -- so you have little to fear there. Odd that they are not integrating with my forum post-upgrade.

    The dev console doesn't show me the kind of javascript errors I'm receiving in my browser console so I'm thinking there's possibly something wrong with my install itself. Perhaps a permissions issue or something. So my next step is a total reinstall and mongo reconnect. Will update further after to advise.

  • A full purge and reinstall cleared the issues out. Thank you all for your assistance and my apologies for taking your time.

    FWIW, I absolutely love this forum and product. Great work.


Suggested Topics


  • 0 Votes
    1 Posts
    435 Views

    I am using Heroku to host a nodeBB instance. When using the heroku supplied subdomain (and setting it in the config.json), everything works fine. I can log in as admin account, use admin GUI, and everything works well.

    When I set up custom domain (.me tld if that matters), configure it in Heroku, config.json, and DNS, I can get to the site, log in, but when I try to go to the admin area, it asks me to sign in. Once I sign in, it brings me back to the homepage (not admin GUI).

    I am using cloudflare for DNS and have tried with no plugins, vanilla install. I am using redis. I have tried both proxying through cloudflare "orange cloud" and not proxying "grey cloud" record.

    Any ideas?

  • Admin Panel Broken

    Technical Support
    0 Votes
    35 Posts
    2k Views

    Probably executed it by mistake... @Kinchtwck how are you starting NodeBB?

  • 0 Votes
    3 Posts
    701 Views

    I have found a work around. There are a few more concerns I have as of now, but they are not major at all. Everything that needs to be working is working 🙂 Thank you for the reply though @PitaJ.

  • 0 Votes
    2 Posts
    583 Views

    Update: It was the custom wigets plugin causing the error.
    Solved.

  • 0 Votes
    5 Posts
    2k Views

    @PitaJ @priapo thanks for the support 🙂 Technical assistance helped me because i dont have access to the apache config.