Hello!
I am trying to add a custom tags page to Ghost blog using this instruction: https://blog.many-monkeys.com/adding-a-tags-page-to-ghost-blog/
After adding page-tags.hbs, tag-card.hbs and restarting Ghost I’ve got only message in browser:
# Oops, seems there is an error in the error template.
Encountered the error:
[error.hbs] Missing helper: "foreach"
whilst trying to render an error page for the error:
undefined
[error.hbs] Missing helper: "foreach"
-
What’s your URL?
https://vmadm.in/ -
What version of Ghost are you using?
Ghost-CLI version: 1.14.1
Ghost version: 3.38.3 -
How was Ghost installed and configured?
Installed via docker on Ubuntu 18.04. -
What Node version, database, OS & browser are you using?
Node.js v12.19.1, Embedded in Docker image, Windows 10, Chrome 87.0.4280.66 -
What errors or information do you see in the console?
[2020-11-25 09:03:36] ERROR
NAME: ThemeValidationError
MESSAGE: The currently active theme "Alto-master" is invalid.
level: normal
ERROR DETAILS:
{"checkedVersion":"3.x","name":"alto","path":"/var/www/ghost/content/themes/Alto-master","version":"1.0.0","errors":[{"fatal":true,"level":"error","rule":"Templates must contain valid Handlebars","details":"Oops! You seemed to have used invalid Handlebars syntax. This mostly happens, when you use a helper that is not supported.<br>See the full list of available helpers <a href=\"https://ghost.org/docs/api/handlebars-themes/\" target=_blank>here</a>.","failures":[{"ref":"page-tags.hbs","message":"The partial site-nav could not be found"}],"code":"GS005-TPL-ERR"}]}
ThemeValidationError: The currently active theme "Alto-master" is invalid.
at ThemeValidationError.GhostError (/var/www/ghost/versions/3.38.3/node_modules/@tryghost/errors/lib/errors.js:10:26)
at new ThemeValidationError (/var/www/ghost/versions/3.38.3/node_modules/@tryghost/errors/lib/errors.js:40:20)
at validationSuccess (/var/www/ghost/versions/3.38.3/core/frontend/services/themes/index.js:39:48)
- What steps could someone else take to reproduce the issue you're having?
[2020-11-25 09:03:37] INFO Ghost is running in production...
[2020-11-25 09:03:37] INFO Your site is now available on https://vmadm.in/
[2020-11-25 09:03:37] INFO Ctrl+C to shut down
[2020-11-25 09:03:37] INFO Ghost boot 3.934s
[2020-11-25 09:03:37] INFO Bootstrap client was closed.
[2020-11-25 09:03:39] ERROR "GET /" 500 32ms
MESSAGE: [error.hbs] Missing helper: "foreach"
Error: [error.hbs] Missing helper: "foreach"
at Object.<anonymous> (/var/www/ghost/versions/3.38.3/node_modules/handlebars/dist/cjs/handlebars/helpers/helper-missing.js:19:13)
at Object.wrapper (/var/www/ghost/versions/3.38.3/node_modules/handlebars/dist/cjs/handlebars/internal/wrapHelper.js:15:19)
at eval (eval at createFunctionContext (/var/www/ghost/versions/3.38.3/node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js:262:23), <anonymous>:9:131)
at Object.prog [as fn] (/var/www/ghost/versions/3.38.3/node_modules/handlebars/dist/cjs/handlebars/runtime.js:268:12)
at Object.<anonymous> (/var/www/ghost/versions/3.38.3/node_modules/handlebars/dist/cjs/handlebars/helpers/if.js:29:22)
at Object.wrapper (/var/www/ghost/versions/3.38.3/node_modules/handlebars/dist/cjs/handlebars/internal/wrapHelper.js:15:19)
at Object.eval [as main] (eval at createFunctionContext (/var/www/ghost/versions/3.38.3/node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js:262:23), <anonymous>:21:47)
at main (/var/www/ghost/versions/3.38.3/node_modules/handlebars/dist/cjs/handlebars/runtime.js:208:32)
at ret (/var/www/ghost/versions/3.38.3/node_modules/handlebars/dist/cjs/handlebars/runtime.js:212:12)
at ret (/var/www/ghost/versions/3.38.3/node_modules/handlebars/dist/cjs/handlebars/compiler/compiler.js:519:21)
at renderTemplate (/var/www/ghost/versions/3.38.3/node_modules/express-hbs/lib/hbs.js:490:13)
at render (/var/www/ghost/versions/3.38.3/node_modules/express-hbs/lib/hbs.js:526:5)
at renderIt (/var/www/ghost/versions/3.38.3/node_modules/express-hbs/lib/hbs.js:588:18)
at /var/www/ghost/versions/3.38.3/node_modules/express-hbs/lib/hbs.js:611:11
at parseLayout (/var/www/ghost/versions/3.38.3/node_modules/express-hbs/lib/hbs.js:471:7)
at /var/www/ghost/versions/3.38.3/node_modules/express-hbs/lib/hbs.js:577:7
How can I fix this issue ? Thanks!