TypeError: /home/obdir52/web/soc52.ru/public_html/src/views/index.ejs:205
203|
204| <% if(contentType != 'newsMain' && contentType != 'newsFullText' && contentType != 'anticorrAndStatement' && contentType != 'quality' && contentType != 'sitemap' && contentType != 'reestr' && contentType != 'ipr' && contentType != 'computer' && contentType != 'gosuslugi' && contentType != 'taxi' && contentType != 'contests' && contentType != 'ras' && contentType != 'searchResult' && contentType != 'searchItem' && contentType != 'appoint' && contentType != 'support-platform') { %>
>> 205| <%- include("content.ejs") %>
206| <%}%>
207|
208| <% if(contentType == 'searchResult') {%>
/home/obdir52/web/soc52.ru/public_html/src/views/content.ejs:90
88| <% } %>
89|
>> 90| <%
91| content.forEach(element => {
92|
93| if(element.fulltext == '' || contentType == 'news' || contentType == 'publications'){
Cannot read property 'forEach' of undefined
at eval (/home/obdir52/web/soc52.ru/public_html/src/views/content.ejs:116:13)
at content (/home/obdir52/web/soc52.ru/public_html/node_modules/ejs/lib/ejs.js:691:17)
at include (/home/obdir52/web/soc52.ru/public_html/node_modules/ejs/lib/ejs.js:689:39)
at eval (/home/obdir52/web/soc52.ru/public_html/src/views/index.ejs:74:17)
at index (/home/obdir52/web/soc52.ru/public_html/node_modules/ejs/lib/ejs.js:691:17)
at tryHandleCache (/home/obdir52/web/soc52.ru/public_html/node_modules/ejs/lib/ejs.js:272:36)
at View.exports.renderFile [as engine] (/home/obdir52/web/soc52.ru/public_html/node_modules/ejs/lib/ejs.js:489:10)
at View.render (/home/obdir52/web/soc52.ru/public_html/node_modules/express/lib/view.js:135:8)
at tryRender (/home/obdir52/web/soc52.ru/public_html/node_modules/express/lib/application.js:640:10)
at Function.render (/home/obdir52/web/soc52.ru/public_html/node_modules/express/lib/application.js:592:3)