Jump to content

Question

Posted

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? 

6 answers to this question

Recommended Posts

  • 0
Posted

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"');
?>
  • 0
Posted

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.

  • 0
Posted

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...