Issue saving reviews and start ratings
This topic contains 16 replies, has 3 voices, and was last updated by Guust 7 years, 1 month ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
September 10, 2018 at 12:50 am #445954
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. stensrudSeptember 10, 2018 at 12:58 am #445955Follow up – file was too large so I’ve chopped it into separate files:
September 10, 2018 at 1:01 am #445956Another 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
🙂September 10, 2018 at 1:02 am #445957This reply has been marked as private.September 10, 2018 at 7:32 pm #446062This reply has been marked as private.September 10, 2018 at 9:52 pm #446068Please add FTP details.
ThanksSeptember 11, 2018 at 2:54 am #446088This reply has been marked as private.September 11, 2018 at 7:13 am #446106This reply has been marked as private.September 11, 2018 at 7:10 pm #446194This reply has been marked as private.September 12, 2018 at 7:07 am #446223This reply has been marked as private.September 12, 2018 at 8:52 pm #446333This reply has been marked as private.September 13, 2018 at 7:19 am #446370This reply has been marked as private.September 13, 2018 at 6:13 pm #446439This reply has been marked as private.September 13, 2018 at 10:57 pm #446448This reply has been marked as private.September 14, 2018 at 8:05 am #446476Hello 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
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket