Blesta Addons Posted August 3, 2016 Report Share Posted August 3, 2016 today i have constated that the Suspension Error email contain the same reason for all error suspensions emails . as the epp registrar retrun they own error , has nothing with cpanel server errors . a sample example . domain suspension error in email Quote The service may need to be suspended manually. Error: Error : Object status prohibits operation (2304) in other email for cpanel server i have the same reason . also when i go to the service i found it suspended well . what i suspect is that the cron is not releasing the $errors vars , so in any next service suspension it make it as error in suspension even if he is well suspended . i simple fix is to add unset($errors); under : $output = $this->setOutput(Language::_("Cron.suspendservices.suspend_error", true, $service->id, $service->client_id), $output); i hope is well described . PauloV 1 Quote Link to comment Share on other sites More sharing options...
Blesta Addons Posted August 3, 2016 Author Report Share Posted August 3, 2016 i think the same thing for unsuspendServices() , processRenewingServices() , cancelScheduledServices() , addPaidPendingServices() !!! Quote Link to comment Share on other sites More sharing options...
Blesta Addons Posted August 10, 2016 Author Report Share Posted August 10, 2016 Anyone can duplicate this bug ? we have the fallowing case : Service A , B , C , D . they all will be suspended at the same date . Service A , Well Suspended , so no error generated . Service B , Error in suspension, email sent with error code XXXXXX . Service C , Well Suspended , but an email with error sent withe the previous error XXXXXX . Service D , Well Suspended , but an email with error sent withe the previous error XXXXXX . Quote Link to comment Share on other sites More sharing options...
Paul Posted August 10, 2016 Report Share Posted August 10, 2016 2 hours ago, naja7host said: Anyone can duplicate this bug ? we have the fallowing case : Service A , B , C , D . they all will be suspended at the same date . Service A , Well Suspended , so no error generated . Service B , Error in suspension, email sent with error code XXXXXX . Service C , Well Suspended , but an email with error sent withe the previous error XXXXXX . Service D , Well Suspended , but an email with error sent withe the previous error XXXXXX . It sounds like the error that is set is not unset for subsequent suspensions. The template that is used is the staff Suspension Error email template, correct? I have created CORE-2237 to investigate. If anyone else can confirm this as well, that would be great. Quote Link to comment Share on other sites More sharing options...
Blesta Addons Posted August 11, 2016 Author Report Share Posted August 11, 2016 20 hours ago, Paul said: It sounds like the error that is set is not unset for subsequent suspensions. The template that is used is the staff Suspension Error email template, correct? I have created CORE-2237 to investigate. If anyone else can confirm this as well, that would be great. yes that is the case , even if i have unset the $errors , i still receiving the wrong email , what i suspect is that the $this->Services->errors() is still has the old value , and we should clear or empty the error set . any quick fix to test it ? Quote Link to comment Share on other sites More sharing options...
Tyson Posted August 25, 2016 Report Share Posted August 25, 2016 On 8/11/2016 at 6:00 AM, naja7host said: any quick fix to test it ? You can try setting the errors back to none. This may work: if (($errors = $this->Services->errors())) { ... // Reset errors $this->Services->Input->setErrors(array()); } Quote Link to comment Share on other sites More sharing options...
Blesta Addons Posted August 26, 2016 Author Report Share Posted August 26, 2016 i will test your fix, as my fix in previous post is not working . Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.