Issue saving reviews and start ratings

This topic contains 16 replies, has 3 voices, and was last updated by  Guust 5 years, 8 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #445954

    Brian Stensrud
    Free User
    Post count: 16

    HI there,

    We are using Directory Starter with Supreme Directory as a child.

    The issue we have is that we are receiving an Internal Server Error 500 when posting reviews. The debug log shows the following :
    ————————————————————————————————
    [10-Sep-2018 00:11:27 UTC] PHP Notice: Undefined variable: reviews in H:\root\home\thierrytu-001\www\trucking\wp-content\plugins\geodirectory\geodirectory_template_actions.php on line 1427
    ————————————————————————————————
    I did make an attempt to fix this ( my php is quite limited ), and the error (above) did go away, but the Internal Server Error 500 persisted.
    Tested again with all plug-ins disabled (except GeoDirectory and Google Maps) – same result.
    Removed and re-installed Geodirectory and the 2 themes – same result – and of course the error mentioned above is now back.

    ——————————————————————————————
    Just as puzzling is that the reviews are saved – yet when the posts are viewed, they indicate that there are no reviews, even though there are actually many reviews.

    If you are going into to the site to check, the following work-flow will allow you to duplicate this issue. Please refer to the attached document for screen shots.

    1. Login
    2. In the “Search for Company Name”, enter Walmart – then click the Search button.
    3. The Search Results page will show 2 listings for Walmart, and they both indicate that there are no reviews.
    4. Click on either listing to post a review.
    5. Click the “Write a Review” button.
    6. You will notice that the resulting view has to scroll down past many reviews, before you see the “Leave a Review” section.

    If you should look at the reviews via the admin section you will note that :
    a) The reviews have been saved – not withstanding the error thrown, and
    b) The Ratings have not been saved.

    I’m pretty confident that I have set up Geodirectory correctly and am hoping that you will be able to discover / resolve this issue.

    Many thanks in advance
    b. stensrud

    #445955

    Brian Stensrud
    Free User
    Post count: 16

    Follow up – file was too large so I’ve chopped it into separate files:

    #445956

    Brian Stensrud
    Free User
    Post count: 16

    Another followup – can’t upload the files – they were just screenshots of what my original message describes – you will see the issues if you choose or need to visit the site to try to resolve this.

    thanks again
    b
    🙂

    #445957

    Guust
    Moderator
    Post count: 29970
    This reply has been marked as private.
    #446062

    Brian Stensrud
    Free User
    Post count: 16
    This reply has been marked as private.
    #446068

    Guust
    Moderator
    Post count: 29970

    Please add FTP details.
    Thanks

    #446088

    Brian Stensrud
    Free User
    Post count: 16
    This reply has been marked as private.
    #446106

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    #446194

    Brian Stensrud
    Free User
    Post count: 16
    This reply has been marked as private.
    #446223

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    #446333

    Brian Stensrud
    Free User
    Post count: 16
    This reply has been marked as private.
    #446370

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    #446439

    Brian Stensrud
    Free User
    Post count: 16
    This reply has been marked as private.
    #446448

    Brian Stensrud
    Free User
    Post count: 16
    This reply has been marked as private.
    #446476

    Kiran
    Moderator
    Post count: 7069

    Hello Brian,

    Finally the issue has been found and fixed. It was PHP recent version v7.2.x which has issue with using function getenv(‘REMOTE_ADDR’). See https://bugs.php.net/bug.php?id=76230

    We have fixed by using alternative option. You can find patch here https://github.com/GeoDirectory/geodirectory/pull/473/commits/697d879929a43cc2d7852264010dc12ea82c066d
    Patch has been updated on your site too and now review submit is working fine.

    Please check and let us know.

    Thanks for your patience 🙂

    Kiran

Viewing 15 posts - 1 through 15 (of 17 total)

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

Open Support Ticket