Jump to content
  • 0

Logicboxes - Reseller Club


multibyte

Question

Hello, 

 

I have just installed the Logic Boxes module for Reseller Club. 

 

I have managed to get everything to work and taken my first order. 

 

I do however have 1 question when going into manage the domain  on blesta client. I am unable to access the Whois tab or the Settings Tab.

 

Has anyone come across this and know how to fix it.

 

Thanks

 

post-10521-0-66779900-1431531136_thumb.j

post-10521-0-70359300-1431531149_thumb.j 

Link to comment
Share on other sites

16 answers to this question

Recommended Posts

  • 0

Yes that would be really great if you could Tyson, I really appreciate that and I am more then willing to pay for your time.

 

Thank-you very much and I look forward to hearing from you!

 

Attached to my post is an update to the Logicboxes module, v2.1.2. Backup and overwrite your old file at /components/modules/logicboxes/logicboxes.php. Then let me know if you continue to encounter any more errors.

logicboxes.zip

Link to comment
Share on other sites

  • 0

After you get that error, go to the module logs under [Tools] -> [Logs], click on the top row to see the Input/Output data from the whois/settings request. It seems like there is no response, or the data received from Logicboxes is unexpected. If you can include the log information, it may be helpful in seeing why you get that error and whether it is something we can work around. Feel free to redact any sensitive information.

Link to comment
Share on other sites

  • 0

Hello Tyson please see the top two from the logs for Logicboxes, hope this helps Please note words with *word* is stuff I have hidden:- 

 

First Input: https://httpapi.com/api/customers/search.json

a:5:{s:8:"username";s:30:"*EMAIL*";s:13:"no-of-records";i:10;s:7:"page-no";i:1;s:11:"auth-userid";s:6:"595870";s:7:"api-key";s:32:"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";}
 
{"recsonpage":"1","recsindb":"1","1":{"customer.username":"EMAIL","customer.name":"James Wallace","customer.totalreceipts":"0.000","customer.resellerid":"595870","customer.country":"GB","customer.city":"*MY CITY*","customer.websitecount":"0","customer.customerstatus":"Active","customer.company":"Multibyte Web Services","customer.customerid":"12934360"}}
Link to comment
Share on other sites

  • 0

That request looks fine, but it is also a different API request than would have led to the error.

 

Instead of the URL shown as https://httpapi.com/api/customers/search.json, the request I'm looking for should begin with the URL https://httpapi.com/api/domains/details.json

 

Do you have any logs for domains/details? Also, what version of Blesta and the Logicboxes module are you using? Blesta's version is shown in the admin footer, and the Logicboxes version is shown under [settings] -> [Modules] -> [installed].

Link to comment
Share on other sites

  • 0

Hello Please see below as requested:- 

 

There was no domains/details but there was a domains register please see below input and output for this:- 

 

Input: https://httpapi.com/api/domains/register.json

a:12:{s:11:"domain-name";s:21:"multibytestatus.co.uk";s:5:"years";s:1:"1";s:11:"customer-id";s:8:"12934360";s:14:"reg-contact-id";i:44010858;s:16:"admin-contact-id";i:-1;s:15:"tech-contact-id";i:-1;s:18:"billing-contact-id";i:-1;s:14:"invoice-option";s:9:"NoInvoice";s:15:"protect-privacy";s:5:"false";s:2:"ns";a:2:{i:0;s:20:"ns1.multi-byte.co.uk";i:1;s:20:"ns2.multi-byte.co.uk";}s:11:"auth-userid";s:6:"595870";s:7:"api-key";s:32:"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";}
 
{"actiontypedesc":"Registration of multibytestatus.co.uk for 1 year","actionstatus":"Success","entityid":"60457884","status":"Success","eaqid":"296480572","actiontype":"AddNewDomain","description":"multibytestatus.co.uk","actionstatusdesc":"Domain registration completed Successfully"}
 
I am using Blesta 3.4.2 and LogicBoxes 2.1.2
 
Thanks again.
Link to comment
Share on other sites

  • 0

