Phalcon Framework 5.9.3

Phalcon\Mvc\Dispatcher\Exception: Site\Pic\Controller\UplController handler class cannot be loaded

/var/www/fullrest-team/data/www/fullrest.net/public/index.php (299)
#0Phalcon\Mvc\Dispatcher->throwDispatchException
#1Phalcon\Dispatcher\AbstractDispatcher->dispatch
#2Phalcon\Mvc\Application->handle
/var/www/fullrest-team/data/www/fullrest.net/public/index.php (299)
<?
use Core\Modules\Utils\Controller\MinController;
use Phalcon\Di\Di;
use Phalcon\Mvc\Model;
use Phalcon\Mvc\Dispatcher as MvcDispatcher;
use \Phalcon\Mvc\Dispatcher as PhDispatcher;
 
// SET GLOBAL sql_mode = "NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION,ALLOW_INVALID_DATES"
Model::setup(
    array(
        'notNullValidations' => false
    )
);
 
mb_internal_encoding("UTF-8");
 
set_time_limit (0);
ini_set('display_errors', 1);
error_reporting(E_ALL /*^ 'E_DEPRECATED'*/ );
date_default_timezone_set( 'Europe/Moscow' );
 
(new Phalcon\Support\Debug())->listen(true, true);
 
require_once('../Core/Lib/Vendor/autoload.php');
 
try {
  $Loader = new Phalcon\Autoload\Loader();
 
  $Loader->setNamespaces(
    [
      'Core\Lib'        => '../Core/Lib/',
            'Core\Lib\Navigation' => '../Core/Lib/Navigation/',
      'Core\Controller' => '../Core/Controller/',
            'Core\Extenders'  => '../Core/Extenders/',
            'Core\Model'      => '../Core/Model/'
    ],
    true
  )->register();
 
  $DI = new Phalcon\Di\FactoryDefault();
 
 
    $DI->get('dispatcher')->setEventsManager($DI->get('eventsManager'));
 
    $DI->set('url', function() {
        $url = new \Phalcon\Url();
        $url->setBaseUri('/');
 
        return $url;
    }, true);
 
  $DI->setShared('debug', 'Core\Lib\Debug')->resolve();
 
 
  $App = new Phalcon\Mvc\Application($DI);
 
  $DI->setShared('loader', $Loader);
 
    $DI->setShared('overseer', function () {
        return Core\Lib\Overseer::getInstance();
    });
 
    $DI->setShared('og', function () {
        return Core\Lib\OpenGraph::getInstance();
    });
 
    $DI->setShared('resconf', function () {
        return Core\Lib\ResourcesConfigurator::getInstance();
    });
 
  $DI->setShared('hostname', function () {
    $Hostname = new Core\Lib\Hostname();
        $Hostname->setHostnameConfigDir('../Cache/Sites/');
    $Hostname->initialize();
 
    return $Hostname;
  })->resolve();
 
  $DI->getShared('debug')->resolve($DI['hostname']->config->debug);
 
    $DI->set('db', function() use ($DI) {
        $config = require_once('../Config/mysql.php');
 
        $db = new Phalcon\Db\Adapter\Pdo\Mysql(array(
            "host"     => $config['host'],
            "username" => $config['username'],
            "password" => $config['password'],
            "dbname"   => $config['name'],
            'charset'   =>'UTF8',
            'options' =>[
                PDO::ATTR_DEFAULT_FETCH_MODE  =>  PDO::FETCH_ASSOC,
                PDO::MYSQL_ATTR_INIT_COMMAND  => 'SET NAMES UTF8'
            ]
        ));
 
        $db->query(
            '
                SET 
                    character_set_results = \'utf8\', 
                    character_set_client = \'utf8\', 
                    character_set_connection = \'utf8\', 
                    character_set_database = \'utf8\', 
                    character_set_server = \'utf8\'
            '
        );
 
        return $db;
    });
 
 
 
    //echo '<pre>';
    //print_r($mysqli->get_charset ());
 
 
 
  $DI->set('modelsMetadata', function () {
    return new \Phalcon\Mvc\Model\MetaData\Stream(
      [
        'metaDataDir' => '../Cache/Metadata/'
      ]
    );
  });
 
    $DI->set('cookies', function() {
        $Cookies = new Phalcon\Http\Response\Cookies();
        $Cookies->useEncryption(false);
        return $Cookies;
    });
 
    /*$DI->set('crypt', function() {
        $Crypt = new Phalcon\Crypt();
        $Crypt->setKey('KTr]t[S&gt;ATN');
        return $Crypt;
    });*/
 
 
    $DI->setShared('session', function () {
        $session = new Phalcon\Session\Manager();
        $files = new Phalcon\Session\Adapter\Stream();
        $session->setAdapter($files)->start();
 
        return $session;
    });
 
 
    $DI->setShared('user', function () {
    return Core\Lib\UserHandler::getInstance();
  });
 
  $DI->set('security', function () {
    $Security = new Core\Lib\Security();
 
    return $Security;
  });
 
  $DI->set('assets', function () use ($DI) {
    $Assets = new Phalcon\Assets\Manager(new Phalcon\Html\TagFactory(new Phalcon\Html\Escaper()));
 
        $js  = $Assets->collection('js');
        $css = $Assets->collection('css');
 
        $user = $DI['user'];
 
        if ($user->getSetting('tools', 'dev_compress_css')) {
            $css->addCss('/min/common_'.$DI['overseer']->getSiteName().'_css_ver'.$DI['resconf']->getVerCss().'.css');
        }
        else {
            $sysCss = (new MinController())->minCssSystemApp(true);
 
            foreach($sysCss as $i => $v) {
                $len = sizeof($v);
 
                for($a = 0; $a < $len; $a++) {
                    $css->addCss($i.$v[$a]);
                }
            }
 
            $configCss = $DI['hostname']->config['system']['css'];
 
            $name   = $DI['hostname']->config['system']['package']['name'];
            $path      = 'design/'.mb_strtolower($name).'/';
 
            if (sizeof($configCss)) {
                foreach($configCss as $i => $v) {
                    $css->addCss($path.$v);
                }
            }
        }
 
        if (false && $user->getSetting('tools', 'dev_compress_js') && $DI['hostname']->config['meta']['site_id'] != 0) {
            $js->addJs('/min/common_'.$DI['overseer']->getSiteName().'_js_ver'.$DI['resconf']->getVerJS().'_ru.js', false, false, array('async' => 'async'));
        }
        else {
            $sysJs = $DI['db']->query(
                '
                    SELECT
                        `srjg`.`group_folder`,
                        `srj`.`js_name`,
                        `srj`.`js_lang`
                    FROM `sys_resources_js` AS `srj`, `sys_resources_js_groups` AS `srjg`
                    WHERE `srjg`.`group_id`=`srj`.`group_id` AND `srj`.`js_type`=\'system\' AND `srj`.`js_skip`=0
                    ORDER BY `srjg`.`group_order` ASC, `srj`.`js_order` ASC
                '
            );
 
            while($row = $sysJs->fetch()) {
                if ($row['js_lang']) {
                    $js->addJs('/api/utils/builder/buildLangForJSByDirFile?file='.$row['group_folder'].$row['js_name'].'&trans='.$row['js_lang']);
                }
                else {
                    $js->addJs($row['group_folder'].$row['js_name']);
                }
            }
 
 
            $modules   = $DI['hostname']->config['system']['package']['modules'];
            $name      = $DI['hostname']->config['system']['package']['name'];
            $siteId    = $DI['hostname']->config['meta']['site_id'];
            $packageId = $DI['hostname']->config['system']['package']['id'];
 
            if($packageId) {
                $packageJs = $DI['db']->query('SELECT * FROM `sys_resources_js` WHERE `package_id`='.$packageId.' AND `js_type`=\'package\' ORDER BY `js_order` ASC');
 
                while($row = $packageJs->fetch()) {
                    if ($row['js_lang']) {
                        $js->addJs('/api/utils/builder/buildLangForJSByDirFile?file='.'js/'.$row['js_name'].'&trans='.$row['js_lang']);
                    }
                    else {
                        $js->addJs('js/'.$row['js_name']);
                    }
                }
            }
 
 
 
            $siteJs = $DI['db']->query('SELECT * FROM `sys_resources_js` WHERE `site_id`='.$siteId.' AND `js_type`=\'site\' ORDER BY `js_order` ASC');
 
 
            while($row = $siteJs->fetch()) {
                if ($row['js_lang']) {
                    $js->addJs('/api/utils/builder/buildLangForJSByDirFile?file='.'js/'.$row['js_name'].'&trans='.$row['js_lang']);
                }
                else {
                    $js->addJs('js/'.$row['js_name']);
                }
            }
 
            $js->addJs('js/packages/'.$name.'.js');
 
            if (sizeof($modules)) {
                foreach($modules as $i => $v) {
                    $addr = 'js/controllers/'.$name.'/'.$i.'.js';
 
                    if (!is_readable($addr))
                        continue;
 
                    $js->addJs($addr);
                }
            }
 
            $js->addJs('js/main.js');
        }
 
    return $Assets;
  });
 
  $DI->set('view', function () use ($DI) {
    $EventManager = new \Phalcon\Events\Manager();
 
//    Пример обработки события в \Core\Lib\Mustache (line 42)
//    $EventManager->attach('mustache:testEvent', function () {
//      die('WOO WOOOOOOOOOOOOOOOOOOO!!!!11');
//    });
 
    //$View = new Phalcon\Mvc\View();
 
        $View = new \Core\Extenders\MvcView();
 
    $View->setEventsManager($EventManager);
 
    $View->setViewsDir($DI['hostname']->config->view->path);
    $View->setLayoutsDir('layouts/');
    $View->setPartialsDir('partials/');
    $View->setMainView('main');
 
    $Engine = new Core\Lib\Mustache($View, $DI);
 
    $NativeEngine = new Phalcon\Mvc\View\Engine\Php($View, $DI);
 
    $View->registerEngines([
      '.hbs' => $Engine,
      '.phtml' => $NativeEngine
    ]);
 
    return $View;
  });
 
    $html = $App->handle($_SERVER["REQUEST_URI"])->getContent();
 
    if ($DI['request']->isAjax()) {
 
        (new \Core\Lib\JSONResponse(\Core\Lib\JSONResponse::SUCCESS))->send(
            [
                'status' => 'success',
                'hapi' => [
                    'title'      => $DI['overseer']->getMetaTitle(),
                    'container'  => $DI['overseer']->getJSContainer(),
                    'package'    => $DI['overseer']->getJSPackage(),
                    'controller' => $DI['overseer']->getJSController(),
                    'action'     => $DI['overseer']->getJSAction()
                ],
                'html' => $html
            ]
        );
    }
    else
        echo $html;
 
 
    
 
 
} catch (Core\Lib\ApiException $apiException) {
 
  if ($DI['hostname']->config->debug->enableApi) {
    $DI['debug']->onUncaughtException($apiException);
  }
 
  (new Core\Lib\JSONResponse(\Core\Lib\JSONResponse::ERROR))->send($apiException);
 
  //$DI['response']->setHeader('Content-type', 'application/json')
  //  ->setJsonContent(["status" => false, "error" => ["message" => $apiException->getMessage()]])->send();
} catch (Phalcon\Exception $e) {
  if ($DI['hostname']->config->debug->enable && !$DI['hostname']->checkMode(Core\Lib\Hostname::API_MODE)) {
    $DI['debug']->onUncaughtException($e);
  }
 
  echo "Error: {$e->getMessage()}<br>{$e->getFile()}:{$e->getLine()}";
}
KeyValue
_url/upl/t/DL3UVqVK_150x150.jpg
KeyValue
REDIRECT_REDIRECT_STATUS200
REDIRECT_STATUS200
HTTP_HOSTpic.fullrest.ru
HTTP_X_FORWARDED_FOR10.2.215.116
HTTP_X_FORWARDED_PROTOhttp
HTTP_X_FORWARDED_PORT80
HTTP_CONNECTIONclose
HTTP_ACCEPT*/*
HTTP_ACCEPT_ENCODINGgzip, deflate, br
HTTP_USER_AGENTMozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_SENTRY_TRACE2354b14112224fde8197609713bef2e6-bb95b61acf493b00
HTTP_BAGGAGEsentry-trace_id=2354b14112224fde8197609713bef2e6,sentry-environment=production,sentry-release=deacd8094df5b48881a8948aedd837b6ac6d2234,sentry-public_key=e813de38a67c87505807bf0cc612b572
HTTP_VIA1.1 squid-proxy-5b5d847c96-4swr9 (squid/6.13)
HTTP_CACHE_CONTROLmax-age=259200
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SERVER_SIGNATURE<address>Apache/2.4.62 (Debian) Server at pic.fullrest.ru Port 80</address>\n
SERVER_SOFTWAREApache/2.4.62 (Debian)
SERVER_NAMEpic.fullrest.ru
SERVER_ADDR127.0.0.1
SERVER_PORT80
REMOTE_ADDR216.73.216.141
DOCUMENT_ROOT/var/www/fullrest-team/data/www/fullrest.net
REQUEST_SCHEMEhttp
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT/var/www/fullrest-team/data/www/fullrest.net
SERVER_ADMINwebmaster@fullrest.net
SCRIPT_FILENAME/var/www/fullrest-team/data/www/fullrest.net/public/index.php
REMOTE_PORT32804
REDIRECT_URL/public/upl/t/DL3UVqVK_150x150.jpg
REDIRECT_QUERY_STRING_url=/upl/t/DL3UVqVK_150x150.jpg
GATEWAY_INTERFACECGI/1.1
SERVER_PROTOCOLHTTP/1.0
REQUEST_METHODGET
QUERY_STRING_url=/upl/t/DL3UVqVK_150x150.jpg
REQUEST_URI/upl/t/DL3UVqVK_150x150.jpg
SCRIPT_NAME/public/index.php
PHP_SELF/public/index.php
REQUEST_TIME_FLOAT1759965754.5718
REQUEST_TIME1759965754
#Path
0/var/www/fullrest-team/data/www/fullrest.net/public/index.php
1/var/www/fullrest-team/data/www/fullrest.net/Core/Lib/Vendor/autoload.php
2/var/www/fullrest-team/data/www/fullrest.net/Core/Lib/Vendor/composer/autoload_real.php
3/var/www/fullrest-team/data/www/fullrest.net/Core/Lib/Vendor/composer/platform_check.php
4/var/www/fullrest-team/data/www/fullrest.net/Core/Lib/Vendor/composer/ClassLoader.php
5/var/www/fullrest-team/data/www/fullrest.net/Core/Lib/Vendor/composer/autoload_static.php
6/var/www/fullrest-team/data/www/fullrest.net/Core/Lib/Debug.php
7/var/www/fullrest-team/data/www/fullrest.net/Core/Lib/Hostname.php
8/var/www/fullrest-team/data/www/fullrest.net/Cache/Sites/hostnames.php
9/var/www/fullrest-team/data/www/fullrest.net/Cache/Sites/Configs/config_sid_2.php
10/var/www/fullrest-team/data/www/fullrest.net/Core/Lib/Overseer.php
11/var/www/fullrest-team/data/www/fullrest.net/Core/Lib/OpenGraph.php
12/var/www/fullrest-team/data/www/fullrest.net/Config/global.loader.php
13/var/www/fullrest-team/data/www/fullrest.net/Config/global.router.php
14/var/www/fullrest-team/data/www/fullrest.net/Config/global.modules.php
15/var/www/fullrest-team/data/www/fullrest.net/Cache/Sites/Routes/routes_sid_2.php
16/var/www/fullrest-team/data/www/fullrest.net/Core/Extenders/MvcView.php
17/var/www/fullrest-team/data/www/fullrest.net/Core/Lib/Mustache.php
18/var/www/fullrest-team/data/www/fullrest.net/Core/Lib/Vendor/mustache/mustache/src/compat.php
19/var/www/fullrest-team/data/www/fullrest.net/Core/Lib/Vendor/mustache/mustache/src/Cache.php
20/var/www/fullrest-team/data/www/fullrest.net/Core/Lib/Vendor/mustache/mustache/src/Cache/AbstractCache.php
21/var/www/fullrest-team/data/www/fullrest.net/Core/Lib/Vendor/mustache/mustache/src/Cache/FilesystemCache.php
22/var/www/fullrest-team/data/www/fullrest.net/Core/Lib/Vendor/mustache/mustache/src/Cache/NoopCache.php
23/var/www/fullrest-team/data/www/fullrest.net/Core/Lib/Vendor/mustache/mustache/src/Compiler.php
24/var/www/fullrest-team/data/www/fullrest.net/Core/Lib/Vendor/mustache/mustache/src/Context.php
25/var/www/fullrest-team/data/www/fullrest.net/Core/Lib/Vendor/mustache/mustache/src/Engine.php
26/var/www/fullrest-team/data/www/fullrest.net/Core/Lib/Vendor/mustache/mustache/src/Exception.php
27/var/www/fullrest-team/data/www/fullrest.net/Core/Lib/Vendor/mustache/mustache/src/Exception/InvalidArgumentException.php
28/var/www/fullrest-team/data/www/fullrest.net/Core/Lib/Vendor/mustache/mustache/src/Exception/LogicException.php
29/var/www/fullrest-team/data/www/fullrest.net/Core/Lib/Vendor/mustache/mustache/src/Exception/RuntimeException.php
30/var/www/fullrest-team/data/www/fullrest.net/Core/Lib/Vendor/mustache/mustache/src/Exception/SyntaxException.php
31/var/www/fullrest-team/data/www/fullrest.net/Core/Lib/Vendor/mustache/mustache/src/Exception/UnknownFilterException.php
32/var/www/fullrest-team/data/www/fullrest.net/Core/Lib/Vendor/mustache/mustache/src/Exception/UnknownHelperException.php
33/var/www/fullrest-team/data/www/fullrest.net/Core/Lib/Vendor/mustache/mustache/src/Exception/UnknownTemplateException.php
34/var/www/fullrest-team/data/www/fullrest.net/Core/Lib/Vendor/mustache/mustache/src/HelperCollection.php
35/var/www/fullrest-team/data/www/fullrest.net/Core/Lib/Vendor/mustache/mustache/src/LambdaHelper.php
36/var/www/fullrest-team/data/www/fullrest.net/Core/Lib/Vendor/mustache/mustache/src/Loader.php
37/var/www/fullrest-team/data/www/fullrest.net/Core/Lib/Vendor/mustache/mustache/src/Loader/ArrayLoader.php
38/var/www/fullrest-team/data/www/fullrest.net/Core/Lib/Vendor/mustache/mustache/src/Loader/MutableLoader.php
39/var/www/fullrest-team/data/www/fullrest.net/Core/Lib/Vendor/mustache/mustache/src/Loader/CascadingLoader.php
40/var/www/fullrest-team/data/www/fullrest.net/Core/Lib/Vendor/mustache/mustache/src/Loader/FilesystemLoader.php
41/var/www/fullrest-team/data/www/fullrest.net/Core/Lib/Vendor/mustache/mustache/src/Loader/InlineLoader.php
42/var/www/fullrest-team/data/www/fullrest.net/Core/Lib/Vendor/mustache/mustache/src/Loader/ProductionFilesystemLoader.php
43/var/www/fullrest-team/data/www/fullrest.net/Core/Lib/Vendor/mustache/mustache/src/Loader/StringLoader.php
44/var/www/fullrest-team/data/www/fullrest.net/Core/Lib/Vendor/mustache/mustache/src/Logger.php
45/var/www/fullrest-team/data/www/fullrest.net/Core/Lib/Vendor/mustache/mustache/src/Logger/AbstractLogger.php
46/var/www/fullrest-team/data/www/fullrest.net/Core/Lib/Vendor/mustache/mustache/src/Logger/StreamLogger.php
47/var/www/fullrest-team/data/www/fullrest.net/Core/Lib/Vendor/mustache/mustache/src/Parser.php
48/var/www/fullrest-team/data/www/fullrest.net/Core/Lib/Vendor/mustache/mustache/src/Source.php
49/var/www/fullrest-team/data/www/fullrest.net/Core/Lib/Vendor/mustache/mustache/src/Source/FilesystemSource.php
50/var/www/fullrest-team/data/www/fullrest.net/Core/Lib/Vendor/mustache/mustache/src/Template.php
51/var/www/fullrest-team/data/www/fullrest.net/Core/Lib/Vendor/mustache/mustache/src/Tokenizer.php
52/var/www/fullrest-team/data/www/fullrest.net/Core/Extenders/MustacheLoaderWithMinifier.php
Memory
Usage2097152