heatherbell wrote: ↑Thu Apr 14, 2022 6:25 am
radhavallabh wrote: ↑Thu Apr 14, 2022 6:17 am
Thank you dear so will await until it is fixed by the team...
There are currently a few issues with Reviews which, I guess, maybe addressed together in the next release.
I think too few users are helping to test the release previews so some issues will go undetected.
As mentioned in my first post I fixed the other issues of the reviews page by doing the following
1. admin/includes/actions/reviews/views/default.php
For
Fatal error: DB: [1064] You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '"' at line 3 from
2. admin/includes/actions/reviews/views/save.php
On write a review page
Fatal error: Cannot use empty array elements in arrays in xx\admin\includes\actions\reviews\views\save.php on line 43
Remove the , and will be as below-
Code: Select all
echo (new Tickable('reviews_rating', ['value' => $i, 'class' => 'form-check-input', 'id' => 'rating_$i'], 'radio'))->tick($i == ($rInfo->reviews_rating ?? 5));
3. admin/includes/actions/reviews/views/save.php
On write a review page
Warning: Use of undefined constant rows - assumed 'rows' (this will throw an Error in a future version of PHP) in xx\admin\includes\actions\reviews\views\save.php on line 52
adding '' to rows
Code: Select all
<div class="col-sm-9"><?= (new Textarea('reviews_text', ['rows' => '5', 'class' => 'form-control']))->require()->set_text($rInfo->reviews_text ?? '') . ENTRY_REVIEW_TEXT ?>
</div>
4. admin/includes/actions/reviews/views/default.php
variable $review not defined
adding below on line 76
Issues that remain
Set flag not working
and after we manually add a review in admin below error received-
Warning: array_merge(): Expected parameter 2 to be an array, null given in /xx/admin/includes/actions/reviews/views/default.php on line 84
Warning: Invalid argument supplied for foreach() in /xx/admin/includes/classes/object_info.php on line 20
and when we try to view the added review getting below error types on each field-
Code: Select all
Trying to get property 'customers_name' of non-object in /xx/admin/includes/actions/reviews/views/preview.php
Hope the above helps to speed it up a little from my tiny knowledge about coding....
Thank you again
Very Warm Regds./
radhavallabh