Whoops \ Exception \ ErrorException (E_WARNING)
number_format() expects parameter 1 to be double, string given Whoops\Exception\ErrorException thrown with message "number_format() expects parameter 1 to be double, string given" Stacktrace: #2 Whoops\Exception\ErrorException in /home/w/wwwxx/phone-960.ru/public_html/includes/number-text.php:44 #1 number_format in /home/w/wwwxx/phone-960.ru/public_html/includes/number-text.php:44 #0 require in /home/w/wwwxx/phone-960.ru/public_html/index.php:116
Stack frames (3)
2
Whoops
\
Exception
\
ErrorException
/
includes
/
number-text.php
44
1
number_format
/
includes
/
number-text.php
44
0
require
/
index.php
116
/
home
/
w
/
wwwxx
/
phone-960.ru
/
public_html
/
includes
/
number-text.php
            $stat['sum_tele2'] += $numbers;
        }
        
        if(substr($value['abc'], 0, 1) == '9') {
            $stat['sum_mobile'] += $numbers;
        } elseif(substr($value['abc'], 0, 3) == '800') {
            $stat['sum_free'] += $numbers;
        } else {
            $stat['sum_static'] += $numbers;
        }
        
        $stat['sum_all'] += $numbers;
    }
    
    file_put_contents($file, json_encode($stat, JSON_UNESCAPED_UNICODE));
}
 
/* META */
$meta = array(
    "description"    => 'Всего на нашем сайте содержится информация о ' . number_format($stat['sum_all'], 0, '', ' ') . ' стационарных и мобильных телефонных номерах России, из которых ' . number_format($stat['sum_megafon'], 0, '', ' ') . ' — «МегаФон», ' . number_format($stat['sum_mts'], 0, '', ' ') . ' — «МТС», ' . number_format($stat['sum_beeline'], 0, '', ' ') . '> — «Билайн» и ' . number_format($stat['sum_tele2'], 0, '', ' ') . ' — «Tele2».',
    "keywords"        => 'статистика телефонных номеров'
);
 
$array["meta"] = $meta;
$array["pageTitle"] = 'Статистика телефонных номеров РФ';
 
/* Breadcrumbs */
$breadcrumbs[0]['title'] = 'Номера';
$breadcrumbs[0]['a'] = '';
 
echo View::make('header')->with($array)->render();
 
?>
<?php echo View::make('searchform-jumbo')->render() ?>
 
<div class="container">
       <?php echo View::make('breadcrumbs')->with(["breadcrumbs" => $breadcrumbs, "counter" => true])->render() ?>    
    <div class="row">
        <div class="col-md-12" id="content">
            <h1>Номера</h1>
/
home
/
w
/
wwwxx
/
phone-960.ru
/
public_html
/
includes
/
number-text.php
            $stat['sum_tele2'] += $numbers;
        }
        
        if(substr($value['abc'], 0, 1) == '9') {
            $stat['sum_mobile'] += $numbers;
        } elseif(substr($value['abc'], 0, 3) == '800') {
            $stat['sum_free'] += $numbers;
        } else {
            $stat['sum_static'] += $numbers;
        }
        
        $stat['sum_all'] += $numbers;
    }
    
    file_put_contents($file, json_encode($stat, JSON_UNESCAPED_UNICODE));
}
 
/* META */
$meta = array(
    "description"    => 'Всего на нашем сайте содержится информация о ' . number_format($stat['sum_all'], 0, '', ' ') . ' стационарных и мобильных телефонных номерах России, из которых ' . number_format($stat['sum_megafon'], 0, '', ' ') . ' — «МегаФон», ' . number_format($stat['sum_mts'], 0, '', ' ') . ' — «МТС», ' . number_format($stat['sum_beeline'], 0, '', ' ') . '> — «Билайн» и ' . number_format($stat['sum_tele2'], 0, '', ' ') . ' — «Tele2».',
    "keywords"        => 'статистика телефонных номеров'
);
 
$array["meta"] = $meta;
$array["pageTitle"] = 'Статистика телефонных номеров РФ';
 
/* Breadcrumbs */
$breadcrumbs[0]['title'] = 'Номера';
$breadcrumbs[0]['a'] = '';
 
echo View::make('header')->with($array)->render();
 
?>
<?php echo View::make('searchform-jumbo')->render() ?>
 
<div class="container">
       <?php echo View::make('breadcrumbs')->with(["breadcrumbs" => $breadcrumbs, "counter" => true])->render() ?>    
    <div class="row">
        <div class="col-md-12" id="content">
            <h1>Номера</h1>
/
home
/
w
/
wwwxx
/
phone-960.ru
/
public_html
/
index.php
    if (!empty($uri[1]) && $uri[1] == 'personal-data') {
        $page = 'about-personal-data';
    } elseif (!empty($uri[1])) {
        header("HTTP/1.0 404 Not Found");
        $page = 404;
    } else {
        $page = 'about';
    }
}
 
