Merge pull request #86 from apuc/add_document

update get-template-list method
This commit is contained in:
kavalar 2022-01-14 18:00:05 +03:00 committed by GitHub
commit 4cbb004c4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 99 additions and 4 deletions

View File

@ -78,7 +78,7 @@ return [
'components' => [ 'components' => [
'request' => [ 'request' => [
'csrfParam' => '_csrf-backend', 'csrfParam' => '_csrf-backend',
'baseUrl' => '', // /secure 'baseUrl' => '/secure',
'parsers' => [ 'parsers' => [
'application/json' => 'yii\web\JsonParser', 'application/json' => 'yii\web\JsonParser',
'text/xml' => 'yii/web/XmlParser', 'text/xml' => 'yii/web/XmlParser',

View File

@ -1,5 +1,6 @@
<?php <?php
use common\helpers\TemplateDocumentTypeHelper;
use yii\helpers\Html; use yii\helpers\Html;
use yii\grid\GridView; use yii\grid\GridView;
@ -25,6 +26,14 @@ $this->params['breadcrumbs'][] = $this->title;
'title', 'title',
'created_at', 'created_at',
'updated_at', 'updated_at',
[
'attribute' => 'document_type',
// 'format' => 'raw',
'filter' => TemplateDocumentTypeHelper::getDocumentTypeList(),
'value' => function($model){
return TemplateDocumentTypeHelper::getDocumentType($model->document_type);
}
],
[ [
'class' => 'yii\grid\ActionColumn', 'class' => 'yii\grid\ActionColumn',

View File

@ -7,8 +7,8 @@ use yii\helpers\ArrayHelper;
class TemplateDocumentTypeHelper class TemplateDocumentTypeHelper
{ {
const STATUS_ACT = 0; const STATUS_ACT = 1;
const STATUS_CONTRACT = 1; const STATUS_CONTRACT = 2;
public static function getDocumentTypeList() :array public static function getDocumentTypeList() :array
{ {

View File

@ -91175,3 +91175,44 @@
127.0.0.1 - - [14/Jan/2022:15:38:31 +0300] "GET /debug/default/toolbar?tag=61e16ec699acc HTTP/1.1" 200 3408 "http://backend.guild.loc/document/document/view?id=88" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0" 127.0.0.1 - - [14/Jan/2022:15:38:31 +0300] "GET /debug/default/toolbar?tag=61e16ec699acc HTTP/1.1" 200 3408 "http://backend.guild.loc/document/document/view?id=88" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0"
127.0.0.1 - - [14/Jan/2022:15:38:32 +0300] "GET /document/document HTTP/1.1" 200 14853 "http://backend.guild.loc/document/template/index?id=102" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0" 127.0.0.1 - - [14/Jan/2022:15:38:32 +0300] "GET /document/document HTTP/1.1" 200 14853 "http://backend.guild.loc/document/template/index?id=102" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0"
127.0.0.1 - - [14/Jan/2022:15:38:32 +0300] "GET /debug/default/toolbar?tag=61e16ec80df28 HTTP/1.1" 200 3408 "http://backend.guild.loc/document/document" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0" 127.0.0.1 - - [14/Jan/2022:15:38:32 +0300] "GET /debug/default/toolbar?tag=61e16ec80df28 HTTP/1.1" 200 3408 "http://backend.guild.loc/document/document" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0"
127.0.0.1 - - [14/Jan/2022:16:39:10 +0300] "GET /api/template/get-template-fields?template_id=94 HTTP/1.1" 200 1768 "-" "PostmanRuntime/7.28.4"
127.0.0.1 - - [14/Jan/2022:17:10:27 +0300] "GET /api/profile/profile-with-report-permission?id=3 HTTP/1.1" 200 443 "-" "PostmanRuntime/7.28.4"
127.0.0.1 - - [14/Jan/2022:17:11:21 +0300] "GET /api/template/get-template-list HTTP/1.1" 200 2002 "-" "PostmanRuntime/7.28.4"
127.0.0.1 - - [14/Jan/2022:17:12:14 +0300] "GET /document/template HTTP/1.1" 200 14117 "http://backend.guild.loc/document/document" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0"
127.0.0.1 - - [14/Jan/2022:17:12:14 +0300] "GET /debug/default/toolbar?tag=61e184be331b5 HTTP/1.1" 200 3409 "http://backend.guild.loc/document/template" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0"
127.0.0.1 - - [14/Jan/2022:17:12:14 +0300] "GET /favicon.ico HTTP/1.1" 200 318 "http://backend.guild.loc/document/template" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0"
127.0.0.1 - - [14/Jan/2022:17:12:15 +0300] "GET /document/template/create HTTP/1.1" 200 14318 "http://backend.guild.loc/document/template" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0"
127.0.0.1 - - [14/Jan/2022:17:12:15 +0300] "GET /debug/default/toolbar?tag=61e184bf3c485 HTTP/1.1" 200 3410 "http://backend.guild.loc/document/template/create" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0"
127.0.0.1 - - [14/Jan/2022:17:12:15 +0300] "GET /assets/71772193/fonts/glyphicons-halflings-regular.woff2 HTTP/1.1" 200 18028 "http://backend.guild.loc/assets/71772193/css/bootstrap.css" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0"
127.0.0.1 - - [14/Jan/2022:17:12:25 +0300] "POST /document/template/create HTTP/1.1" 302 5 "http://backend.guild.loc/document/template/create" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0"
127.0.0.1 - - [14/Jan/2022:17:12:26 +0300] "GET /document/template-document-field/create?template_id=103 HTTP/1.1" 200 14169 "http://backend.guild.loc/document/template/create" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0"
127.0.0.1 - - [14/Jan/2022:17:12:26 +0300] "GET /debug/default/toolbar?tag=61e184ca036b4 HTTP/1.1" 200 3426 "http://backend.guild.loc/document/template-document-field/create?template_id=103" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0"
127.0.0.1 - - [14/Jan/2022:17:12:30 +0300] "POST /document/template-document-field/create?template_id=103 HTTP/1.1" 302 5 "http://backend.guild.loc/document/template-document-field/create?template_id=103" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0"
127.0.0.1 - - [14/Jan/2022:17:12:30 +0300] "GET /document/template/view?id=103 HTTP/1.1" 200 13965 "http://backend.guild.loc/document/template-document-field/create?template_id=103" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0"
127.0.0.1 - - [14/Jan/2022:17:12:30 +0300] "GET /debug/default/toolbar?tag=61e184ce8f42f HTTP/1.1" 200 3410 "http://backend.guild.loc/document/template/view?id=103" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0"
127.0.0.1 - - [14/Jan/2022:17:12:30 +0300] "GET /favicon.ico HTTP/1.1" 200 318 "http://backend.guild.loc/document/template/view?id=103" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0"
127.0.0.1 - - [14/Jan/2022:17:19:24 +0300] "GET /api/template/get-template-list HTTP/1.1" 200 2236 "-" "PostmanRuntime/7.28.4"
127.0.0.1 - - [14/Jan/2022:17:19:52 +0300] "GET /api/template/get-template-list?document_type=0 HTTP/1.1" 200 2236 "-" "PostmanRuntime/7.28.4"
127.0.0.1 - - [14/Jan/2022:17:19:56 +0300] "GET /api/template/get-template-list?document_type=0 HTTP/1.1" 200 2236 "-" "PostmanRuntime/7.28.4"
127.0.0.1 - - [14/Jan/2022:17:21:12 +0300] "GET /api/template/get-template-list?document_type=0 HTTP/1.1" 200 2236 "-" "PostmanRuntime/7.28.4"
127.0.0.1 - - [14/Jan/2022:17:21:27 +0300] "GET /api/template/get-template-list?document_type=1 HTTP/1.1" 500 3812 "-" "PostmanRuntime/7.28.4"
127.0.0.1 - - [14/Jan/2022:17:22:08 +0300] "GET /api/template/get-template-list?document_type=0 HTTP/1.1" 200 2236 "-" "PostmanRuntime/7.28.4"
127.0.0.1 - - [14/Jan/2022:17:23:03 +0300] "GET /api/template/get-template-list?document_type=0 HTTP/1.1" 500 1160 "-" "PostmanRuntime/7.28.4"
127.0.0.1 - - [14/Jan/2022:17:23:13 +0300] "GET /api/template/get-template-list?document_type=0 HTTP/1.1" 200 13 "-" "PostmanRuntime/7.28.4"
127.0.0.1 - - [14/Jan/2022:17:23:21 +0300] "GET /api/template/get-template-list?document_type=1 HTTP/1.1" 200 13 "-" "PostmanRuntime/7.28.4"
127.0.0.1 - - [14/Jan/2022:17:23:51 +0300] "GET /api/template/get-template-list?document_type=1 HTTP/1.1" 500 3819 "-" "PostmanRuntime/7.28.4"
127.0.0.1 - - [14/Jan/2022:17:24:21 +0300] "GET /api/template/get-template-list?document_type=1 HTTP/1.1" 500 3819 "-" "PostmanRuntime/7.28.4"
127.0.0.1 - - [14/Jan/2022:17:24:50 +0300] "GET /api/template/get-template-list?document_type=1 HTTP/1.1" 404 164 "-" "PostmanRuntime/7.28.4"
127.0.0.1 - - [14/Jan/2022:17:25:06 +0300] "GET /api/template/get-template-list?document_type=0 HTTP/1.1" 200 2236 "-" "PostmanRuntime/7.28.4"
127.0.0.1 - - [14/Jan/2022:17:26:17 +0300] "GET /api/template/get-template-list?document_type=1 HTTP/1.1" 200 466 "-" "PostmanRuntime/7.28.4"
127.0.0.1 - - [14/Jan/2022:17:26:31 +0300] "GET /api/template/get-template-list?document_type=0 HTTP/1.1" 200 2234 "-" "PostmanRuntime/7.28.4"
127.0.0.1 - - [14/Jan/2022:17:27:25 +0300] "GET /api/template/get-template-list?document_type=0 HTTP/1.1" 200 2234 "-" "PostmanRuntime/7.28.4"
127.0.0.1 - - [14/Jan/2022:17:27:36 +0300] "GET /api/template/get-template-list?document_type=0 HTTP/1.1" 200 2234 "-" "PostmanRuntime/7.28.4"
127.0.0.1 - - [14/Jan/2022:17:27:50 +0300] "GET /api/template/get-template-list?document_type=1 HTTP/1.1" 200 492 "-" "PostmanRuntime/7.28.4"
127.0.0.1 - - [14/Jan/2022:17:28:59 +0300] "GET /api/template/get-template-list?document_type=1 HTTP/1.1" 404 164 "-" "PostmanRuntime/7.28.4"
127.0.0.1 - - [14/Jan/2022:17:29:30 +0300] "GET /api/template/get-template-list?document_type=1 HTTP/1.1" 200 492 "-" "PostmanRuntime/7.28.4"
127.0.0.1 - - [14/Jan/2022:17:29:39 +0300] "GET /api/template/get-template-list?document_type=2 HTTP/1.1" 200 466 "-" "PostmanRuntime/7.28.4"
127.0.0.1 - - [14/Jan/2022:17:29:43 +0300] "GET /api/template/get-template-list HTTP/1.1" 200 2234 "-" "PostmanRuntime/7.28.4"
127.0.0.1 - - [14/Jan/2022:17:32:10 +0300] "GET /api/template/get-template-list HTTP/1.1" 200 2234 "-" "PostmanRuntime/7.28.4"
127.0.0.1 - - [14/Jan/2022:17:32:16 +0300] "GET /api/template/get-template-list?document_type=1 HTTP/1.1" 200 492 "-" "PostmanRuntime/7.28.4"
127.0.0.1 - - [14/Jan/2022:17:32:22 +0300] "GET /api/template/get-template-list?document_type=2 HTTP/1.1" 200 466 "-" "PostmanRuntime/7.28.4"

View File

@ -15327,3 +15327,41 @@ Stack trace:
2022/01/14 15:38:31 [error] 746#746: *603 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant IMG_GIF - assumed 'IMG_GIF' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_JPG - assumed 'IMG_JPG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_WBMP - assumed 'IMG_WBMP' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42" while reading response header from upstream, client: 127.0.0.1, server: backend.guild.loc, request: "GET /debug/default/toolbar?tag=61e16ec699acc HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "backend.guild.loc", referrer: "http://backend.guild.loc/document/document/view?id=88" 2022/01/14 15:38:31 [error] 746#746: *603 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant IMG_GIF - assumed 'IMG_GIF' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_JPG - assumed 'IMG_JPG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_WBMP - assumed 'IMG_WBMP' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42" while reading response header from upstream, client: 127.0.0.1, server: backend.guild.loc, request: "GET /debug/default/toolbar?tag=61e16ec699acc HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "backend.guild.loc", referrer: "http://backend.guild.loc/document/document/view?id=88"
2022/01/14 15:38:32 [error] 746#746: *603 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant IMG_GIF - assumed 'IMG_GIF' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_JPG - assumed 'IMG_JPG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_WBMP - assumed 'IMG_WBMP' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42" while reading response header from upstream, client: 127.0.0.1, server: backend.guild.loc, request: "GET /document/document HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "backend.guild.loc", referrer: "http://backend.guild.loc/document/template/index?id=102" 2022/01/14 15:38:32 [error] 746#746: *603 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant IMG_GIF - assumed 'IMG_GIF' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_JPG - assumed 'IMG_JPG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_WBMP - assumed 'IMG_WBMP' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42" while reading response header from upstream, client: 127.0.0.1, server: backend.guild.loc, request: "GET /document/document HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "backend.guild.loc", referrer: "http://backend.guild.loc/document/template/index?id=102"
2022/01/14 15:38:32 [error] 746#746: *603 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant IMG_GIF - assumed 'IMG_GIF' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_JPG - assumed 'IMG_JPG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_WBMP - assumed 'IMG_WBMP' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42" while reading response header from upstream, client: 127.0.0.1, server: backend.guild.loc, request: "GET /debug/default/toolbar?tag=61e16ec80df28 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "backend.guild.loc", referrer: "http://backend.guild.loc/document/document" 2022/01/14 15:38:32 [error] 746#746: *603 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant IMG_GIF - assumed 'IMG_GIF' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_JPG - assumed 'IMG_JPG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_WBMP - assumed 'IMG_WBMP' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42" while reading response header from upstream, client: 127.0.0.1, server: backend.guild.loc, request: "GET /debug/default/toolbar?tag=61e16ec80df28 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "backend.guild.loc", referrer: "http://backend.guild.loc/document/document"
2022/01/14 16:39:10 [error] 746#746: *610 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant IMG_GIF - assumed 'IMG_GIF' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_JPG - assumed 'IMG_JPG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_WBMP - assumed 'IMG_WBMP' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Notice: Undefined index: telegramBotToken in /var/www/guild.loc/frontend/config/main.php on line 102PHP message: PHP Notice: Undefined index: telegramBotChatId in /var/www/guild.loc/frontend/config/main.php on line 103" while reading response header from upstream, client: 127.0.0.1, server: guild.loc, request: "GET /api/template/get-template-fields?template_id=94 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "guild.loc"
2022/01/14 17:10:27 [error] 746#746: *622 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant IMG_GIF - assumed 'IMG_GIF' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_JPG - assumed 'IMG_JPG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_WBMP - assumed 'IMG_WBMP' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Notice: Undefined index: telegramBotToken in /var/www/guild.loc/frontend/config/main.php on line 102PHP message: PHP Notice: Undefined index: telegramBotChatId in /var/www/guild.loc/frontend/config/main.php on line 103" while reading response header from upstream, client: 127.0.0.1, server: guild.loc, request: "GET /api/profile/profile-with-report-permission?id=3 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "guild.loc"
2022/01/14 17:11:21 [error] 746#746: *622 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant IMG_GIF - assumed 'IMG_GIF' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_JPG - assumed 'IMG_JPG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_WBMP - assumed 'IMG_WBMP' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Notice: Undefined index: telegramBotToken in /var/www/guild.loc/frontend/config/main.php on line 102PHP message: PHP Notice: Undefined index: telegramBotChatId in /var/www/guild.loc/frontend/config/main.php on line 103" while reading response header from upstream, client: 127.0.0.1, server: guild.loc, request: "GET /api/template/get-template-list HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "guild.loc"
2022/01/14 17:12:14 [error] 746#746: *625 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant IMG_GIF - assumed 'IMG_GIF' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_JPG - assumed 'IMG_JPG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_WBMP - assumed 'IMG_WBMP' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42" while reading response header from upstream, client: 127.0.0.1, server: backend.guild.loc, request: "GET /document/template HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "backend.guild.loc", referrer: "http://backend.guild.loc/document/document"
2022/01/14 17:12:14 [error] 746#746: *625 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant IMG_GIF - assumed 'IMG_GIF' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_JPG - assumed 'IMG_JPG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_WBMP - assumed 'IMG_WBMP' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42" while reading response header from upstream, client: 127.0.0.1, server: backend.guild.loc, request: "GET /debug/default/toolbar?tag=61e184be331b5 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "backend.guild.loc", referrer: "http://backend.guild.loc/document/template"
2022/01/14 17:12:15 [error] 746#746: *628 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant IMG_GIF - assumed 'IMG_GIF' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_JPG - assumed 'IMG_JPG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_WBMP - assumed 'IMG_WBMP' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42" while reading response header from upstream, client: 127.0.0.1, server: backend.guild.loc, request: "GET /document/template/create HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "backend.guild.loc", referrer: "http://backend.guild.loc/document/template"
2022/01/14 17:12:15 [error] 746#746: *628 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant IMG_GIF - assumed 'IMG_GIF' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_JPG - assumed 'IMG_JPG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_WBMP - assumed 'IMG_WBMP' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42" while reading response header from upstream, client: 127.0.0.1, server: backend.guild.loc, request: "GET /debug/default/toolbar?tag=61e184bf3c485 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "backend.guild.loc", referrer: "http://backend.guild.loc/document/template/create"
2022/01/14 17:12:25 [error] 746#746: *628 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant IMG_GIF - assumed 'IMG_GIF' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_JPG - assumed 'IMG_JPG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_WBMP - assumed 'IMG_WBMP' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42" while reading response header from upstream, client: 127.0.0.1, server: backend.guild.loc, request: "POST /document/template/create HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "backend.guild.loc", referrer: "http://backend.guild.loc/document/template/create"
2022/01/14 17:12:26 [error] 746#746: *628 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant IMG_GIF - assumed 'IMG_GIF' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_JPG - assumed 'IMG_JPG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_WBMP - assumed 'IMG_WBMP' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42" while reading response header from upstream, client: 127.0.0.1, server: backend.guild.loc, request: "GET /document/template-document-field/create?template_id=103 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "backend.guild.loc", referrer: "http://backend.guild.loc/document/template/create"
2022/01/14 17:12:26 [error] 746#746: *628 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant IMG_GIF - assumed 'IMG_GIF' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_JPG - assumed 'IMG_JPG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_WBMP - assumed 'IMG_WBMP' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42" while reading response header from upstream, client: 127.0.0.1, server: backend.guild.loc, request: "GET /debug/default/toolbar?tag=61e184ca036b4 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "backend.guild.loc", referrer: "http://backend.guild.loc/document/template-document-field/create?template_id=103"
2022/01/14 17:12:30 [error] 746#746: *628 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant IMG_GIF - assumed 'IMG_GIF' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_JPG - assumed 'IMG_JPG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_WBMP - assumed 'IMG_WBMP' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42" while reading response header from upstream, client: 127.0.0.1, server: backend.guild.loc, request: "POST /document/template-document-field/create?template_id=103 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "backend.guild.loc", referrer: "http://backend.guild.loc/document/template-document-field/create?template_id=103"
2022/01/14 17:12:30 [error] 746#746: *628 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant IMG_GIF - assumed 'IMG_GIF' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_JPG - assumed 'IMG_JPG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_WBMP - assumed 'IMG_WBMP' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42" while reading response header from upstream, client: 127.0.0.1, server: backend.guild.loc, request: "GET /document/template/view?id=103 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "backend.guild.loc", referrer: "http://backend.guild.loc/document/template-document-field/create?template_id=103"
2022/01/14 17:12:30 [error] 746#746: *628 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant IMG_GIF - assumed 'IMG_GIF' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_JPG - assumed 'IMG_JPG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_WBMP - assumed 'IMG_WBMP' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42" while reading response header from upstream, client: 127.0.0.1, server: backend.guild.loc, request: "GET /debug/default/toolbar?tag=61e184ce8f42f HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "backend.guild.loc", referrer: "http://backend.guild.loc/document/template/view?id=103"
2022/01/14 17:19:24 [error] 746#746: *637 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant IMG_GIF - assumed 'IMG_GIF' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_JPG - assumed 'IMG_JPG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_WBMP - assumed 'IMG_WBMP' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Notice: Undefined index: telegramBotToken in /var/www/guild.loc/frontend/config/main.php on line 102PHP message: PHP Notice: Undefined index: telegramBotChatId in /var/www/guild.loc/frontend/config/main.php on line 103" while reading response header from upstream, client: 127.0.0.1, server: guild.loc, request: "GET /api/template/get-template-list HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "guild.loc"
2022/01/14 17:19:52 [error] 746#746: *637 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant IMG_GIF - assumed 'IMG_GIF' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_JPG - assumed 'IMG_JPG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_WBMP - assumed 'IMG_WBMP' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Notice: Undefined index: telegramBotToken in /var/www/guild.loc/frontend/config/main.php on line 102PHP message: PHP Notice: Undefined index: telegramBotChatId in /var/www/guild.loc/frontend/config/main.php on line 103" while reading response header from upstream, client: 127.0.0.1, server: guild.loc, request: "GET /api/template/get-template-list?document_type=0 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "guild.loc"
2022/01/14 17:19:56 [error] 746#746: *637 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant IMG_GIF - assumed 'IMG_GIF' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_JPG - assumed 'IMG_JPG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_WBMP - assumed 'IMG_WBMP' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Notice: Undefined index: telegramBotToken in /var/www/guild.loc/frontend/config/main.php on line 102PHP message: PHP Notice: Undefined index: telegramBotChatId in /var/www/guild.loc/frontend/config/main.php on line 103" while reading response header from upstream, client: 127.0.0.1, server: guild.loc, request: "GET /api/template/get-template-list?document_type=0 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "guild.loc"
2022/01/14 17:21:12 [error] 746#746: *641 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant IMG_GIF - assumed 'IMG_GIF' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_JPG - assumed 'IMG_JPG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_WBMP - assumed 'IMG_WBMP' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Notice: Undefined index: telegramBotToken in /var/www/guild.loc/frontend/config/main.php on line 102PHP message: PHP Notice: Undefined index: telegramBotChatId in /var/www/guild.loc/frontend/config/main.php on line 103" while reading response header from upstream, client: 127.0.0.1, server: guild.loc, request: "GET /api/template/get-template-list?document_type=0 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "guild.loc"
2022/01/14 17:21:27 [error] 746#746: *641 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant IMG_GIF - assumed 'IMG_GIF' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_JPG - assumed 'IMG_JPG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_WBMP - assumed 'IMG_WBMP' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Notice: Undefined index: telegramBotToken in /var/www/guild.loc/frontend/config/main.php on line 102PHP message: PHP Notice: Undefined index: telegramBotChatId in /var/www/guild.loc/frontend/config/main.php on line 103" while reading response header from upstream, client: 127.0.0.1, server: guild.loc, request: "GET /api/template/get-template-list?document_type=1 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "guild.loc"
2022/01/14 17:22:08 [error] 746#746: *641 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant IMG_GIF - assumed 'IMG_GIF' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_JPG - assumed 'IMG_JPG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_WBMP - assumed 'IMG_WBMP' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Notice: Undefined index: telegramBotToken in /var/www/guild.loc/frontend/config/main.php on line 102PHP message: PHP Notice: Undefined index: telegramBotChatId in /var/www/guild.loc/frontend/config/main.php on line 103" while reading response header from upstream, client: 127.0.0.1, server: guild.loc, request: "GET /api/template/get-template-list?document_type=0 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "guild.loc"
2022/01/14 17:23:03 [error] 746#746: *641 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant IMG_GIF - assumed 'IMG_GIF' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_JPG - assumed 'IMG_JPG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_WBMP - assumed 'IMG_WBMP' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Notice: Undefined index: telegramBotToken in /var/www/guild.loc/frontend/config/main.php on line 102PHP message: PHP Notice: Undefined index: telegramBotChatId in /var/www/guild.loc/frontend/config/main.php on line 103" while reading response header from upstream, client: 127.0.0.1, server: guild.loc, request: "GET /api/template/get-template-list?document_type=0 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "guild.loc"
2022/01/14 17:23:13 [error] 746#746: *641 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant IMG_GIF - assumed 'IMG_GIF' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_JPG - assumed 'IMG_JPG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_WBMP - assumed 'IMG_WBMP' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Notice: Undefined index: telegramBotToken in /var/www/guild.loc/frontend/config/main.php on line 102PHP message: PHP Notice: Undefined index: telegramBotChatId in /var/www/guild.loc/frontend/config/main.php on line 103" while reading response header from upstream, client: 127.0.0.1, server: guild.loc, request: "GET /api/template/get-template-list?document_type=0 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "guild.loc"
2022/01/14 17:23:21 [error] 746#746: *641 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant IMG_GIF - assumed 'IMG_GIF' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_JPG - assumed 'IMG_JPG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_WBMP - assumed 'IMG_WBMP' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Notice: Undefined index: telegramBotToken in /var/www/guild.loc/frontend/config/main.php on line 102PHP message: PHP Notice: Undefined index: telegramBotChatId in /var/www/guild.loc/frontend/config/main.php on line 103" while reading response header from upstream, client: 127.0.0.1, server: guild.loc, request: "GET /api/template/get-template-list?document_type=1 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "guild.loc"
2022/01/14 17:23:51 [error] 746#746: *641 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant IMG_GIF - assumed 'IMG_GIF' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_JPG - assumed 'IMG_JPG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_WBMP - assumed 'IMG_WBMP' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Notice: Undefined index: telegramBotToken in /var/www/guild.loc/frontend/config/main.php on line 102PHP message: PHP Notice: Undefined index: telegramBotChatId in /var/www/guild.loc/frontend/config/main.php on line 103" while reading response header from upstream, client: 127.0.0.1, server: guild.loc, request: "GET /api/template/get-template-list?document_type=1 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "guild.loc"
2022/01/14 17:24:21 [error] 746#746: *641 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant IMG_GIF - assumed 'IMG_GIF' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_JPG - assumed 'IMG_JPG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_WBMP - assumed 'IMG_WBMP' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Notice: Undefined index: telegramBotToken in /var/www/guild.loc/frontend/config/main.php on line 102PHP message: PHP Notice: Undefined index: telegramBotChatId in /var/www/guild.loc/frontend/config/main.php on line 103" while reading response header from upstream, client: 127.0.0.1, server: guild.loc, request: "GET /api/template/get-template-list?document_type=1 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "guild.loc"
2022/01/14 17:24:50 [error] 746#746: *641 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant IMG_GIF - assumed 'IMG_GIF' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_JPG - assumed 'IMG_JPG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_WBMP - assumed 'IMG_WBMP' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Notice: Undefined index: telegramBotToken in /var/www/guild.loc/frontend/config/main.php on line 102PHP message: PHP Notice: Undefined index: telegramBotChatId in /var/www/guild.loc/frontend/config/main.php on line 103" while reading response header from upstream, client: 127.0.0.1, server: guild.loc, request: "GET /api/template/get-template-list?document_type=1 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "guild.loc"
2022/01/14 17:25:06 [error] 746#746: *641 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant IMG_GIF - assumed 'IMG_GIF' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_JPG - assumed 'IMG_JPG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_WBMP - assumed 'IMG_WBMP' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Notice: Undefined index: telegramBotToken in /var/www/guild.loc/frontend/config/main.php on line 102PHP message: PHP Notice: Undefined index: telegramBotChatId in /var/www/guild.loc/frontend/config/main.php on line 103" while reading response header from upstream, client: 127.0.0.1, server: guild.loc, request: "GET /api/template/get-template-list?document_type=0 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "guild.loc"
2022/01/14 17:26:17 [error] 746#746: *652 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant IMG_GIF - assumed 'IMG_GIF' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_JPG - assumed 'IMG_JPG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_WBMP - assumed 'IMG_WBMP' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Notice: Undefined index: telegramBotToken in /var/www/guild.loc/frontend/config/main.php on line 102PHP message: PHP Notice: Undefined index: telegramBotChatId in /var/www/guild.loc/frontend/config/main.php on line 103" while reading response header from upstream, client: 127.0.0.1, server: guild.loc, request: "GET /api/template/get-template-list?document_type=1 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "guild.loc"
2022/01/14 17:26:31 [error] 746#746: *652 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant IMG_GIF - assumed 'IMG_GIF' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_JPG - assumed 'IMG_JPG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_WBMP - assumed 'IMG_WBMP' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Notice: Undefined index: telegramBotToken in /var/www/guild.loc/frontend/config/main.php on line 102PHP message: PHP Notice: Undefined index: telegramBotChatId in /var/www/guild.loc/frontend/config/main.php on line 103" while reading response header from upstream, client: 127.0.0.1, server: guild.loc, request: "GET /api/template/get-template-list?document_type=0 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "guild.loc"
2022/01/14 17:27:25 [error] 746#746: *652 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant IMG_GIF - assumed 'IMG_GIF' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_JPG - assumed 'IMG_JPG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_WBMP - assumed 'IMG_WBMP' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Notice: Undefined index: telegramBotToken in /var/www/guild.loc/frontend/config/main.php on line 102PHP message: PHP Notice: Undefined index: telegramBotChatId in /var/www/guild.loc/frontend/config/main.php on line 103" while reading response header from upstream, client: 127.0.0.1, server: guild.loc, request: "GET /api/template/get-template-list?document_type=0 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "guild.loc"
2022/01/14 17:27:36 [error] 746#746: *652 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant IMG_GIF - assumed 'IMG_GIF' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_JPG - assumed 'IMG_JPG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_WBMP - assumed 'IMG_WBMP' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Notice: Undefined index: telegramBotToken in /var/www/guild.loc/frontend/config/main.php on line 102PHP message: PHP Notice: Undefined index: telegramBotChatId in /var/www/guild.loc/frontend/config/main.php on line 103" while reading response header from upstream, client: 127.0.0.1, server: guild.loc, request: "GET /api/template/get-template-list?document_type=0 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "guild.loc"
2022/01/14 17:27:50 [error] 746#746: *652 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant IMG_GIF - assumed 'IMG_GIF' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_JPG - assumed 'IMG_JPG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_WBMP - assumed 'IMG_WBMP' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Notice: Undefined index: telegramBotToken in /var/www/guild.loc/frontend/config/main.php on line 102PHP message: PHP Notice: Undefined index: telegramBotChatId in /var/www/guild.loc/frontend/config/main.php on line 103" while reading response header from upstream, client: 127.0.0.1, server: guild.loc, request: "GET /api/template/get-template-list?document_type=1 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "guild.loc"
2022/01/14 17:28:59 [error] 746#746: *658 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant IMG_GIF - assumed 'IMG_GIF' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_JPG - assumed 'IMG_JPG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_WBMP - assumed 'IMG_WBMP' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Notice: Undefined index: telegramBotToken in /var/www/guild.loc/frontend/config/main.php on line 102PHP message: PHP Notice: Undefined index: telegramBotChatId in /var/www/guild.loc/frontend/config/main.php on line 103" while reading response header from upstream, client: 127.0.0.1, server: guild.loc, request: "GET /api/template/get-template-list?document_type=1 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "guild.loc"
2022/01/14 17:29:30 [error] 746#746: *658 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant IMG_GIF - assumed 'IMG_GIF' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_JPG - assumed 'IMG_JPG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_WBMP - assumed 'IMG_WBMP' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Notice: Undefined index: telegramBotToken in /var/www/guild.loc/frontend/config/main.php on line 102PHP message: PHP Notice: Undefined index: telegramBotChatId in /var/www/guild.loc/frontend/config/main.php on line 103" while reading response header from upstream, client: 127.0.0.1, server: guild.loc, request: "GET /api/template/get-template-list?document_type=1 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "guild.loc"
2022/01/14 17:29:39 [error] 746#746: *658 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant IMG_GIF - assumed 'IMG_GIF' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_JPG - assumed 'IMG_JPG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_WBMP - assumed 'IMG_WBMP' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Notice: Undefined index: telegramBotToken in /var/www/guild.loc/frontend/config/main.php on line 102PHP message: PHP Notice: Undefined index: telegramBotChatId in /var/www/guild.loc/frontend/config/main.php on line 103" while reading response header from upstream, client: 127.0.0.1, server: guild.loc, request: "GET /api/template/get-template-list?document_type=2 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "guild.loc"
2022/01/14 17:29:43 [error] 746#746: *658 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant IMG_GIF - assumed 'IMG_GIF' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_JPG - assumed 'IMG_JPG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_WBMP - assumed 'IMG_WBMP' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Notice: Undefined index: telegramBotToken in /var/www/guild.loc/frontend/config/main.php on line 102PHP message: PHP Notice: Undefined index: telegramBotChatId in /var/www/guild.loc/frontend/config/main.php on line 103" while reading response header from upstream, client: 127.0.0.1, server: guild.loc, request: "GET /api/template/get-template-list HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "guild.loc"
2022/01/14 17:32:10 [error] 746#746: *663 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant IMG_GIF - assumed 'IMG_GIF' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_JPG - assumed 'IMG_JPG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_WBMP - assumed 'IMG_WBMP' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Notice: Undefined index: telegramBotToken in /var/www/guild.loc/frontend/config/main.php on line 102PHP message: PHP Notice: Undefined index: telegramBotChatId in /var/www/guild.loc/frontend/config/main.php on line 103" while reading response header from upstream, client: 127.0.0.1, server: guild.loc, request: "GET /api/template/get-template-list HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "guild.loc"
2022/01/14 17:32:16 [error] 746#746: *663 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant IMG_GIF - assumed 'IMG_GIF' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_JPG - assumed 'IMG_JPG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_WBMP - assumed 'IMG_WBMP' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Notice: Undefined index: telegramBotToken in /var/www/guild.loc/frontend/config/main.php on line 102PHP message: PHP Notice: Undefined index: telegramBotChatId in /var/www/guild.loc/frontend/config/main.php on line 103" while reading response header from upstream, client: 127.0.0.1, server: guild.loc, request: "GET /api/template/get-template-list?document_type=1 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "guild.loc"
2022/01/14 17:32:22 [error] 746#746: *663 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant IMG_GIF - assumed 'IMG_GIF' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_JPG - assumed 'IMG_JPG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Warning: Use of undefined constant IMG_WBMP - assumed 'IMG_WBMP' (this will throw an Error in a future version of PHP) in /var/www/guild.loc/common/config/main.php on line 42PHP message: PHP Notice: Undefined index: telegramBotToken in /var/www/guild.loc/frontend/config/main.php on line 102PHP message: PHP Notice: Undefined index: telegramBotChatId in /var/www/guild.loc/frontend/config/main.php on line 103" while reading response header from upstream, client: 127.0.0.1, server: guild.loc, request: "GET /api/template/get-template-list?document_type=2 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "guild.loc"

View File

@ -24,7 +24,14 @@ class TemplateController extends ApiController
public function actionGetTemplateList(): array public function actionGetTemplateList(): array
{ {
$template = Template::find()->asArray()->all(); $document_type = Yii::$app->request->get('document_type');
if (!empty($document_type)) {
$template = Template::find()->where(['document_type' => $document_type])->asArray()->all();
}
else {
$template = Template::find()->asArray()->all();
}
if (empty($template)) { if (empty($template)) {
throw new NotFoundHttpException('Documents are not assigned'); throw new NotFoundHttpException('Documents are not assigned');