Classifieds Fatal error when deleting payment profile

Status
Not open for further replies.
InvalidArgumentException: Unknown column payment_profile_ids on Z61\Classifieds:Listing in src/XF/Mvc/Entity/Finder.php at line 1569
  1. XF\Mvc\Entity\Finder->resolveFieldToTableAndColumn() in src/XF/Mvc/Entity/Finder.php at line 595
  2. XF\Mvc\Entity\Finder->columnSqlName() in src/addons/Z61/Classifieds/Purchasable/Listing.php at line165
  3. Z61\Classifieds\Purchasable\Listing->getPurchasablesByProfileId() insrc/XF/Admin/Controller/PaymentProfile.php at line 153
  4. XF\Admin\Controller\PaymentProfile->actionDelete() in src/XF/Mvc/Dispatcher.php at line 321
  5. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 244
  6. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 100
  7. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 50
  8. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2177
  9. XF\App->run() in src/XF.php at line 390
  10. XF::runApp() in admin.php at line 13

This is caused by code in \Z61\Classifieds\Purchasable\Listing::getPurchasablesByProfileId():
PHP:
$finder = \XF::finder('Z61\Classifieds:Listing');

$quotedProfileId = $finder->quote($profileId);
$columnName = $finder->columnSqlName('payment_profile_ids');

Such a column (payment_profile_ids) does not exist.
 
Status
Not open for further replies.
Back
Top