# TEMPLATE RENDER
 
if (empty($page)) {
    header("HTTP/1.0 404 Not Found");
    $page = 404;
}
 
 
ob_start("ob_html_compress");
require("includes/$page.php");
ob_end_flush();
#echo 'Script time: '.round(microtime(true) - $start, 4).' sec.';
 

Environment & details:

empty
empty
empty
empty
Key Value
_token b36750b3814a17adc7ddfe6966c37949
Key Value
REDIRECT_REDIRECT_UNIQUE_ID YQI17QVlnVIAAYCrGb0AAAAD
REDIRECT_REDIRECT_MMDB_ADDR 35.175.191.36
REDIRECT_REDIRECT_GEOIP_ADDR 35.175.191.36
REDIRECT_REDIRECT_MMDB_INFO result found
REDIRECT_REDIRECT_GEOIP_CITY Ashburn
REDIRECT_REDIRECT_GEOIP_LONGITUDE -77.47280
REDIRECT_REDIRECT_GEOIP_CONTINENT_CODE NA
REDIRECT_REDIRECT_GEOIP_LATITUDE 39.04810
REDIRECT_REDIRECT_GEOIP_POSTAL_CODE 20149
REDIRECT_REDIRECT_GEOIP_COUNTRY_CODE US
REDIRECT_REDIRECT_GEOIP_COUNTRY_NAME United States
REDIRECT_REDIRECT_GEOIP_REGION VA
REDIRECT_REDIRECT_HTTPS on
REDIRECT_REDIRECT_PERL_USE_UNSAFE_INC 1
REDIRECT_REDIRECT_PHPRC /home/w/wwwxx/phone-960.ru/public_html/cgi-bin/php.ini
REDIRECT_REDIRECT_STATUS 200
REDIRECT_UNIQUE_ID YQI17QVlnVIAAYCrGb0AAAAD
REDIRECT_MMDB_ADDR 35.175.191.36
REDIRECT_GEOIP_ADDR 35.175.191.36
REDIRECT_MMDB_INFO result found
REDIRECT_GEOIP_CITY Ashburn
REDIRECT_GEOIP_LONGITUDE -77.47280
REDIRECT_GEOIP_CONTINENT_CODE NA
REDIRECT_GEOIP_LATITUDE 39.04810
REDIRECT_GEOIP_POSTAL_CODE 20149
REDIRECT_GEOIP_COUNTRY_CODE US
REDIRECT_GEOIP_COUNTRY_NAME United States
REDIRECT_GEOIP_REGION VA
REDIRECT_HTTPS on
REDIRECT_PERL_USE_UNSAFE_INC 1
REDIRECT_PHPRC /home/w/wwwxx/phone-960.ru/public_html/cgi-bin/php.ini
REDIRECT_HANDLER php-cgi
REDIRECT_STATUS 200
UNIQUE_ID YQI17QVlnVIAAYCrGb0AAAAD
MMDB_ADDR 35.175.191.36
GEOIP_ADDR 35.175.191.36
MMDB_INFO result found
GEOIP_CITY Ashburn
GEOIP_LONGITUDE -77.47280
GEOIP_CONTINENT_CODE NA
GEOIP_LATITUDE 39.04810
GEOIP_POSTAL_CODE 20149
GEOIP_COUNTRY_CODE US
GEOIP_COUNTRY_NAME United States
GEOIP_REGION VA
HTTPS on
PERL_USE_UNSAFE_INC 1
PHPRC /home/w/wwwxx/phone-960.ru/public_html/cgi-bin/php.ini
HTTP_HOST phone-960.ru
HTTP_X_SERVER_ADDR 87.236.16.14
HTTP_X_FORWARDED_PROTO https
HTTP_X_REAL_IP 35.175.191.36
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
HTTP_ACCEPT_ENCODING br,gzip
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SERVER_SIGNATURE <address>Apache/2.4.10 (Unix) Server at phone-960.ru Port 80</address>
SERVER_SOFTWARE Apache/2.4.10 (Unix)
SERVER_NAME phone-960.ru
SERVER_ADDR 87.236.16.14
SERVER_PORT 443
REQUEST_SCHEME https
REMOTE_ADDR 35.175.191.36
DOCUMENT_ROOT /home/w/wwwxx/phone-960.ru/public_html
CONTEXT_PREFIX /php-cgi
CONTEXT_DOCUMENT_ROOT /usr/local/php-cgi/5.6/bin
SERVER_ADMIN webmaster@phone-960.ru
SCRIPT_FILENAME /home/w/wwwxx/phone-960.ru/public_html/index.php
REMOTE_PORT 15191
REDIRECT_URL /index.php
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /number/+79600007580
SCRIPT_NAME /index.php
ORIG_SCRIPT_FILENAME /usr/local/php-cgi/5.6/bin/php-cgi
ORIG_PATH_INFO /index.php
ORIG_PATH_TRANSLATED /home/w/wwwxx/phone-960.ru/public_html/index.php
ORIG_SCRIPT_NAME /php-cgi/php-cgi
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1627534829.8783
REQUEST_TIME 1627534829
argv Array ( )
argc 0
Key Value
REDIRECT_REDIRECT_UNIQUE_ID YQI17QVlnVIAAYCrGb0AAAAD
REDIRECT_REDIRECT_MMDB_ADDR 35.175.191.36
REDIRECT_REDIRECT_GEOIP_ADDR 35.175.191.36
REDIRECT_REDIRECT_MMDB_INFO result found
REDIRECT_REDIRECT_GEOIP_CITY Ashburn
REDIRECT_REDIRECT_GEOIP_LONGITUDE -77.47280
REDIRECT_REDIRECT_GEOIP_CONTINENT_CODE NA
REDIRECT_REDIRECT_GEOIP_LATITUDE 39.04810
REDIRECT_REDIRECT_GEOIP_POSTAL_CODE 20149
REDIRECT_REDIRECT_GEOIP_COUNTRY_CODE US
REDIRECT_REDIRECT_GEOIP_COUNTRY_NAME United States
REDIRECT_REDIRECT_GEOIP_REGION VA
REDIRECT_REDIRECT_HTTPS on
REDIRECT_REDIRECT_PERL_USE_UNSAFE_INC 1
REDIRECT_REDIRECT_PHPRC /home/w/wwwxx/phone-960.ru/public_html/cgi-bin/php.ini
REDIRECT_REDIRECT_STATUS 200
REDIRECT_UNIQUE_ID YQI17QVlnVIAAYCrGb0AAAAD
REDIRECT_MMDB_ADDR 35.175.191.36
REDIRECT_GEOIP_ADDR 35.175.191.36
REDIRECT_MMDB_INFO result found
REDIRECT_GEOIP_CITY Ashburn
REDIRECT_GEOIP_LONGITUDE -77.47280
REDIRECT_GEOIP_CONTINENT_CODE NA
REDIRECT_GEOIP_LATITUDE 39.04810
REDIRECT_GEOIP_POSTAL_CODE 20149
REDIRECT_GEOIP_COUNTRY_CODE US
REDIRECT_GEOIP_COUNTRY_NAME United States
REDIRECT_GEOIP_REGION VA
REDIRECT_HTTPS on
REDIRECT_PERL_USE_UNSAFE_INC 1
REDIRECT_PHPRC /home/w/wwwxx/phone-960.ru/public_html/cgi-bin/php.ini
REDIRECT_HANDLER php-cgi
REDIRECT_STATUS 200
UNIQUE_ID YQI17QVlnVIAAYCrGb0AAAAD
MMDB_ADDR 35.175.191.36
GEOIP_ADDR 35.175.191.36
MMDB_INFO result found
GEOIP_CITY Ashburn
GEOIP_LONGITUDE -77.47280
GEOIP_CONTINENT_CODE NA
GEOIP_LATITUDE 39.04810
GEOIP_POSTAL_CODE 20149
GEOIP_COUNTRY_CODE US
GEOIP_COUNTRY_NAME United States
GEOIP_REGION VA
HTTPS on
PERL_USE_UNSAFE_INC 1
PHPRC /home/w/wwwxx/phone-960.ru/public_html/cgi-bin/php.ini
HTTP_HOST phone-960.ru
HTTP_X_SERVER_ADDR 87.236.16.14
HTTP_X_FORWARDED_PROTO https
HTTP_X_REAL_IP 35.175.191.36
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
HTTP_ACCEPT_ENCODING br,gzip
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SERVER_SIGNATURE <address>Apache/2.4.10 (Unix) Server at phone-960.ru Port 80</address>
SERVER_SOFTWARE Apache/2.4.10 (Unix)
SERVER_NAME phone-960.ru
SERVER_ADDR 87.236.16.14
SERVER_PORT 443
REQUEST_SCHEME https
REMOTE_ADDR 35.175.191.36
DOCUMENT_ROOT /home/w/wwwxx/phone-960.ru/public_html
CONTEXT_PREFIX /php-cgi
CONTEXT_DOCUMENT_ROOT /usr/local/php-cgi/5.6/bin
SERVER_ADMIN webmaster@phone-960.ru
SCRIPT_FILENAME /home/w/wwwxx/phone-960.ru/public_html/index.php
REMOTE_PORT 15191
REDIRECT_URL /index.php
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /number/+79600007580
SCRIPT_NAME /index.php
ORIG_SCRIPT_FILENAME /usr/local/php-cgi/5.6/bin/php-cgi
ORIG_PATH_INFO /index.php
ORIG_PATH_TRANSLATED /home/w/wwwxx/phone-960.ru/public_html/index.php
ORIG_SCRIPT_NAME /php-cgi/php-cgi
0. Whoops\Handler\PrettyPageHandler