Phalcon Framework 3.4.1

Error: Call to a member function getName() on boolean

/var/www/site/backend/Modules/Site/Controllers/PagesController.php (19)
#0Backend\Modules\Site\Controllers\PagesController->IndexAction(dostavka-i-oplata)
#1Phalcon\Dispatcher->callActionMethod(Object(Backend\Modules\Site\Controllers\PagesController), IndexAction, Array([url] => dostavka-i-oplata))
#2Phalcon\Dispatcher->dispatch()
#3Phalcon\Mvc\Application->handle()
/var/www/site/backend/App.php (47)
<?php
 
namespace Backend;
 
use Phalcon\DiInterface;
use Phalcon\Mvc\Application;
use Phalcon\Mvc\Router;
 
class App
{
  /**
   * @var \Phalcon\DiInterface
   */
  private $_di;
 
  /**
   * @var \Phalcon\Mvc\Application
   */
  private $_application;
 
  /**
   * @var \Phalcon\Config
   */
  private $_config;
 
  /**
   * App constructor.
   *
   * @param $_dependencyInjector
   */
  public function __construct(DiInterface $_dependencyInjector)
  {
    $this->_di = $_dependencyInjector;
 
    $this->_config = $_dependencyInjector->get('config');
 
    $this->createPhalconApplication();
    $this->registerRoutes();
    $this->registerServices();
  }
 
  /**
   * @return string
   */
  public function getContent()
  {
    return $this->_application->handle()->getContent();
  }
 
  /**
   * @return \Phalcon\Mvc\Application
   */
  private function createPhalconApplication()
  {
    /**
     * Приложение
     */
    $this->_application = new Application($this->_di);
 
    /**
     * Регистрация установленных модулей
     */
    $this->_application->registerModules([
      'admin' => [
        'className' => 'Backend\Modules\Admin\Module',
      ],
      'site'  => [
        'className' => 'Backend\Modules\Site\Module',
      ],
      'api'   => [
        'className' => 'Backend\Modules\API\Module',
      ],
    ]);
 
    return $this->_application;
  }
 
  private function registerRoutes()
  {
    /**
     * Registering a router
     */
    $this->_di->set('router', function () {
      $router = new Router(false);
 
      $router
        ->removeExtraSlashes(true)
        ->mount(new \Backend\Modules\Site\Routes())
        ->mount(new \Backend\Modules\Admin\Routes())
        ->mount(new \Backend\Modules\API\Routes());
 
            $router->setDefaultModule('site');
      $router->notFound([
        'controller' => 'Index',
        'action'     => 'Error',
      ]);
 
      return $router;
    });
  }
 
  private function registerServices()
  {
    $di = $this->_di;
 
    $di->set('redisConnection', function () {
 
      $config = $this->get('config');
 
      $Redis = new \Redis();
      $Redis->connect($config->redis->connection->host);
 
      return $Redis;
    });
  }
}
#4Backend\App->getContent()
/var/www/site/backend/config/app.php (27)
<?php
 
define('BASE_DIR', dirname(__DIR__));
 
ini_set('memory_limit', '-1');
 
//Временная зона
ini_set('date.timezone', 'Europe/Minsk');
 
if ( !defined('DEBUG') ) {
  error_reporting(0);
  ini_set('display_errors', '0');
}
 
/**
 * Read loader
 */
include __DIR__ . '/loader.php';
 
/**
 * Read services
 */
include __DIR__ . '/services.php';
 
$app = new \Backend\App($di);
 
echo $app->getContent();
#5include(/var/www/site/backend/config/app.php)
/var/www/site/backend/public/index.php (10)
<?php
 
define('DEBUG', true);
 
error_reporting(E_ALL);
ini_set('display_errors', 1);
 
(new Phalcon\Debug())->listen();
 
include dirname(__DIR__) . '/config/app.php';
KeyValue
_url/information/dostavka-i-oplata
KeyValue
USERwww-data
HOME/var/www
HTTP_CONNECTIONKeep-Alive
HTTP_HOSTxn----8sbccrusmi0alx2jb.xn--90ais
HTTP_ACCEPT_ENCODINGbr,gzip
HTTP_IF_MODIFIED_SINCEMon, 24 Feb 2020 12:42:47 GMT
HTTP_ACCEPT_LANGUAGEen-US,en;q=0.5
HTTP_ACCEPTtext/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENTCCBot/2.0 (https://commoncrawl.org/faq/)
SCRIPT_FILENAME/var/www/site/backend/public/index.php
REDIRECT_STATUS200
SERVER_NAMEэйвон-беларусь.бел
SERVER_PORT80
SERVER_ADDR178.172.161.243
REMOTE_PORT58996
REMOTE_ADDR18.232.51.69
SERVER_SOFTWAREnginx/1.6.2
GATEWAY_INTERFACECGI/1.1
SERVER_PROTOCOLHTTP/1.1
DOCUMENT_ROOT/var/www/site/backend/public
DOCUMENT_URI/index.php
REQUEST_URI/information/dostavka-i-oplata
SCRIPT_NAME/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHODGET
QUERY_STRING_url=/information/dostavka-i-oplata
FCGI_ROLERESPONDER
PHP_SELF/index.php
REQUEST_TIME_FLOAT1586211802.3629
REQUEST_TIME1586211802
#Path
0/var/www/site/backend/public/index.php
1/var/www/site/backend/config/app.php
2/var/www/site/backend/config/loader.php
3/var/www/site/backend/vendor/autoload.php
4/var/www/site/backend/vendor/composer/autoload_real.php
5/var/www/site/backend/vendor/composer/ClassLoader.php
6/var/www/site/backend/vendor/composer/autoload_static.php
7/var/www/site/backend/vendor/symfony/polyfill-ctype/bootstrap.php
8/var/www/site/backend/vendor/cakephp/core/functions.php
9/var/www/site/backend/vendor/symfony/polyfill-mbstring/bootstrap.php
10/var/www/site/backend/vendor/symfony/polyfill-php73/bootstrap.php
11/var/www/site/backend/vendor/symfony/polyfill-php73/Php73.php
12/var/www/site/backend/vendor/ralouphie/getallheaders/src/getallheaders.php
13/var/www/site/backend/vendor/cakephp/collection/functions.php
14/var/www/site/backend/vendor/cakephp/utility/bootstrap.php
15/var/www/site/backend/vendor/cakephp/utility/Inflector.php
16/var/www/site/backend/vendor/guzzlehttp/promises/src/functions_include.php
17/var/www/site/backend/vendor/guzzlehttp/promises/src/functions.php
18/var/www/site/backend/vendor/guzzlehttp/psr7/src/functions_include.php
19/var/www/site/backend/vendor/guzzlehttp/psr7/src/functions.php
20/var/www/site/backend/vendor/markbaker/complex/classes/src/functions/abs.php
21/var/www/site/backend/vendor/markbaker/complex/classes/src/functions/acos.php
22/var/www/site/backend/vendor/markbaker/complex/classes/src/functions/acosh.php
23/var/www/site/backend/vendor/markbaker/complex/classes/src/functions/acot.php
24/var/www/site/backend/vendor/markbaker/complex/classes/src/functions/acoth.php
25/var/www/site/backend/vendor/markbaker/complex/classes/src/functions/acsc.php
26/var/www/site/backend/vendor/markbaker/complex/classes/src/functions/acsch.php
27/var/www/site/backend/vendor/markbaker/complex/classes/src/functions/argument.php
28/var/www/site/backend/vendor/markbaker/complex/classes/src/functions/asec.php
29/var/www/site/backend/vendor/markbaker/complex/classes/src/functions/asech.php
30/var/www/site/backend/vendor/markbaker/complex/classes/src/functions/asin.php
31/var/www/site/backend/vendor/markbaker/complex/classes/src/functions/asinh.php
32/var/www/site/backend/vendor/markbaker/complex/classes/src/functions/atan.php
33/var/www/site/backend/vendor/markbaker/complex/classes/src/functions/atanh.php
34/var/www/site/backend/vendor/markbaker/complex/classes/src/functions/conjugate.php
35/var/www/site/backend/vendor/markbaker/complex/classes/src/functions/cos.php
36/var/www/site/backend/vendor/markbaker/complex/classes/src/functions/cosh.php
37/var/www/site/backend/vendor/markbaker/complex/classes/src/functions/cot.php
38/var/www/site/backend/vendor/markbaker/complex/classes/src/functions/coth.php
39/var/www/site/backend/vendor/markbaker/complex/classes/src/functions/csc.php
40/var/www/site/backend/vendor/markbaker/complex/classes/src/functions/csch.php
41/var/www/site/backend/vendor/markbaker/complex/classes/src/functions/exp.php
42/var/www/site/backend/vendor/markbaker/complex/classes/src/functions/inverse.php
43/var/www/site/backend/vendor/markbaker/complex/classes/src/functions/ln.php
44/var/www/site/backend/vendor/markbaker/complex/classes/src/functions/log2.php
45/var/www/site/backend/vendor/markbaker/complex/classes/src/functions/log10.php
46/var/www/site/backend/vendor/markbaker/complex/classes/src/functions/negative.php
47/var/www/site/backend/vendor/markbaker/complex/classes/src/functions/pow.php
48/var/www/site/backend/vendor/markbaker/complex/classes/src/functions/rho.php
49/var/www/site/backend/vendor/markbaker/complex/classes/src/functions/sec.php
50/var/www/site/backend/vendor/markbaker/complex/classes/src/functions/sech.php
51/var/www/site/backend/vendor/markbaker/complex/classes/src/functions/sin.php
52/var/www/site/backend/vendor/markbaker/complex/classes/src/functions/sinh.php
53/var/www/site/backend/vendor/markbaker/complex/classes/src/functions/sqrt.php
54/var/www/site/backend/vendor/markbaker/complex/classes/src/functions/tan.php
55/var/www/site/backend/vendor/markbaker/complex/classes/src/functions/tanh.php
56/var/www/site/backend/vendor/markbaker/complex/classes/src/functions/theta.php
57/var/www/site/backend/vendor/markbaker/complex/classes/src/operations/add.php
58/var/www/site/backend/vendor/markbaker/complex/classes/src/operations/subtract.php
59/var/www/site/backend/vendor/markbaker/complex/classes/src/operations/multiply.php
60/var/www/site/backend/vendor/markbaker/complex/classes/src/operations/divideby.php
61/var/www/site/backend/vendor/markbaker/complex/classes/src/operations/divideinto.php
62/var/www/site/backend/vendor/markbaker/matrix/classes/src/functions/adjoint.php
63/var/www/site/backend/vendor/markbaker/matrix/classes/src/functions/antidiagonal.php
64/var/www/site/backend/vendor/markbaker/matrix/classes/src/functions/cofactors.php
65/var/www/site/backend/vendor/markbaker/matrix/classes/src/functions/determinant.php
66/var/www/site/backend/vendor/markbaker/matrix/classes/src/functions/diagonal.php
67/var/www/site/backend/vendor/markbaker/matrix/classes/src/functions/identity.php
68/var/www/site/backend/vendor/markbaker/matrix/classes/src/functions/inverse.php
69/var/www/site/backend/vendor/markbaker/matrix/classes/src/functions/minors.php
70/var/www/site/backend/vendor/markbaker/matrix/classes/src/functions/trace.php
71/var/www/site/backend/vendor/markbaker/matrix/classes/src/functions/transpose.php
72/var/www/site/backend/vendor/markbaker/matrix/classes/src/operations/add.php
73/var/www/site/backend/vendor/markbaker/matrix/classes/src/operations/directsum.php
74/var/www/site/backend/vendor/markbaker/matrix/classes/src/operations/subtract.php
75/var/www/site/backend/vendor/markbaker/matrix/classes/src/operations/multiply.php
76/var/www/site/backend/vendor/markbaker/matrix/classes/src/operations/divideby.php
77/var/www/site/backend/vendor/markbaker/matrix/classes/src/operations/divideinto.php
78/var/www/site/backend/vendor/guzzlehttp/guzzle/src/functions_include.php
79/var/www/site/backend/vendor/guzzlehttp/guzzle/src/functions.php
80/var/www/site/backend/config/services.php
81/var/www/site/backend/App.php
82/var/www/site/backend/config/config.php
83/var/www/site/backend/config/connection.php
84/var/www/site/backend/Modules/Site/Routes.php
85/var/www/site/backend/Modules/Admin/Routes.php
86/var/www/site/backend/Modules/API/Routes.php
87/var/www/site/backend/Modules/Site/Module.php
88/var/www/site/backend/Modules/Site/Security.php
89/var/www/site/backend/Modules/Site/Controllers/PagesController.php
90/var/www/site/backend/Modules/Site/Controller.php
91/var/www/site/backend/Library/Annotations/ACL.php
92/var/www/site/backend/Library/WebpackAssets.php
93/var/www/site/backend/Modules/Admin/Models/Pages.php
94/var/www/site/backend/Models/MySQL/Pages.php
95/var/www/site/backend/Library/Traits/ErrorMessages.php
96/var/www/site/backend/Library/Breadcrumbs.php
97/var/www/site/backend/Library/Logger/DbLogger.php
Memory
Usage2097152