silence
Well-known member
PHP:
// Current goal? Just add the donation and return
if ($donation['donation_date'] >= $goal['start_date'] AND (empty($goal['end_date']) OR $donation['donation_date'] <= $goal['end_date']))
{
$dw = XenForo_DataWriter::create('xf_DonationManager_DataWriter_Goal');
// THIS RHODO!!!
$dw->setExistingData($goal['goal_id']);
$dw->setExistingData($goal['callback_class']);
$dw->setExistingData($goal['callback_method']);
$dw->set('donated', $dw->get('donated') + $donation['amount']);
$dw->save();
return;
}
It's telling me that for the callback_class and for the callback_method. I print_r'd $goal and it does contain that key, the datawriter has those 2 keys as well (print_r'd it to be sure!) and I have no idea what else would be causing this.
This guy: http://xenforo.com/community/thread...-by-the-data-writer-could-not-be-found.16847/
Is having the exact same issue I'm having, so I'd thought I'd throw it in for clarification!