Not able to ask question

Hi guys,

I installed Q&A plugin and assigned role as student. I logged in as a student and clicked Ask a question then it is shown like this

User-agent: *

Disallow: /wp-admin/

Allow: /wp-admin/admin-ajax.php

on frontend. Can you please help me to sort out the issue.

  • Dimitris
    • Support Star

    Hey there darshan,

    hope you’re doing good and thanks for reaching us! :slight_smile:

    Could you please access your server via FTP, edit /wp-content/plugins/qa/core/core.php file and comment out lines #417~419

    At the end, this code part

    if ( ! is_object( $count_posts ) || ! isset( $count_posts->publish ) || ! $count_posts->publish ) {
    $wp_query->is_robots = true;
    }

    should become something like that

    // if ( ! is_object( $count_posts ) || ! isset( $count_posts->publish ) || ! $count_posts->publish ) {
    // $wp_query->is_robots = true;
    // }

    Let me know if this resolves your issue! :slight_smile:

    Warm regards,

    Dimitris

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.