I am making a site that is a mock forum where the user clicks on a forum topic, goes to a unique .ejs page with forums, and then goes to another unique .ejs page where the forum is, where both pages are altered based on what the user fills into a Form on the previous page. The first step worked, but I keep getting either a TypeError "can't read property name of null" or a reference error (depending on what object info I type into the .ejs page) when I end up clicking on a link that would go from the "forum topic" page to the "forum". Data is being added to the database and I created corresponding object/variable schemas that are linked to each other and the main app so I'm not sure what the issue is.I'm using this with express and mongodb/mongoose, the page that's getting the type error is a .ejs page. I'm assuming the main issue is in one of the routing blocks in the main app document. What is the deal with nested schemas and pages for those who are more experienced with this? I can provide code if need beThanks!
Submitted October 16, 2019 at 12:43AM by thesanemansflying
No comments:
Post a Comment