Jump to content
NETLINK

Unable to register domain from back-end

Recommended Posts

When trying to register a new domain through the admin back-end (with use_module enabled), I'm getting the following error when pressing the Add Service button. This happens using the Namecheap and the Namesilo module.

The problem seems to be with the $service->pricing_id property. The data passed in the service_ids is as follows:

array (
  0 => NULL,
)

 

Something went wrong.
Trying to get property of non-object on line 5742 in /home/user/public_html/blesta/app/controllers/admin_clients.php 

Printing Stack Trace: 
#0 [internal function]: UnknownException::setErrorHandler(8, 'Trying to get p...', '/home/user/...', 5742, Array)
#1 /home/user/public_html/blesta/vendors/monolog/monolog/src/Monolog/ErrorHandler.php(164): call_user_func(Array, 8, 'Trying to get p...', '/home/user/...', 5742, Array)
#2 /home/user/public_html/blesta/app/controllers/admin_clients.php(5742): Monolog\ErrorHandler->handleError(8, 'Trying to get p...', '/home/user/...', 5742, Array)
#3 /home/user/public_html/blesta/app/controllers/admin_clients.php(5722): AdminClients->updateServicesRenewalForProration(Array)
#4 /home/user/public_html/blesta/app/controllers/admin_clients.php(5599): AdminClients->createService(Array, Array)
#5 /home/user/public_html/blesta/app/controllers/admin_clients.php(4586): AdminClients->processServiceStep('confirm', Object(stdClass), Object(stdClass), Object(stdClass))
#6 /home/user/public_html/blesta/vendors/minphp/bridge/src/Lib/Dispatcher.php(143): AdminClients->addService()
#7 /home/user/public_html/blesta/index.php(21): Dispatcher::dispatch('/admin/clients/...')
#8 {main}

 

Share this post


Link to post
Share on other sites
18 hours ago, NETLINK said:

Yeah, this feature is enabled. I've used it for some clients.

can you try disable it?

also try to print (dump) the $service var in the services.php model and the $vars in admin_clients.php.

Share this post


Link to post
Share on other sites
On 5/23/2018 at 12:41 AM, Tyson said:

Was the service created in Blesta? It seems as though it was not, perhaps due to an error with the module.

If "Use Module" is selected, the service does not get created in Blesta. If "Use Module" is not selected, the service is created successfully in Blesta only.

Share this post


Link to post
Share on other sites
1 hour ago, NETLINK said:

If "Use Module" is selected, the service does not get created in Blesta. If "Use Module" is not selected, the service is created successfully in Blesta only.

Sounds like an issue with the module, Any errors for the module? From the admin nav bar navigate Tools->Logs->(Module tab)->(Module in question). Click to expand. 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×