Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

I can´t check updates

  • mbarrera
  • mbarrera's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 7 months ago #123129 by mbarrera
I can´t check updates was created by mbarrera
After upgrade to Versión 2.06+ Build 150729 when I´m going to check updates apears the followin message:

NTLM Authentication Redirection

In case you see this page,

Your browser does not support NTLM authentication; or
Javascript is not enabled in your browser and you cannot be redirected to the destination

I´ve checked with Mozilla Firefox and Google Chrome.

I had configured the proxy settings correctly in config-defaults.php

What´s th problem? What can I do?

Thanks
The topic has been locked.
  • mbarrera
  • mbarrera's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 7 months ago #123138 by mbarrera
Replied by mbarrera on topic I can´t check updates
Finally a partner help me.
He added the proxy line in the following function in /application/helpers/common_helper.php

function getUpdateInfo()
{
if (getGlobalSetting('SessionName')=='') {
setGlobalSetting('SessionName', \Yii::app()->securityManager->generateRandomString(64));
}

$url = " update.limesurvey.org/ ?" . \Yii::app()->urlManager->createPathInfo(array(
'build' => Yii::app()->getConfig("buildnumber"),
/**
* Optionally enable this after user consent. For now it remains disabled.
*/
// 'php' => PHP_VERSION,
'id' => md5(getGlobalSetting('SessionName')),
'crosscheck' => 'true' // Passed as string, should be changed.
), '=', '&');

$opts = array(
'http' => array(
'method' => 'GET',
'user_agent' => "LimeSurvey ".Yii::app()->getConfig("versionnumber")." build ".Yii::app()->getConfig("buildnumber"),
'proxy' => ' proxy.dominio.net:3128 ',
'timeout' => 10,
'ignore_errors' => true
)
);
$body = file_get_contents($url, false, stream_context_create($opts));
if ($body != false && (null === $updateInfo = json_decode($body, true))) {
$updateInfo = array(
'errorhtml' => $body,
'errorcode' => $http_response_header
);
}
return $updateInfo;
}
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose