Please or Register to create posts and topics.

how to deal with this bug?

wordpress:5.2.1

 

Uploaded files:
  • 20190610164448.png

 

Uploaded files:
  • 20190610172713.png

Hello @ma2019

This seems to be a problem in the xml-parser-library which does not support HTML5-tags. Can you please try if the following code-change fix the issue for you so that I can add it to the next update?

In /wp-content/plugins/asgaros-forum/includes/forum-mentioning.php look for the following code:

// Load the HTML-document.
$document = new DOMDocument();
$document->loadHTML($text);

Replace it with:

// Load the HTML-document.
$document = new DOMDocument();
libxml_use_internal_errors(true);
$document->loadHTML($text);
libxml_clear_errors();

 

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

Thanks @asgaros

The code has been modified, no more errors, but how to remove the audio tag.

Before modifying the code,ie is normal,chrome has this problem, is not browser compatibility?

 

Uploaded files:
  • 20190611091545.png

Hello @ma2019

Actually I wonder on how you have added this audio-tag to the post because it should be not possible by default?

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

Hello @asgaros

In fact, that’s what Chrome does by default, so I ask you if this is a browser compatibility issue?

I don’t know the reason, either. I’ve changed another computer, but they’re all the same。

Hello @ma2019

I also use Google Chrome but I never had this issue before. Maybe it is caused by a browser-extension which you are using?

Ma2019 has reacted to this post.
Ma2019
If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

Hello @asgaros

You are right. The two computers have the same browser-extension.

Thanks!