Skip to content

NodeBB v2.4.0

Solved General
  • Latest v2.4.0 I upgraded today.

    Always expect errors now it is a given…This is latest and do not know why. As always more chance of a reply with Sudonix. 🙂 Basically my custom page stopped working.

    0fda0c2d-cf1b-45f0-80b1-f247edca68ae-image.png

    2022-08-13T06:53:24.550Z [4567/48639] - error: GET /serverinfo
    Error: Failed to lookup view "serverinfo" in views directory "/home/smiley/nodebb/build/public/templates"
        at Function.render (/home/smiley/nodebb/node_modules/express/lib/application.js:597:17)
        at ServerResponse.render (/home/smiley/nodebb/node_modules/express/lib/response.js:1039:7)
        at /home/smiley/nodebb/src/middleware/render.js:107:11
        at new Promise (<anonymous>)
        at renderContent (/home/smiley/nodebb/src/middleware/render.js:106:10)
        at renderMethod (/home/smiley/nodebb/src/middleware/render.js:75:15)
        at runMicrotasks (<anonymous>)
        at processTicksAndRejections (internal/process/task_queues.js:95:5)
        at async ServerResponse.renderOverride [as render] (/home/smiley/nodebb/src/middleware/render.js:96:5)
    2022-08-13T06:54:02.575Z [4567/48639] - error: GET /serverinfo
    Error: Failed to lookup view "serverinfo" in views directory "/home/smiley/nodebb/build/public/templates"
        at Function.render (/home/smiley/nodebb/node_modules/express/lib/application.js:597:17)
        at ServerResponse.render (/home/smiley/nodebb/node_modules/express/lib/response.js:1039:7)
        at /home/smiley/nodebb/src/middleware/render.js:107:11
        at new Promise (<anonymous>)
        at renderContent (/home/smiley/nodebb/src/middleware/render.js:106:10)
        at renderMethod (/home/smiley/nodebb/src/middleware/render.js:75:15)
        at runMicrotasks (<anonymous>)
        at processTicksAndRejections (internal/process/task_queues.js:95:5)
        at async ServerResponse.renderOverride [as render] (/home/smiley/nodebb/src/middleware/render.js:96:5)
    
    
  • @Sampo2910 can you try removing the custom pages extension, rebuild, then reinstall and rebuild again ?

    I’ve had this happen to me before.

  • @phenomlab As always…Thank you.

    Worked for me.

  • phenomlabundefined phenomlab marked this topic as a question on
  • phenomlabundefined phenomlab has marked this topic as solved on

Did this solution help you?
Did you find the suggested solution useful? Why not buy me a coffee? It's a nice gesture, and a great way to show your appreciation 💗

Related Topics
  • TNG + Nodebb

    General
    4
    0 Votes
    4 Posts
    129 Views

    @Madchatthew said in TNG + Nodebb:

    you have to try and use duck tape and super glue to change something to make it do what you want it to do

    I couldn’t have put that better myself.

  • Nodebb design

    Solved General
    2
    1 Votes
    2 Posts
    282 Views

    @Panda said in Nodebb design:

    One negative is not being so good for SEO as more Server side rendered forums, if web crawlers dont run the JS to read the forum.

    From recollection, Google and Bing have the capability to read and process JS, although it’s not in the same manner as a physical person will consume content on a page. It will be seen as plain text, but will be indexed. However, it’s important to note that Yandex and Baidu will not render JS, although seeing as Google has a 90% share of the content available on the web in terms of indexing, this isn’t something you’ll likely lose sleep over.

    @Panda said in Nodebb design:

    The “write api” is preferred for server-to-server interactions.

    This is mostly based around overall security - you won’t typically want a client machine changing database elements or altering data. This is why you have “client-side” which could be DOM manipulation etc, and “server-side” which performs more complex operations as it can communicate directly with the database whereas the client cannot (and if it can, then you have a serious security flaw). Reading from the API is perfectly acceptable on the client-side, but not being able to write.

    A paradigm here would be something like SNMP. This protocol exists as a UDP (UDP is very efficient, as it is “fire and forget” and does not wait for a response like TCP does) based service which reads performance data from a remote source, thus enabling an application to parse that data for use in a monitoring application. In all cases, SNMP access should be “RO” (Read Only) and not RW (Read Write). It is completely feasible to assume complete control over a firewall for example by having RW access to SNMP and then exposing it to the entire internet with a weak passphrase.

    You wouldn’t do it (at least, I hope you wouldn’t) and the same ethic applies to server-side rendering and the execution of commands.

  • 12 Votes
    47 Posts
    3k Views

    @dave1904 just coming back to this thread as @DownPW and I both experienced issues with other plugins today, and the fix was to use the plugin ordering in the ACP and move the Harmony theme to the very top so it comes before everything else in terms of other plugins.

    It might be worth at least trying this to see if it gives you a result rather than the previous bulldozer approach. Thinking about it, the previous fix I proposed is along the same lines and disabling plugins does in fact change the order when they are enabled again, so this is definitely worth a try.

    Let me know how you get on.

  • Fresher in Nodebb install

    General
    24
    15 Votes
    24 Posts
    2k Views

    @Hari I’ve been reading a lot about APO. Looks impressive.

  • Nodebb as blogging platform

    General
    10
    5 Votes
    10 Posts
    1k Views

    @qwinter I’ve extensive experience with Ghost, so let me know if you need any help.

  • Discord Login - OAuth2 - NodeBB

    Solved General
    32
    11 Votes
    32 Posts
    3k Views

    @Galaxian hi, and welcome to Sudonix 👍
    Can you check your config.json file and ensure that your forum URL doesn’t have a trailing backslash or forward slash in it ? This was the issue @Sampo2910 had.

  • Cannot read property 'config' of undefined

    Solved Configure
    1
    0 Votes
    1 Posts
    288 Views
    No one has replied
  • Nodebb best plugins

    General
    18
    7 Votes
    18 Posts
    1k Views

    @phenomlab thanks 🙂