By Skyla Services on Wednesday, 01 March 2017
Posted in Technical Issues
Replies 4
Likes 0
Views 195
Votes 0
Hi EasyBlog's Genius Team

I hope you can help us with this issue.

We've upgraded EasyBlog on two(2) of our sites from version 5.0.42 to 5.0.44 and noticed the same issue happening, the in-post pictures appear twice on the Listings page. After a couple hours of testing and trying to figure it out, we've narrowed it to the Automated Truncation function causing it.

Basically, since the upgrade the in-post image (it does not happen to the cover image or galleries) gets duplicated on the Listings page if the amount of text within the post is less than the "Maximum length of blog content to be truncated as introtext" is set too under Settings/Layout/Truncation/Automated Truncation (Normal Post) - all of our sites use WYSIWYG editor.

Please see attached screenshot-1.png, which shows the same post on the Listings page and inside the post itself proving there is only one image as part of the post.


We've also noticed that those posts with fewer characters than "Maximum length..." is set to retain the HTML but the one with more characters than the "Maximum length..." does not retain the HTML.

Please see screenshot-2.png, which shows two(2) similarly formatted post (i.e. includes bullet point list to display the names). The post on the left has 267 char. total and the post on the right only has 216 total with the Max Length set to 250.


At this point, we assume these issues are related to the version 5.0.43 change > "Automatic truncation will now retain most of the original format of the blog content.".


Please help, I've mitigated the impact on those two sites for now but would love a fix as soon as possible. If there are other recommendations I would be happy to test them out;

Thanks in advance!

- Jen G.
Hi Jen,
the in-post pictures appear twice on the Listings page.
I am able to replicate this issue locally. I have attached a temporary fixed file below. Apply it into the following directory and see how it goes. Remember to backup the original file. I will also log this issue in our tracker.
JoomlaFolder\administrator\components\com_easyblog\includes\truncater\truncater.php
If the issue persists, I would need backend and ftp access to the site to troubleshoot this further.
We've also noticed that those posts with fewer characters than "Maximum length..." is set to retain the HTML but the one with more characters than the "Maximum length..." does not retain the HTML.
There is a bug here as well which will be addressed in EasyBlog 5.1.
The intended behavior for truncation regardless of content length is this:
-Truncation by characters/words: strip all tags in the listings page.
-truncation by paragraph/break tags; do not strip tags in the listing page.

Until EasyBlog 5.1 rolls out, you can try using the truncation by paragraph as it will retain the html formatting in the listings page. If you do not want to retain the html format in the listings page, you can use the 'readmore' tag in your content so that the truncator settings are ignored.
·
Wednesday, 01 March 2017 15:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Raymond,

Thank you very much for your quick response

Good news the file you've provided has fixed the issue for the duplicated image on the Listings page. YAY!

Also, that's good to know regarding the 5.1 update and the HTML code. Which should stay if you choose to truncate by paragraph/break tags and not show if truncated by characters/words, and that the practical "readmore" tag can be used to ignore the truncation setting. I'll keep that in mind when educating our clients on how to manage the blog once version 5.1 comes out - do we have an ETA?.


I've also noticed another possible issue regarding truncation, or should I say a function that used to work but does not anymore even though the setting is still there. I am talking about the Featured Slider. There is a setting to set the "Maximum Content (Characters)" specifically for the Featured Slider which you could set a different amount for the slider than the general truncation for the Listing page.

While troubleshooting I've noticed that field "Maximum Content (Characters)", under Settings/Layout/Listings/Featured, does not seem to work anymore.

Please see screenshot-3.png, you can see the "Maximum length of blog content to be truncated as introtext" under the Automated Truncation (Normal Posts) is set to 250 char and the "Maximum Content (Characters)" under the Feature Slider is set to 100 but when looking at the result the slider shows 250 char instead of the 100 char.

With that said, that last issue is less of a worry for us and simply wanted to inform you in case you were not already aware.


Thanks again for your help, it's greatly appreciated!
·
Wednesday, 01 March 2017 22:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Jen,
Regarding EB 5.1, we do not have an ETA yet as it's still under development.
For the "Maximum Content (Characters)" setting in the featured slider, someone else already reported this. From the investigation that we did, it seems the behavior is this: The max content(characters) setting under the listings is actually responsible to display a part of the truncation from the layout page. In other words, the setting should be respected if the amount is less than that on the regular truncation setting.
However, it seems the behavior on your site is the opposite. I'm not able to replicate this locally as well. In order to investigate this, we would need your backend and ftp access of the site experiencing this.
·
Thursday, 02 March 2017 10:42
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post