@PitaJ said in welcome page error:
Please ensure the URL value in config.json matches exactly the URL at which you access your site.
thanks, that solved the issue.
Hi. After enabling clustering on my forum, I now seem to have some custom pages that fail to render with the below error
Error: Failed to lookup view "policies" in views directory "/home/sudonix/nodebb/build/public/templates"
at Function.render (/home/sudonix/nodebb/node_modules/express/lib/application.js:597:17)
at ServerResponse.render (/home/sudonix/nodebb/node_modules/express/lib/response.js:1039:7)
at /home/sudonix/nodebb/src/middleware/render.js:107:11
at new Promise (<anonymous>)
at renderContent (/home/sudonix/nodebb/src/middleware/render.js:106:10)
at renderMethod (/home/sudonix/nodebb/src/middleware/render.js:75:15)
at async ServerResponse.renderOverride [as render] (/home/sudonix/nodebb/src/middleware/render.js:96:5)
Any ideas ?
Hmm, trying restarting your nodebb, that plugin saves the tpl files into the template folder at startup of your nodebb. https://github.com/NodeBB-Community/nodebb-plugin-custom-pages/blob/ad96ea7da00d1247d2ba45363efa3bba0850bfdc/library.js#L171.
Hmm, trying restarting your nodebb, that plugin saves the tpl files into the template folder at startup of your nodebb. https://github.com/NodeBB-Community/nodebb-plugin-custom-pages/blob/ad96ea7da00d1247d2ba45363efa3bba0850bfdc/library.js#L171.
@baris yeah, that seems to resolve it. Thanks. I did try a rebuild and restart earlier, but that didn't seem to do much. Incidentally, some of the pages did load after a refresh, but not all of them.
Restarting seems to have fixed that, but my concern is that this may happen randomly and I won't necessarily see it.