The category has a setting to control Mark as sold
If I do not enable this setting and try to mark a listing as sold without entering a valid username I do get an error:[ ] Require listing purchaser name to mark listing as sold
When enabled, will require the owner of a listing to add the username of the user who received their item in order to mark it as sold.
Code:
ErrorException: [E_NOTICE] Trying to get property 'user_id' of non-object in src/addons/Z61/Classifieds/Pub/Controller/Listing.php at line 667
XF::handlePhpError() in src/addons/Z61/Classifieds/Pub/Controller/Listing.php at line 667
Z61\Classifieds\Pub\Controller\Listing->actionMarkSold() in src/XF/Mvc/Dispatcher.php at line 321
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 244
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 100
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 50
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2177
XF\App->run() in src/XF.php at line 390
XF::runApp() in index.php at line 20
Last edited: