AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Notifications
Clear all

[Solved] Forum posts are broken

8 Posts
4 Users
3 Reactions
438 Views
Posts: 3
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@renes)
Active Member
Joined: 3 weeks ago
[#73113]

Hello, we’ve recently encountered a problem where a new post looks completely messed up. My colleague thinks it’s due to the HTML code, not the server or anything else. What could be causing this and how can we fix it?

Version: 3.1.4

https://www.directupload.eu/file/d/9367/ojouwii8_png.htm

Unfortunately, I can't send a live link because the forum isn't visible to everyone...

 


7 Replies
1 Reply
wpForo Support
Moderator
(@wpforo-support)
Joined: 11 months ago

Member
Posts: 77
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

Hi renes,

Based on what you've described and the similar issues others have reported, it sounds like you're dealing with malformed HTML that's breaking the page structure. Your colleague's assessment is likely correct—this typically happens when HTML code gets corrupted or improperly formatted in a post, which then cascades and breaks the rendering of subsequent content on the page. The fact that you can't click on reply, quote, or report links suggests the HTML structure itself is damaged, preventing the DOM from rendering those interactive elements properly.

Here's a step-by-step approach to diagnose and fix the issue:

  1. Identify the problematic post: Look through your thread and find where the formatting breaks. Usually it's right after a post that contains copied content from external sources or unusual formatting.
  2. Access your database: Connect to your forum's database using phpMyAdmin or your preferred database management tool.
  3. Locate the post content: Find the specific post record that's causing the issue. Search for posts around the time the formatting broke.
  4. Inspect the HTML: Look at the raw post content in the database. Check for unclosed tags, mismatched quotes, or embedded HTML that wasn't properly escaped.
  5. Clean the content: Remove or fix the problematic HTML code directly in the database. Common culprits include unescaped `<` and `>` characters, unclosed `
    `, ``, or `

    ` tags.

  6. Test the fix: Refresh your forum and verify that the post now displays correctly and all interactive elements (reply, quote, report buttons) are functional again.

As a preventative measure, you might want to implement stricter HTML sanitization in your forum software to prevent users from pasting malformed code. Can you tell me—when you look at the post content in the database, do you see any obvious unclosed HTML tags or unusual character encoding issues?


Reply
Sofy
Posts: 5850
 Sofy
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@sofy)
Support Team
Joined: 9 years ago

If you'd like, I can make this topic private so you can securely share the URL and the login credentials for a test user.


Reply
Posts: 3
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@renes)
Active Member
Joined: 3 weeks ago

Yes, there was indeed something broken in the post, but how can this be prevented in the future? Because it completely ruined the whole page!


Reply
Sofy
Posts: 5850
 Sofy
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@sofy)
Support Team
Joined: 9 years ago

This is not a wpForo-related issue. The problem is caused by broken HTML in the topic/post content submitted by the user.

For example, there may be an HTML tag that was opened but not properly closed, or a bracket/HTML character may be missing (such as < or >). This malformed HTML is causing the issue.

Please check the content of the affected topic/post for any broken or incomplete HTML markup.


Reply
Posts: 146
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@cotner)
Estimable Member
Joined: 4 years ago

I have seen a similar issue. I have found that it mostly happens when users attempt to quote other users on wpForo. On mobile, the viewport doesn't always bring a user to the bottom of the text editor. They do this because they do not even SEE the BBCode at all. And certainly may not know that they need to type after it.

The html gets all messed up, especially on desktop. It is less noticeable on mobile on the output. Then it gets even worse if another user quotes the broken quote.

So this is partially a problem with the users, but how are they supposed to know? I do think ultimately it is a problem that wpForo could correct. Users do not care about BBCode and many have no idea what it really is. I mean when a user sees something like this...

image

Yes the text copy is important, but userid and postid is completely useless to them and have now idea what BBCode is. I think it would be much cleaner to keep that metadata in the background and not seen and actually show something more along the lines of

image

 

No BBcode visible for the user to accidentally to type in or potentially mess up the html output.

I think this is something wpForo should implement. This was a problem within v2 as well. I am currently developing a small plugin that will hopefully fix this issue, but it would certainly be better if wpForo took care of this instead.

EDIT: I needed to turn the code I was trying to share in to images.


Reply
Page 1 / 2
Share: