• Resolved dailymatrix

    (@dailymatrix)


    Hi Hector, thanks for your great plugin and support.

    I just updated to 6.1.4 and noticed the following warning in my errors log:

    ‘PHP message: PHP Warning: DOMDocument::loadHTML(): Tag article invalid in Entity, line: 3 in /var/www/newsite/wp-content/plugins/wordpress-popular-posts/src/Output.php on line 166PHP message: PHP Warning: DOMDocument::loadHTML(): Tag article invalid in Entity, line: 13 in /var/www/newsite/wp-content/plugins/wordpress-popular-posts/src/Output.php on line 166PHP message: PHP Warning: DOMDocument::loadHTML(): Tag article invalid in Entity, line: 23 in /var/www/newsite/wp-content/plugins/wordpress-popular-posts/src/Output.php on line 166’

    Any help will be appreciated.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi @dailymatrix,

    That warning -if I remember correctly- can happen when there’s some malformed HTML being passed to the LoadHTML() function.

    Since the error message mentions the tag article which isn’t something WordPress Popular Posts outputs by default I guessing you’re using some custom HTML markup for your popular posts list? Could you please share the settings you’re using with the WPP block (or whatever you’re using to display your list) so I can have a look?

    Edit: scratch that. Apparently the HTML parser doesn’t support HTML5 tags, like <article> for example, hence these notices. I’ll add the workaround suggested on that link to the plugin to remove these warnings for the time being.

    Thread Starter dailymatrix

    (@dailymatrix)

    Hi, thanks for your reply.
    I’ll wait for the update.

    I am getting the same PHP warning.

    PHP Warning: DOMDocument::loadHTML(): htmlParseCharRef: missing semicolon in Entity, line: 44 in /home/example.com/public_html/wp-content/plugins/wordpress-popular-posts/src/Output.php on line 166\n

    Is there a quick and dirty way to correct this temporarily?

    Plugin Author Hector Cabrera

    (@hcabrera)

    Yep. In wp-config.php set WP_DEBUG to 'false' @senator94 (it should not be enabled on a production site anyways unless you’re debugging it.)

    Edit: I already fixed the issue on the development version of the plugin, haven’t released a new version yet because I’ve been sick these days.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Hey @senator94 @dailymatrix,

    Version 6.2.0 should fix this issue. Please update once you get the chance and let me know if you have any other issues.

    Thread Starter dailymatrix

    (@dailymatrix)

    Hi @hcabrera,

    Thanks for the update, it seems to have fixed the issue; I’ll keep monitoring it and will let you know if I find any other issue. For the time being, I would say it’s solved.
    Thanks for your time and support, get well!

    Plugin Author Hector Cabrera

    (@hcabrera)

    For the time being, I would say it’s solved.

    That’s great news!

    Thanks for your time and support, get well!

    Thanks ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘PHP Warning after update: Tag article invalid in Entity’ is closed to new replies.