Purge Category Issue - 502 Bad Gateway
-
Purging a category caused the following error. Categories list no lonnger loads.
Now the log shows this error.
system details
NodeBB - v1.0.3
Ubuntu 14.04.04 LTS
Nginix5/5 13:50 [2606] - error: TypeError: Cannot read property 'children' of undefined
at Object.helpers.generateChildrenCategories (/var/www/nodebb/public/src/modules/helpers.js:107:11)
at callMethod (/var/www/nodebb/node_modules/templates.js/lib/templates.js:279:17)
at parseFunctions (/var/www/nodebb/node_modules/templates.js/lib/templates.js:303:55)
at parseArrayBlock (/var/www/nodebb/node_modules/templates.js/lib/templates.js:380:14)
at parseArray (/var/www/nodebb/node_modules/templates.js/lib/templates.js:346:13)
at parse (/var/www/nodebb/node_modules/templates.js/lib/templates.js:416:16)
at parseTemplate (/var/www/nodebb/node_modules/templates.js/lib/templates.js:133:14)
at Object.templates.parse (/var/www/nodebb/node_modules/templates.js/lib/templates.js:119:11)
at /var/www/nodebb/node_modules/templates.js/lib/templates.js:169:30
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3)
TypeError: Cannot read property 'children' of undefined
at Object.helpers.generateChildrenCategories (/var/www/nodebb/public/src/modules/helpers.js:107:11)
at callMethod (/var/www/nodebb/node_modules/templates.js/lib/templates.js:279:17)
at parseFunctions (/var/www/nodebb/node_modules/templates.js/lib/templates.js:303:55)
at parseArrayBlock (/var/www/nodebb/node_modules/templates.js/lib/templates.js:380:14)
at parseArray (/var/www/nodebb/node_modules/templates.js/lib/templates.js:346:13)
at parse (/var/www/nodebb/node_modules/templates.js/lib/templates.js:416:16)
at parseTemplate (/var/www/nodebb/node_modules/templates.js/lib/templates.js:133:14)
at Object.templates.parse (/var/www/nodebb/node_modules/templates.js/lib/templates.js:119:11)
at /var/www/nodebb/node_modules/templates.js/lib/templates.js:169:30
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3)
5/5 13:50 [2606] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
5/5 13:50 [2606] - info: [app] Database connection closed.
5/5 13:50 [2606] - info: [app] Web server closed to connections.
5/5 13:50 [2606] - info: [app] Shutdown complete.
[cluster] Child Process (2606) has exited (code: 1, signal: null)
[cluster] Spinning up another process... -
Thanks! The upgrade from master fixed the issue.
Sorry could not capture the error logs. But the issue was caused upon adding a new child category it showed duplicate child categories and upon deleting the duplicates it caused the issue. Hope this helps.
-
After the upgrade now we have 2 zombie categories. Anyway to remove that?
These are not shown in admin only in categories list.
thanks
-
Sorry. I don't have specific reproduction steps . No it does not happen after the master upgrade. Now i am facing another issue part from the zombie categories. If i create new category and inherit from existing category it does not show in front end and shows only in the admin categories list.
-
It is not a public forum.
-
I updated to master and made the most recent pulls.
I also have 2 empty ghost categories