UPDATES EasyBlog 6.0.14 Released! Joomla 5.x and PHP 8.x compatible now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is offline
Our team is away during the weekend. Some answers may already be available on our documentation

Rest assured that we will get back to your posts as soon as the week starts!
  Support is offline

Easy Social 2.1.2 javascript error in Wireframe Template

Scott A Collier · ·
12:24 AM Sunday, 29 October 2017
Normal
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.
The replies under this section are restricted to logged in users or users with an active subscription with us