TypeError: /home/ubuntu/saturn/meaww_ent/authorpage.ejs:245
   243|             <div class="cust-col-lg-7 cust-col-md-7 cust-col-sm-12 cust-col-xs-12">
   244|               <div class="mob-mt10">
>> 245|                 <%
   246|                 let linkPath = profileExists ? '/profile/' + article.profileArr[0].slug : '/' + article.category_slug + '/' + article.section_slug;
   247|                 let linkText = profileExists ? article.profileArr[0].name.toUpperCase() : article.section_name.toUpperCase();
   248|                 %>

Cannot read properties of null (reading 'toUpperCase')
   at eval ("/home/ubuntu/saturn/meaww_ent/authorpage.ejs":217:112)
   at authorpage (/home/ubuntu/saturn/node_modules/ejs/lib/ejs.js:703:17)
   at tryHandleCache (/home/ubuntu/saturn/node_modules/ejs/lib/ejs.js:274:36)
   at exports.renderFile [as engine] (/home/ubuntu/saturn/node_modules/ejs/lib/ejs.js:491:10)
   at View.render (/home/ubuntu/saturn/node_modules/express/lib/view.js:135:8)
   at tryRender (/home/ubuntu/saturn/node_modules/express/lib/application.js:657:10)
   at Function.render (/home/ubuntu/saturn/node_modules/express/lib/application.js:609:3)
   at ServerResponse.render (/home/ubuntu/saturn/node_modules/express/lib/response.js:1039:7)
   at module.exports (/home/ubuntu/saturn/controllers/writerController.js:149:16)
   at process.processTicksAndRejections (node:internal/process/task_queues:95:5)