/home/ubuntu/nanganmall/views/product.ejs:7 5| <!-- prettier-ignore --> 6| <%- include ./main/header.ejs %> >> 7| <%- include ./product/product_body.ejs%> 8| <%- include ./main/footer.ejs %> 9| </body> 10| </html> /home/ubuntu/nanganmall/views/product/product_body.ejs:6 4| > 5| <div class="container is-max-widescreen p-5"> >> 6| <% ct.title = ct.title.replace('_','/') %> 7| <span class="title is-3"><%= ct.title %></span> 8| </div> 9| </div> Cannot read property 'title' of undefined

TypeError: /home/ubuntu/nanganmall/views/product.ejs:7
    5|     <!-- prettier-ignore -->
    6|     <%- include ./main/header.ejs %> 
 >> 7|     <%- include ./product/product_body.ejs%> 
    8|     <%- include ./main/footer.ejs %>
    9|   </body>
    10| </html>

/home/ubuntu/nanganmall/views/product/product_body.ejs:6
    4| >
    5|   <div class="container is-max-widescreen p-5">
 >> 6|     <% ct.title = ct.title.replace('_','/') %>
    7|     <span class="title is-3"><%= ct.title %></span>
    8|   </div>
    9| </div>

Cannot read property 'title' of undefined
    at eval (eval at compile (/home/ubuntu/nanganmall/node_modules/ejs/lib/ejs.js:633:12), <anonymous>:47:22)
    at eval (eval at compile (/home/ubuntu/nanganmall/node_modules/ejs/lib/ejs.js:633:12), <anonymous>:195:10)
    at returnedFn (/home/ubuntu/nanganmall/node_modules/ejs/lib/ejs.js:668:17)
    at tryHandleCache (/home/ubuntu/nanganmall/node_modules/ejs/lib/ejs.js:254:36)
    at View.exports.renderFile [as engine] (/home/ubuntu/nanganmall/node_modules/ejs/lib/ejs.js:485:10)
    at View.render (/home/ubuntu/nanganmall/node_modules/express/lib/view.js:135:8)
    at tryRender (/home/ubuntu/nanganmall/node_modules/express/lib/application.js:640:10)
    at Function.render (/home/ubuntu/nanganmall/node_modules/express/lib/application.js:592:3)
    at ServerResponse.render (/home/ubuntu/nanganmall/node_modules/express/lib/response.js:1008:7)
    at Query.onResult (/home/ubuntu/nanganmall/routes/index.js:64:11)