Jump to content

Suspension Error Email , Reason As The Same For All Emails.


Recommended Posts

Posted

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 .

 

Posted

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 .

 

 

 

 

Posted
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.

Posted
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 ?

  • 2 weeks later...
Posted
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());
}

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...