The register request looks good too.

 

It seems like fetching the domain details results in an unexpected response, as if the expected fields are missing. Even if we fixed the error, the page wouldn't display any whois information because of it.

 

I see that the domain details are not being logged (likely because it contains a lot of redundant data that may be re-accessed and re-logged frequently), I would suggest updating the module to add logging in so that we can see what the response is from Logicboxes.

 

If you're able to update a file, find and backup /components/modules/logicboxes/logicboxes.php from your Blesta installation.

Then open it and find this line:

$response = $domains->details(array('order-id' => $fields->{'order-id'}, 'options' => array("RegistrantContactDetails", "AdminContactDetails", "TechContactDetails", "BillingContactDetails")));

Below that line, add:

$this->processResponse($api, $response);

Save the file and overwrite the one from your Blesta installation.

 

Then go to the Whois tab for a service. Once you see the error, check the module logs again, and you should have an entry for domain/details. What does it contain?

Link to comment
Share on other sites

  • 0

Hello Tyson, 

 

Please see below details after following your request:- 

 

Input:

https://httpapi.com/api/domains/details.json

a:4:{s:8:"order-id";s:8:"60457884";s:7:"options";a:4:{i:0;s:24:"RegistrantContactDetails";i:1;s:19:"AdminContactDetails";i:2;s:18:"TechContactDetails";i:3;s:21:"BillingContactDetails";}s:11:"auth-userid";s:6:"595870";s:7:"api-key";s:32:"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";}
 
Output: 
{"isImmediateReseller":"false","classkey":"thirdleveldotuk","isOrderSuspendedUponExpiry":"false","classname":"com.logicboxes.foundation.sfnb.order.domorder.ThirdLevelDotUk","registrantcontact":{"emailaddr":"james.wallace@multi-byte.co.uk","country":"GB","contactstatus":"Active","contacttype":["thirdleveldotuk"],"name":"James Wallace","parentkey":"999999999_314815_595870","address2":"Chester-le-street","company":"Multibyte Web Services","city":"Durham","address1":"*FIRST LINE OF MY ADDRESS*","contactid":"44010858","telnocc":"44","zip":"*MY POST CODE*","telno":"1111111","state":"DUR","customerid":"12934360","type":"UkContact"}}
Link to comment
Share on other sites

  • 0

I see that not all expected fields are returned by Logicboxes. They may have updated their API to change the values it returns, or there may be permissions on your account blocking the data that is returned.

 

In any case, what we can do is update the module to only display whois information for the contacts that Logicboxes responds with. In your example, you would have the Registrant Contact, but would not have any Admin Contact, Billing Contact, or Technical Contact. Although the module added these contacts when the service was created in Blesta, they don't appear to be available via the API for some reason. The same is likely true for the other "domsecret" error you received.

 

This update would fix the errors you receive, but functionality may be more limited since, for instance, you cannot update some contacts from the Whois tab. I can look into fixing this this week and send you a private message with the update so you can test the fixes, since I do not experience this issue myself.

Link to comment
Share on other sites

  • 0

Hello, 

 

I have just installed the Logic Boxes module for Reseller Club. 

 

I have managed to get everything to work and taken my first order. 

 

I do however have 1 question when going into manage the domain  on blesta client. I am unable to access the Whois tab or the Settings Tab.

 

Has anyone come across this and know how to fix it.

 

Thanks

 

attachicon.gif.pagespeed.ce.hPGJFKgqtP.gpicture 3.JPG

attachicon.gif.pagespeed.ce.hPGJFKgqtP.gpicture 2.JPG

can you test my logicbox reloaded and test if you get the same result .

Link to comment
Share on other sites

  • 0

Attached to my post is an update to the Logicboxes module, v2.1.2. Backup and overwrite your old file at /components/modules/logicboxes/logicboxes.php. Then let me know if you continue to encounter any more errors.

 

Thanks so much Tyson, that worked a treat I owe you big time! thanks again

Link to comment
Share on other sites

Join the conversation

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

Guest
Answer this question...

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