ElkArte Community

Project Support => Support => Topic started by: txcas on May 05, 2016, 11:02:07 am

Title: Paid Subscription Task Fails to Run
Post by: txcas on May 05, 2016, 11:02:07 am
The error logs shows that this task is failing to run every night.  If I try to run that task manually I get:
The 65creedmoor.com page isn’t working
65creedmoor.com is currently unable to handle this request.
HTTP ERROR 500
Title: Re: Paid Subscription Task Fails to Run
Post by: emanuele on May 05, 2016, 03:31:39 pm
/me smells bug

Try that one (that is the first most evident error in the file), open ScheduledTaks.class.php (directory sources/subs), search:
Code: [Select]
		while ($row = $db->fetch_assoc($request))
{
require_once(ADMINDIR . '/ManagePaid.controller.php');
removeSubscription($row['id_subscribe'], $row['id_member']);
}
and replace it with:
Code: [Select]
		require_once(SUBSDIR . '/PaidSubscriptions.subs.php');
while ($row = $db->fetch_assoc($request))
{
removeSubscription($row['id_subscribe'], $row['id_member']);
}
Title: Re: Paid Subscription Task Fails to Run
Post by: txcas on May 05, 2016, 05:09:06 pm
Thank you very much, that fixed the problem!
Title: Re: Paid Subscription Task Fails to Run
Post by: emanuele on May 05, 2016, 05:50:17 pm
Tracked: https://github.com/elkarte/Elkarte/issues/2538