Title: Error in Q&amp;A Schema
Last modified: March 8, 2019

---

# Error in Q&A Schema

 *  Resolved [kkmixs](https://wordpress.org/support/users/kkmixs/)
 * (@kkmixs)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/error-in-qa-schema/)
 * Please help.
 * I am facing problem with Q&A schema type. Rest working well.
 * I am getting two error when Q&A schema is enabled on DWQA Plugin.
 * 1) On DWQA Question Page ( Where Number of Questions are listed)
 * Notice: Undefined variable: prefix in /home/………../plugins/schema-and-structured-
   data-for-wp/admin_section/structure_admin.php on line 863
 * The line 863 is
 * $archive_title = post_type_archive_title($prefix, false);
 * 2) Getting below error on DWQA One Question Page
 * Notice: Undefined index: _dwqa_best_answer in /home/………./plugins/schema-and-structured-
   data-for-wp/output/service.php on line 1004
 * The code on 1004 is
    $best_answer_id = $post_meta[‘_dwqa_best_answer’][0];
 * Notice: Trying to get property of non-object in /home/……../plugins/schema-and-
   structured-data-for-wp/output/service.php on line 1065
 * Notice: Trying to get property of non-object in /home/…………/plugins/schema-and-
   structured-data-for-wp/output/service.php on line 1065
 * The code on 1065 is
    ‘author’ => array(‘@type’ => ‘Person’, ‘name’ => $authorinfo-
   >data->user_nicename),
 * Please help.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-in-qa-schema%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Support [Sanjeev Kumar](https://wordpress.org/support/users/sanjeevsetu/)
 * (@sanjeevsetu)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/error-in-qa-schema/#post-11290013)
 * Hi [@kkmixs](https://wordpress.org/support/users/kkmixs/),
 * Sorry for the issues which you have faced. Have you enabled the DWQA from setting
   panel( [https://prnt.sc/mv0xcf](https://prnt.sc/mv0xcf) ). If not please enable
   it.
 * And Replace
 * $archive_title = post_type_archive_title($prefix, false);
 * with
 * $archive_title = post_type_archive_title($prefix=”, false);
 * Hope this helps you. If not, Please lets know.
 * Thanks,
 *  Thread Starter [kkmixs](https://wordpress.org/support/users/kkmixs/)
 * (@kkmixs)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/error-in-qa-schema/#post-11290657)
 * Thanks for the reply.
    Need one more help. When I check my Q&A schema using Google
   Structure Checker Tool, I am getting Bad Sequence in String error in Json file.
 * This is because of special characters like ‘,””,/ used in answer.
 * Please help
 *  Plugin Support [Sanjeev Kumar](https://wordpress.org/support/users/sanjeevsetu/)
 * (@sanjeevsetu)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/error-in-qa-schema/#post-11297328)
 * Hi [@kkmixs](https://wordpress.org/support/users/kkmixs/),
 * Sorry for the delay in response. Please update to our new version 1.3. It will
   fix your issue.
 * If not, Please lets know again.
 * Thanks,
 *  [Jayanta](https://wordpress.org/support/users/jkmwp/)
 * (@jkmwp)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/error-in-qa-schema/#post-11320979)
 * Version 1.3 has brought error in the Q&A schema. Google Search console is showing
   the following warning:
    Missing Field “mainEntity.author” (Optional) I had to
   downgrade to version 1.2 of the plugin to solve the issue. Please fix in the 
   new version.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Error in Q&A Schema’ is closed to new replies.

 * ![](https://ps.w.org/schema-and-structured-data-for-wp/assets/icon-256x256.png?
   rev=1922284)
 * [Schema & Structured Data for WP & AMP](https://wordpress.org/plugins/schema-and-structured-data-for-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/schema-and-structured-data-for-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/schema-and-structured-data-for-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/schema-and-structured-data-for-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/schema-and-structured-data-for-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/schema-and-structured-data-for-wp/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Jayanta](https://wordpress.org/support/users/jkmwp/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/error-in-qa-schema/#post-11320979)
 * Status: resolved