PauloV Posted July 30, 2014 Report Posted July 30, 2014 Hello We have detected that eNom Module dosent renew domains We have detected that because we had make Internet.BS module based on eNom and a client as discover the missing command We will try to post here tomorow the command for enom to release on Blesta 3.3 Regards, PV
Blesta Addons Posted July 31, 2014 Report Posted July 31, 2014 is the same case for logicbox ? (we are not using it in live prodection yet in v3)
PauloV Posted July 31, 2014 Author Report Posted July 31, 2014 On 7/31/2014 at 12:10 PM, naja7host said: is the same case for logicbox ? (we are not using it in live prodection yet in v3) No, the renew command is now only missing on enom module, logicboxes have the renew command
PauloV Posted August 1, 2014 Author Report Posted August 1, 2014 (edited) UPDATED 05--06-2015 (code corrected, bug was found by Tyson and applied on Blesta 3.5) Here is the missing renew command coded, for enom module: open file [blesta instalation directory]/components/modules/enom/enom.php find on line 408: public function renewService($package, $service, $parent_package=null, $parent_service=null) { return null; } replace with: public function renewService($package, $service, $parent_package=null, $parent_service=null) { $row = $this->getModuleRow($package->module_row); $api = $this->getApi($row->meta->user, $row->meta->key, $row->meta->sandbox == "true"); // Renew domain if ($package->meta->type == "domain") { $fields = $this->serviceFieldsToObject($service->fields); $tld = trim($this->getTld($fields->domain), "."); $sld = trim(substr($fields->domain, 0, -strlen($tld)), "."); $vars = array( 'NumYears' => 1, 'tld' => $tld, 'sld' => $sld ); foreach ($package->pricing as $pricing) { if ($pricing->id == $service->pricing_id) { $vars['NumYears'] = $pricing->term; break; } } // Renew the domain $command = new EnomAll($api); $response = $command->Extend($vars); $this->processResponse($api, $response); // If the domain renewal failed, it may be expired, so attempt to re-activate and renew it instead if ($this->Input->errors()){ $vars = array( 'NumYears' => $vars['NumYears'], 'DomainName' => $fields->domain ); $response = $command->UpdateExpiredDomains($vars); $this->processResponse($api, $response); } } else { # # TODO: SSL Cert: Set cancelation date of service? # } return null; } Hope that helps Regards, PV Edited June 5, 2015 by PauloV
BlestaUser00 Posted August 23, 2014 Report Posted August 23, 2014 On 8/23/2014 at 7:04 PM, Licensecart said: Guys is this coming in 3.3? Any update on this?
Jonathan Posted April 20, 2015 Report Posted April 20, 2015 Big +1 again. Had some domains expire due to this
PauloV Posted April 20, 2015 Author Report Posted April 20, 2015 On 4/20/2015 at 12:57 PM, Jonathan said: Big +1 again. Had some domains expire due to this Strange this has not ben apply, this was/is a MAJOR problem, and should be reseolved ASAP, this ais a very basic funtion vital for any Registrar Module. You can apply my fix above http://www.blesta.com/forums/index.php?/topic/3028-enom-module-missing-renew-extend-command/#entry21773 @Paul / @Tyson / @Cody Please add this code above ASAP, its a BIGGGG problem for everyone that uses eNom, and this is vital for a company, this cannot ever/never happend, it can cause serious problems and even shutdown a Hosting Company if we loose a Client Domain.
Tyson Posted April 20, 2015 Report Posted April 20, 2015 I've created a task for us to look into this in CORE-1639. Jonathan and PauloV 2
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now