12
« on: January 19, 2017, 02:10:38 AM »
Hi im installing v1.2.9 at lincense ok at compatibility all ok at configuration ok at data load i get this error
Following error has occurred during installation:
OK: {"ret_code":50}
Name
Info
2::warning
A non-numeric value encountered in /storage/h3/704/571704/public_html/core/lib/request.php on line 148
2::warning
A non-numeric value encountered in /storage/h3/704/571704/public_html/core/lib/request.php on line 148
2::warning
A non-numeric value encountered in /storage/h3/704/571704/public_html/core/lib/request.php on line 148\
Can you help me with this thanks a lot.
below is the line 148 of request.php
private function _detectBrowser(){
$nua = strToLower($_SERVER['HTTP_USER_AGENT']);
$agent['http'] = isset($nua) ? $nua : "";
$agent['version'] = 'unknown';
$agent['browser'] = 'unknown';
$agent['platform'] = 'unknown';
$agent['device_type'] = '';
$oss = array ('win', 'mac', 'linux', 'unix');
foreach ($oss as $os){
if (strstr($agent['http'], $os)){
$agent['platform'] = $os;
break;
}
}
$browsers = array ("mozilla", "msie", "gecko", "firefox", "konqueror", "safari", "netscape", "navigator", "opera", "mosaic", "lynx", "amaya", "omniweb");
for ($i = 0; $i < count($browsers); $i++){
if (strlen(stristr($nua, $browsers[$i])) > 0){
$agent["browser"] = $browsers[$i];
$n = stristr($nua, $agent["browser"]);
$j = strpos($nua, $agent["browser"]) + $n + strlen($agent["browser"]) + 1; <--Line 148
}
}