Bug Error when leaving review/rating

Status
Not open for further replies.

Nulumia

Customer
Hello, So far everything's been great setting up my new shop. Just noticed I get this error when trying to leave a review for a product:

Code:
ErrorException: [E_NOTICE] Trying to get property of non-object in src\addons\DBTech\eCommerce\Service\Product\Rate.php at line 68
XF::handlePhpError() in src\addons\DBTech\eCommerce\Service\Product\Rate.php at line 68
DBTech\eCommerce\Service\Product\Rate->setupRating() in src\addons\DBTech\eCommerce\Service\Product\Rate.php at line 51
DBTech\eCommerce\Service\Product\Rate->__construct() in src\XF\Container.php at line 274
XF\Container->createObject() in src\XF\App.php at line 1359
XF\App->XF\{closure}() in src\XF\Container.php at line 228
XF\Container->create() in src\XF\App.php at line 2508
XF\App->service()
call_user_func_array() in src\XF\Mvc\Controller.php at line 717
XF\Mvc\Controller->service() in src\addons\DBTech\eCommerce\Pub\Controller\Product.php at line 765
DBTech\eCommerce\Pub\Controller\Product->setupProductRate() in src\addons\DBTech\eCommerce\Pub\Controller\Product.php at line 733
DBTech\eCommerce\Pub\Controller\Product->actionRate() in src\XF\Mvc\Dispatcher.php at line 249
XF\Mvc\Dispatcher->dispatchClass() in src\XF\Mvc\Dispatcher.php at line 87
XF\Mvc\Dispatcher->dispatchLoop() in src\XF\Mvc\Dispatcher.php at line 41
XF\Mvc\Dispatcher->run() in src\XF\App.php at line 1931
XF\App->run() in src\XF.php at line 329
XF::runApp() in index.php at line 13

This error appears within the popup rating box after hitting the "Submit Rating" button.

dbtech-ec-error.webp

I've checked that usergroups have permission to leave ratings, and the rating functionality works elsewhere such as in Resource Manager etc.

Thanks for any help,
-Robert
 
I see the issue can occur if the product you're attempting to rate is a digital product, but does not have any downloads associated with it.

Can you confirm this is the case?
 
It worked! Makes sense as I hadn't attached a download file to that item yet.
Thanks for the clarification, everything seems to be working now :-)
 
No worries, I'll have it fixed for the next version as service-only products shouldn't need a download but should still be rate-able :)
 
Hello @Nulumia,

We hope your ticket regarding DragonByte eCommerce has been addressed to your satisfaction. This ticket has now been closed.

If your ticket has not been resolved, you can reply to this thread at any point in the next 7 days in order to reopen the ticket, afterwards this thread will be closed.

Please do not reply to this thread if your ticket has been resolved.

Thank you.


- DragonByte Technologies, Ltd.
 
Status
Not open for further replies.

DragonByte eCommerce

XenForo 2.0.6+ XenForo 2.1.x XenForo 2.2.x XenForo 2.3.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
3,045
Customer rating
4.86 star(s) 7 ratings
Back
Top