By Jody Dundas on Wednesday, 17 April 2019
Posted in Technical Issues
Replies 1
Likes 0
Views 603
Votes 0
I've discovered a bug where the Meta description isn't being used for the twitter:description meta. This appears in the latest version and back to at least 5.2.10.

In administrator/components/com_easyblog/includes/twitter/twitter.php, line 69:


// Retrieve the stored meta for the blog post
$meta = $blog->loadMeta();

// If there's a meta set for the blog, use the stored meta version
$description = !empty($meta->description) ? $meta->description : $blog->getIntro();


EasyBlogPost->loadMeta() doesn't return the meta, but sets it to the instance's meta property. that condition in the ternary will always fail as $meta is null.

A simple change, much like in administrator/components/com_easyblog/includes/facebook/facebook.php:


// Retrieve the stored meta for the blog post
$meta = $blog->loadMeta();

// If there's a meta set for the blog, use the stored meta version
$description = !empty($blog->description) ? $blog->description : $blog->getIntro();
Hello Jody,

Thanks for reporting this bug and I can confirm that there is an issue with the way our Twitter's method is retrieving the data incorrectly and I do think the Facebook method isn't correct too because you don't really need to run "loadMeta" any longer.

I have logged this issue into our issue tracker and we'll apply a proper fix for this in the next release

Thanks again for reporting this!
·
Thursday, 18 April 2019 00:38
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post