Форумы / National / Russian / Тех. поддержка / Cotonti и php7

работа на сервере с php7

Edward
#42881 11.05.2017 19:58

PHP 7.1.5

Все падает при входе в админку:

2017/05/11 21:46:05 [error] 6270#6270: *179 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Using $this when not in object context in /home/edward/dev/webdev/a2r/system/cotemplate.php:404
Stack trace:
#0 [internal function]: XTemplate::substitute_var(Array)
#1 /home/edward/dev/webdev/a2r/system/cotemplate.php(285): preg_replace_callback('`\\{((?:[\\w\\.\\-]...', 'XTemplate::subs...', '{PHP.cfg.system...')
#2 [internal function]: XTemplate::restart_include_files(Array)
#3 /home/edward/dev/webdev/a2r/system/cotemplate.php(384): preg_replace_callback('`\\{FILE\\s+("|')...', 'XTemplate::rest...', '<!-- BEGIN: MAI...')
#4 /home/edward/dev/webdev/a2r/system/cotemplate.php(336): XTemplate->compile('<!-- BEGIN: MAI...')
#5 /home/edward/dev/webdev/a2r/system/cotemplate.php(88): XTemplate->restart('system/admin/tp...')
#6 /home/edward/dev/webdev/a2r/system/admin/admin.home.php(12): XTemplate->__construct('system/admin/tp...')
#7 /home/edward/dev/webdev/a2r/system/admin/admin.main.php(67): require('/home/edward/de...')
#8 /home/edward/dev/webdev/a2r/admin.php(" while reading response header from upstream, client: 127.0.0.1, server: www.a2r.loc, request: "GET /admin.php HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/php-fpm.sock:", host: "www.a2r.loc"

 

Email: ed.gabishev@gmail.com
Telegram: https://t.me/Ed_Gaba