By Pierre McCarragher on Saturday, 18 February 2017
Posted in Technical Issues
Likes 0
Views 223
Votes 0
Hello,
When easy blog post to Jomsocial in the Wall, It adds an extra </p> at the end of the post in the Stream.
What file post to the jomsocial Stream and how can I fix it.

Thanks
Pierre
Hello Pierre,

I do not think the issue is related to the theme file as all EasyBlog does is to push the content into the stream. I believe the issue is in the blog post's html itself. Are you using a WYSIWYG editor for EasyBlog? Try editing the source using the editor and see if there are unclosed tags.
·
Sunday, 19 February 2017 01:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

Thanks for the reply. When I look at the blog post in the website, it does not have any w3c error. But in the Wall yes.
Thanks
Pierre
·
Monday, 20 February 2017 00:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Pierre,

Can you give us the link to the stream item that consist </p> in the end and the blog post link here, so we have a better check on this
·
Monday, 20 February 2017 14:04
·
0 Likes
·
0 Votes
·
0 Comments
·
·
Monday, 20 February 2017 20:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Any post from the rss feed import does this.
·
Monday, 20 February 2017 20:08
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Pierre,

I've view one of the stream item that posted from EasyBlog rss feed, seems like there is no extra </p> code in the stream
https://www.screencast.com/t/4iU8KNLv
Perhaps I've misunderstand your issue here, can you elaborate more on this?
·
Tuesday, 21 February 2017 13:07
·
0 Likes
·
0 Votes
·
0 Comments
·
When I test my website for w3c validation. I get errors like this one

https://validator.w3.org/nu/?doc=http%3A%2F%2Fwww.hl7community.org%2F
Error: No p element in scope but a p end tag seen.
From line 6, column 10363; to line 6, column 10366
div></div></p></div>

This error can be trace to easyblog posting on jomsocial Wall. ( Source Jomsocial Support)

In easyblog Menu-Feed Importer I have setup some feeds to import. IE Google news

Every time the cron Import some news , it post it to jomsocial. This is good

When we look at the jomsocial wall, for every esayblog post, the is an extra </p>

I do not get this from any other wall post in jomsocial.

I have over 3000 wall post from easyblog that have the same issue.

So somewhere in easyblog, when it post to jomsocial wall, it adds an extra </p>

I would like to fix this and know how you fix it. What file was change.


Thanks
Pierre
·
Thursday, 23 February 2017 06:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Pierre,

Thanks for the explanation
While troubleshoot this issue, I'm no longer can access you backend as it keep redirect me to your web homepage
As far as I inspected that all the <p> tag has the closing </p> tag in each of easyblog stream post https://www.screencast.com/t/Sc0JyJCrAdD
For further checking on this, can you advise about the backend redirection and can you provide us with your phpMyadmin so we have a better view on this.

You can add the information needed by edit your first post in the Details section or you can just include your site's access once at http://stackideas.com/dashboard/site rather than needing to keep adding them in your replies
·
Thursday, 23 February 2017 18:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi, Sorry about that its my firewall. I have been under attack.

What is you ip address or addresses so i can whitelist them.


Thanks
Pierre
·
Monday, 27 February 2017 12:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

This is our current IP: 175.139.131.200
·
Monday, 27 February 2017 16:33
·
0 Likes
·
0 Votes
·
0 Comments
·
hello,

can you try it now?
·
Monday, 27 February 2017 18:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Pierre McCarragher,

Thanks for that, I can access the backend now
After a long way of troubleshoot on this issue, it seems like the main issue is not there is extra <p> tag in the html, but :

That's because there have nested blocks element inside the p tag which is invalid. Inside p tag, it only can nest inline elements such as span, a and img. So the markup is invalid


And seems like the invalid markup is come from Jomsocial in the file:
/public_html/components/com_community emplates/jomsocial/layouts/stream/base-extended.php
Line 84 https://www.screencast.com/t/DLqyBs14qs
I've remove the code and clear the cache
Seems the w3 validator https://validator.w3.org/nu/?doc=http%3A%2F%2Fwww.hl7community.org%2F did not shows the error anymore.
Perhaps, can you consult with Jomsocial, is it the data-type="stream-content" do any ajax call, because as I look on the layout it doesn't effected.

reference: http://stackoverflow.com/questions/21084870/no-p-element-in-scope-but-a-p-end-tag-seen-w3c-validation
·
Monday, 27 February 2017 18:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Wow Thanks very very Much. your support is out of this world!!1
·
Tuesday, 28 February 2017 00:21
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome, glad that your issues are resolved now Though I would strongly urge you to switch over to EasySocial
·
Tuesday, 28 February 2017 01:30
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post