cms made simple reports that there were problems loading the module list in the module manager
but sometimes it works
how can I make it always load the list?
increase the timeout value in the file
....
public static function is_connection_ok()
{
static $ok = -1;
if( $ok != -1 ) return $ok;
$mod = cms_utils::get_module('ModuleManager');
$url = $mod->GetPreference('module_repository');
if( $url )
{
$url .= 'version';
$req = new modmgr_cached_request($url);
$req->setTimeout(300);
$req->execute($url);
if( $req->getStatus() == 200 )
instead of
$req->setTimeout(3); write
$req->setTimeout(300);
Comments