You get a bonus - 1 coin for daily activity. Now you have 1 coin

CMS Made Simple reports problems loading the module list in the Module Manager

Practice




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

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "Running server side scripts using PHP as an example (LAMP)"

Terms: Running server side scripts using PHP as an example (LAMP)