Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+3 votes
711 views
in Q2A Core by
Please suggest how to resolve this, Question has Description and Answer as well but still giving error as below.

test Data -
https://madanswer.com/41269/how-can-a-confidential-message-be-securely-distributed
by
<div class="qa-a-list-item " id="a41270" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">
<form method="post" action="../41269/how-can-a-confidential-message-be-securely-distributed">
<div class="qa-voting qa-voting-net" id="voting_41270">
<div class="qa-vote-buttons qa-vote-buttons-net">
<input title="Click to vote up" name="vote_41270_1_a41270" onclick="return qa_vote_click(this);" type="submit" value="+" class="qa-vote-first-button qa-vote-up-button">
<input title="Click to vote down" name="vote_41270_-1_a41270" onclick="return qa_vote_click(this);" type="submit" value="&ndash;" class="qa-vote-second-button qa-vote-down-button">
</div>
<div class="qa-vote-count qa-vote-count-net">
<span class="qa-netvote-count">
<span class="qa-netvote-count-data">0</span><span class="qa-netvote-count-pad"> votes <meta itemprop="upvoteCount" content="0"></span>
</span>
</div>
<div class="qa-vote-clear">
</div>
</div>
<input name="code" type="hidden" value="0-1630899460-8d427697e1a11bd4e07f6351e96d57fdd8a13073">
</form>
<div class="qa-a-item-main">
<form method="post" action="../41269/how-can-a-confidential-message-be-securely-distributed">
<span class="qa-a-item-avatar-meta">
<span class="qa-a-item-meta">
<span class="qa-a-item-when">
<span class="qa-a-item-when-data">Mar 17</span>
</span>
</span>
</span>
<div class="qa-a-selection">
</div>
<div class="qa-a-item-content qa-post-content">
<p><span style="color:#000000; font-family:Arial,sans-serif; font-size:14px">Encryption the message with the receiver's public key</span></p>
</div>
<div style="width: 100%; height: auto;"><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle" style="display: block; text-align: center; transition: none 0s ease 0s; outline: none; border: none; padding: 0px; border-spacing: 0px; margin-left: -40px; width: 412px; z-index: 30; height: 430px;" data-ad-layout="in-article" data-ad-format="fluid" data-ad-client="ca-pub-2182094299782533" data-ad-slot="2396227731" data-adsbygoogle-status="done"><ins id="aswift_3_expand" style="border: none; height: 430px; width: 412px; margin: 0px; padding: 0px; position: relative; visibility: visible; background-color: transparent; display: inline-table;"><ins id="aswift_3_anchor" style="border: none; height: 430px; width: 412px; margin: 0px; padding: 0px; position: relative; visibility: visible; background-color: transparent; display: block;"></ins></ins></ins>
<script>
             (adsbygoogle = window.adsbygoogle || []).push({});
        </script></div>
<div class="qa-a-item-buttons">
<input name="a41270_dofollow" value="ask related question" title="Ask a new question relating to this answer" type="submit" class="qa-form-light-button qa-form-light-button-follow">
<div style="text-align:center; padding-top: 5px;">
</div>
</div>
<input name="code" type="hidden" value="0-1630899460-731fa5bf30763db2ead498324e90b8486a5aff8f">
<input name="qa_click" type="hidden" value="">
</form>
<div class="qa-a-item-c-list" style="display:none;" id="c41270_list">
</div>
<div class="qa-c-form">
</div>
</div>
<div class="qa-a-item-clear">
</div>
</div>
by
What error? Also, please do not post additional information in comments. Edit your question instead.
by
It does not allow me to post the entire data due limit , hence post in comment.

Getting error for missing entity in suggested answer

1 Answer

0 votes
by

You've developed a custom theme. Either the theme or another plugin has broken the addition of the corresponding itemprop attribute.

Something like this should do the trick:

$answer['content'] = '<div itemprop="text">' . $answer['content'] . '</div>';
...