MyBB Community Forums
Parser output validation failed - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: Parser output validation failed (/thread-235306.html)



Parser output validation failed - xLoy - 2022-03-26

its caused by the lock plugin 

<error>
    <dateline>1648320121</dateline>
    <script>inc/class_parser.php</script>
    <line>2049</line>
    <type>512</type>
    <friendly_type>User Warning</friendly_type>
    <message>Parser output validation failed.
array (
  'sourceHtmlEntities' => 'This is a CLI (Command Line Interface) tool that lets you generate a Discord.JS project in a matter of seconds.

[hide][url=https://github.com/stuyy/slappey]https://github.com/stuyy/slappey[/url] [/hide]',
  'outputHtmlEntities' => '&lt;span style=&quot;color: #cbc6c0;&quot; class=&quot;mycode_color&quot;&gt;&lt;span style=&quot;font-size: medium;&quot; class=&quot;mycode_size&quot;&gt;&lt;span style=&quot;font-family: -apple-system, BlinkMacSystemFont,;&quot; class=&quot;mycode_font&quot;&gt;This is a CLI (Command Line Interface) tool that lets you generate a Discord.JS project in a matter of seconds.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;padding: 16px; background: #1a1a1a;border-radius: 2px; border: 1px solid #6f82df;&quot; class=&quot;hidden-content&quot;&gt;
    &lt;div style=&quot;border-bottom: 1px dashed #6f82df; font-size: 17px; padding-bottom: 11px; margin-bottom: 2px;  color: #6f82df; textalign:center;&quot; class=&quot;hidden-content-title&quot;&gt;
        &lt;strong&gt;Hidden Content&lt;/strong&gt;&lt;br /&gt;
    &lt;/div&gt;
    &lt;div class=&quot;hidden-content-body&quot;&gt;
        You must &lt;a href=&quot;https://forumlink.com/member.php?action=register&quot;&gt;register&lt;/a&gt; or &lt;a href=&quot;https://forumlink.com/member.php?action=login&quot;&gt;login&lt;/a&gt; to view this content.&lt;br /&gt;
    &lt;/div&gt;
&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;',
  'errors' =>
  array (
    0 =>
    LibXMLError::__set_state(array(
       'level' => 3,
       'code' => 76,
       'column' => 14,
       'message' => 'Opening and ending tag mismatch: root line 1 and span
',
       'file' => '',
       'line' => 10,
    )),
    1 =>
    LibXMLError::__set_state(array(
       'level' => 3,
       'code' => 5,
       'column' => 14,
       'message' => 'Extra content at the end of the document
',
       'file' => '',
       'line' => 10,
    )),
  ),
)</message>
    <back_trace>#0  errorHandler->error() called at [/inc/class_parser.php:2049]
#1  postParser->validate_output() called at [/inc/class_parser.php:1990]
#2  postParser->output_allowed() called at [/inc/class_parser.php:284]
#3  postParser->parse_message() called at [/inc/functions_post.php:817]
#4  build_postbit() called at [/showthread.php:1118]
</back_trace>
</error>

Has anyone had the same problem before?


RE: Parser output validation failed - Matt - 2022-03-26

https://docs.mybb.com/1.8/faq/errors/#parser-output-validation-failed

You can follow these steps, or post the MyCode replacement HTML here and we’ll see if we can see the error.


RE: Parser output validation failed - xLoy - 2022-03-26

The problem is that a member made a CSS(colour) for one of the hide tags [/hide]

First, I have checked the thread with a member account (need to reply to see the hidden content)
I have replied to that thread and refreshed the page it showed me the hidden content and everything in the thread which means that members who have perms to see the hidden content will not have a problem (upgraded / staff)

- I have disabled the lock plugin and checked the thread with another regular member (didn't reply yet on the thread) I saw - the close tag coloured in red (when the plugin is disabled)


[Image: i1ljiDe.png]


- I edited that user thread and remove the style of the hide tag

[Image: HPdggPZ.png]


then the problem is fixed and I'm able to see everything in the thread when I reactivated the plugin


[Image: 0vLNMrW.png]
My question is how I can prevent that error when the Hide tags have a style?



RE: Parser output validation failed - xLoy - 2022-03-28

Does any1 have the solution?


RE: Parser output validation failed - Matt - 2022-03-28

We'd need to see the replacement value for the custom MyCode causing the issue as mentioned above. We can't diagnose what is causing it without that.