When viewing a page, I am getting the following javascript error:
Uncaught SyntaxError: Unexpected token }
After doing some research, I this is being caused in
components/com_easysocial/themes/wireframe/helpers/user/user.suggest.js. In particular, line 39:
"showMore": <?php echo $showMore; ?>
$showMore seems to be null so the javascript being generated is:
EasySocial.ajax('site/views/friends/suggestList', {
"limit": 10,
"showMore": }).done(function(htmlContent) {
wrapper.replaceWith(htmlContent);
})
which causes the error. I temporarily solved this by changing
<?php echo $showMore; ?> to
<?php echo $showMore ?: true; ?>. But, not sure if this is the best solution.