Whoops\Exception\ErrorException
…/­app/­Controller/­Root.php530
Whoops\Run handleError
…/­app/­Controller/­Root.php530
Controller\Root Controller\{closure}
…/­app/­Controller/­Root.php687
Controller\Root Controller\{closure}
<#unknown>0
call_user_func_array
…/­vendor/­symfony/­http-kernel/­Symfony/­Component/­HttpKernel/­HttpKernel.php117
Symfony\Component\HttpKernel\HttpKernel handleRaw
…/­vendor/­symfony/­http-kernel/­Symfony/­Component/­HttpKernel/­HttpKernel.php61
Symfony\Component\HttpKernel\HttpKernel handle
…/­vendor/­silex/­silex/­src/­Silex/­Application.php504
Silex\Application handle
…/­vendor/­silex/­silex/­src/­Silex/­Application.php481
Silex\Application run
…/­web/­index.php24
require_once
…/­index.php4

Whoops \ Exception \ ErrorException

Undefined index: total

/var/sites/audiofreeonline.com/htdocs/app/Controller/Root.php
            $res = $client->RunQueries();


            if(!empty($res)) {

                $res = current($res);
                $tracks = [];
                $count = $res['total'];
                if(isset($res['matches']) && !empty($res['matches'])) {
/var/sites/audiofreeonline.com/htdocs/app/Controller/Root.php
            $res = $client->RunQueries();


            if(!empty($res)) {

                $res = current($res);
                $tracks = [];
                $count = $res['total'];
                if(isset($res['matches']) && !empty($res['matches'])) {
/var/sites/audiofreeonline.com/htdocs/app/Controller/Root.php
                $count = 0;

                if($isPostgress) {
                    $result = $postgresQuery($app, $params);
                    $tracks = $result['tracks'];
                    $count = $result['count'];
                } else {
                    $result = $sphinxQuery($app, $params);
                    $tracks = $result['tracks'];
                    $count = $result['count'];
<#unknown>
/var/sites/audiofreeonline.com/htdocs/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php
        $this->dispatcher->dispatch(KernelEvents::CONTROLLER, $event);
        $controller = $event->getController();

        // controller arguments
        $arguments = $this->resolver->getArguments($request, $controller);

        // call controller
        $response = call_user_func_array($controller, $arguments);

        // view
/var/sites/audiofreeonline.com/htdocs/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php
     * {@inheritdoc}
     * 
     * @api
     */
    public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
    {
        try {
            return $this->handleRaw($request, $type);
        } catch (\Exception $e) {
            if (false === $catch) {
/var/sites/audiofreeonline.com/htdocs/vendor/silex/silex/src/Silex/Application.php
        $current = HttpKernelInterface::SUB_REQUEST === $type ? $this['request'] : $this['request_error'];

        $this['request'] = $request;

        $this->flush();

        $response = $this['kernel']->handle($request, $type, $catch);

        $this['request'] = $current;
/var/sites/audiofreeonline.com/htdocs/vendor/silex/silex/src/Silex/Application.php
     */
    public function run(Request $request = null)
    {
        if (null === $request) {
            $request = Request::createFromGlobals();
        }

        $response = $this->handle($request);
        $response->send();
        $this->terminate($request, $response);
/var/sites/audiofreeonline.com/htdocs/web/index.php
}

require_once __DIR__.'/../vendor/autoload.php'; 

$app = include __DIR__ . '/../bootstrap.php';

$app->run();

/var/sites/audiofreeonline.com/htdocs/index.php
<?php


require_once 'web/index.php';

Key Value
Charset UTF-8
Locale en
Route Class Silex\Route
Dispatcher Class Symfony\Component\EventDispatcher\EventDispatcher
Application Class Silex\Application
Key Value
URI http://audiofreeonline.com/listen/%25D0%25A2%25D0%259E+%2522%25D0%2594%25D1%2583%25D0%25B1%25D0%25BE%25D0%25B2%25D0%25B0%25D1%258F+%25D1%2580%25D0%25BE%25D1%2589%25D0%25B0+%25E2%2584%25966%252F17+%25D0%25A5%25D0%259E%2522
Request URI /listen/%25D0%25A2%25D0%259E+%2522%25D0%2594%25D1%2583%25D0%25B1%25D0%25BE%25D0%25B2%25D0%25B0%25D1%258F+%25D1%2580%25D0%25BE%25D1%2589%25D0%25B0+%25E2%2584%25966%252F17+%25D0%25A5%25D0%259E%2522
Path Info /listen/%25D0%25A2%25D0%259E+%2522%25D0%2594%25D1%2583%25D0%25B1%25D0%25BE%25D0%25B2%25D0%25B0%25D1%258F+%25D1%2580%25D0%25BE%25D1%2589%25D0%25B0+%25E2%2584%25966%252F17+%25D0%25A5%25D0%259E%2522
Query String <none>
HTTP Method GET
Script Name /index.php
Base Path
Base URL
Scheme http
Port 80
Host audiofreeonline.com
Key Value
USER nginx
HOME /var/lib/nginx
FCGI_ROLE RESPONDER
SCRIPT_FILENAME /var/sites/audiofreeonline.com/htdocs/index.php
QUERY_STRING
REQUEST_METHOD GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME /index.php
REQUEST_URI /listen/%25D0%25A2%25D0%259E+%2522%25D0%2594%25D1%2583%25D0%25B1%25D0%25BE%25D0%25B2%25D0%25B0%25D1%258F+%25D1%2580%25D0%25BE%25D1%2589%25D0%25B0+%25E2%2584%25966%252F17+%25D0%25A5%25D0%259E%2522
DOCUMENT_URI /index.php
DOCUMENT_ROOT /var/sites/audiofreeonline.com/htdocs/web
SERVER_PROTOCOL HTTP/1.0
REQUEST_SCHEME http
GATEWAY_INTERFACE CGI/1.1
SERVER_SOFTWARE nginx/1.10.1
REMOTE_ADDR 54.80.26.116
REMOTE_PORT 50558
SERVER_ADDR 212.83.138.209
SERVER_PORT 80
SERVER_NAME audiofreeonline.com
REDIRECT_STATUS 200
HTTP_HOST audiofreeonline.com
HTTP_ACCEPT_ENCODING x-gzip, gzip, deflate
HTTP_USER_AGENT CCBot/2.0 (http://commoncrawl.org/faq/)
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_IF_MODIFIED_SINCE Sun, 23 Jul 2017 13:00:58 GMT
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1506281000.9064
REQUEST_TIME 1506281000
empty
empty
empty
empty
empty
empty
0. Whoops\Handler\PrettyPageHandler
1. Whoops\Handler\CallbackHandler