Integrations and APIs for Service

Get Involved. Join the Conversation.

Topic

    Gursimran Singh Saini
    RNCPHP\CommunityQuestionComment won't workAnswered
    Topic posted January 3, 2019 by Gursimran Singh SainiGold Crown: 30,000+ Points, tagged Connect PHP 
    34 Views, 1 Comment
    Title:
    RNCPHP\CommunityQuestionComment won't work
    Summary:
    Not able to use RNCPHP\CommunityQuestionComment in PHP API
    Content:

    PHP file stops working soon as it reaches any code with class RNCPHP\CommunityQuestionComment

    RNCPHP\CommunityQuestion and RNCPHP\CommunityUser works fine but RNCPHP\CommunityQuestionComment won't work.
     
    For example:
    echo "Before";
    $comment = new RNCPHP\CommunityQuestionComment();
    echo "After";
     
    The code won't reach "After".
     
    Have tried on different sites.
    Have tried on PHP API Version 3 and 4.
    Version:
    CPHP API 4

    Best Comment

    Robert Surujbhan

    Hi Gursimran,

    Try using CommunityComment instead.

    Comment