Jump to content
  • 0

License Issues


WebHostCentral UK - Dean

Question

Hey Guys,

 

Has anyone had issues with licenses.. The issue i have is.. I am setting up a clients Blesta and started with the trail about half hour ago... within 10 mins it logged me out and said license invalid.. I then put a proper license key in which worked for another 10 minutes.. i reissued the license key and it started working again.. As you can imagine it just logged me out. This time instead of reissuing the license i just copied the same license key in the box and it accepted it again?

 

Would this just be a crap server that the client is using? 

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

I would say it's the server either a IP is changing randomly could be a router issue, or it's outbound connections dying.

 

You could check to see if the SCurl is working fine.

<?php
function nxs_cURLTest($url, $msg, $testText){  
  $ch = curl_init(); 
  curl_setopt($ch, CURLOPT_URL, $url); 
  curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)"); 
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 
  curl_setopt($ch, CURLOPT_TIMEOUT, 10); 
  curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
  $response = curl_exec($ch); 
  $errmsg = curl_error($ch); 
  $cInfo = curl_getinfo($ch); 
  curl_close($ch); 
  echo "Testing ... ".$url." - ".$cInfo['url']."<br />";
  if (stripos($response, $testText)!==false) 
    echo "....".$msg." - OK<br />"; 
  else 
  { 
    echo "....<b style='color:red;'>".$msg." - Problem</b><br /><pre>"; 
    print_r($errmsg); 
    print_r($cInfo); 
    print_r(htmlentities($response)); 
    echo "</pre>There is a problem with cURL. You need to contact your server admin or hosting provider.<br />";
  }
}

 nxs_cURLTest("http://www.google.com/intl/en/contact/", "HTTP to Google", "Mountain View, CA");
 nxs_cURLTest("https://www.google.com/intl/en/contact/", "HTTPS to Google", "Mountain View, CA");
 nxs_cURLTest("https://www.facebook.com/", "HTTPS to Facebook", 'id="facebook"');
 echo '';
 nxs_cURLTest("https://account.blesta.com/", "HTTPS to Blesta", "Blesta Servers");
 nxs_cURLTest("https://licensecart.com/", "HTTPS to Licensecart", 'id="Licensecart server"');
?>
Link to comment
Share on other sites

  • 0

Hello Mike,

 

Just testing that on the server in question google and facebook ok but to you and blesta it failed...

 

I also tried this on a working server with Blesta installed and exactly the same as above

 

links below (file will be removed from server soon)

 

link 1 (client website)

link 2 (my website)

Link to comment
Share on other sites

  • 0

Mike, I think the test may be flawed.

nxs_cURLTest("https://account.blesta.com/", "HTTPS to Blesta", "Blesta Servers");

The third parameter is "Blesta Servers" that's the text that the test is looking for in the page to confirm it was able to fetch the page. Change this to "Client Portal", and see if it comes back with a success.

 

Did the IP, domain, or install path change? If you have multiple web servers behind a load balancer or something, then that is likely the cause. We need the IP for each of those servers.

Link to comment
Share on other sites

  • 0

Mike, I think the test may be flawed.

nxs_cURLTest("https://account.blesta.com/", "HTTPS to Blesta", "Blesta Servers");

The third parameter is "Blesta Servers" that's the text that the test is looking for in the page to confirm it was able to fetch the page. Change this to "Client Portal", and see if it comes back with a success.

 

Did the IP, domain, or install path change? If you have multiple web servers behind a load balancer or something, then that is likely the cause. We need the IP for each of those servers.

 

It looks for the text lol woops...

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