Fail to get reviews through rest api

This topic contains 2 replies, has 3 voices, and was last updated by  Kiran 8 years, 2 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #250934

    Qixuan Hong
    Expired Member

    Hello

    I plan to use gd and its rest api to build an mobile app. http://ec2-107-23-254-134.compute-1.amazonaws.com, is a wordpress environment for test.
    WordPress Version: 4.6
    Current WordPress Theme: Twenty Sixteen version 1.3
    PHP Version: 7.0.8
    MySQL Version: 5.7.13

    Once I send a get request to http://ec2-107-23-254-134.compute-1.amazonaws.com/wp-json/geodir/v1/reviews. I get following error

    <br />

    <b>Fatal error</b>: Uncaught Error: Call to undefined function geodir_reviewrating_comments_shorting() in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/geodir_api-master/includes/geodir-rest-functions.php:600
    Stack trace:

    #0 /opt/bitnami/apps/wordpress/htdocs/wp-includes/plugin.php(291): geodir_rest_comments_clauses(Array, Object(WP_Comment_Query))

    #1 /opt/bitnami/apps/wordpress/htdocs/wp-includes/class-wp-comment-query.php(863): apply_filters_ref_array(‘comments_clause…’, Array)

    #2 /opt/bitnami/apps/wordpress/htdocs/wp-includes/class-wp-comment-query.php(405): WP_Comment_Query->get_comment_ids()

    #3 /opt/bitnami/apps/wordpress/htdocs/wp-includes/class-wp-comment-query.php(357): WP_Comment_Query->get_comments()

    #4 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/geodir_api-master/includes/class-geodir-rest-reviews-controller.php(173): WP_Comment_Query->query(Array)

    #5 /opt/bitnami/apps/wordpress/htdocs/wp-includes/rest-api/class-wp-rest-server.php(907): Geodir_REST_Reviews_Controller->get_items(Object(WP_REST_Reque in

    <b>/opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/geodir_api-master/includes/geodir-rest-functions.php</b> on line <b>600</b><br />

    Did I do somthing wrong?

    Thank you very much!

    Qixuan

    #251182

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    I’ve flagged this for the developers. They’ll let you know asap.

    Thanks

    #255262

    Kiran
    Moderator
    Post count: 7069

    Hi Qixuan,

    We have already fixed this problem and it will be reflected in next version of GeoDirectory Rest API. Till next release you can download development version and overwrite files, if you don’t want to wait till next release.
    You can download development version from here https://github.com/kprajapatii/geodir_api

    Let us know.

    Thanks

Viewing 3 posts - 1 through 3 (of 3 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount