Cannot read property 'charAt' of undefined wordpress theme : <p>Can anyone please help me in understanding what am i doing wrong here. Downloaded a theme for a client and the whole theme is breaking due to: Cannot read property 'charAt' of undefined.</p>

<p><a href="https://i.stack.imgur.com/3NDvh.png" rel="nofollow noreferrer">screenshot of issue</a>:</p>
