16:54:33.689 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
16:54:33.689 | trace | yii\base\Module::getModule | Loading module: debug |
16:54:33.689 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
16:54:33.689 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
16:54:33.689 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
16:54:33.689 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:54:33.689 | trace | yii\base\Module::getModule | Loading module: gii |
16:54:33.689 | trace | yii\base\Application::bootstrap | Bootstrap with yii\gii\Module::bootstrap() |
16:54:33.690 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
16:54:33.690 | trace | yii\web\Application::handleRequest | Route requested: 'v2/reimbursement/recognize' |
16:54:33.690 | trace | yii\base\Module::getModule | Loading module: v2 |
16:54:33.707 | info | yii\web\Session::open | Session started |
16:54:33.707 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
16:54:33.709 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "access_token"='gIBfXHaGAAjf2tBIfgqsDfRNPly9E9om' |
16:54:33.712 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:54:33.712 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:54:33.713 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:54:33.713 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:54:33.713 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1000 |
16:54:33.715 | trace | yii\base\Controller::runAction | Route to run: v2/reimbursement/recognize |
16:54:33.719 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:54:33.723 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
16:54:33.723 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\v2\controllers\ReimbursementController::actionRecognize() |
16:54:33.735 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:54:33.735 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:54:33.735 | info | yii\db\Command::query | SELECT
d.nspname AS table_schema,
c.relname AS table_name,
a.attname AS column_name,
t.typname AS data_type,
a.attlen AS character_maximum_length,
pg_catalog.col_description(c.oid, a.attnum) AS column_comment,
a.atttypmod AS modifier,
a.attnotnull = false AS is_nullable,
CAST(pg_get_expr(ad.adbin, ad.adrelid) AS varchar) AS column_default,
coalesce(pg_get_expr(ad.adbin, ad.adrelid) ~ 'nextval',false) AS is_autoinc,
array_to_string((select array_agg(enumlabel) from pg_enum where enumtypid=a.atttypid)::varchar[],',') as enum_values,
CASE atttypid
WHEN 21 /*int2*/ THEN 16
WHEN 23 /*int4*/ THEN 32
WHEN 20 /*int8*/ THEN 64
WHEN 1700 /*numeric*/ THEN
CASE WHEN atttypmod = -1
THEN null
ELSE ((atttypmod - 4) >> 16) & 65535
END
WHEN 700 /*float4*/ THEN 24 /*FLT_MANT_DIG*/
WHEN 701 /*float8*/ THEN 53 /*DBL_MANT_DIG*/
ELSE null
END AS numeric_precision,
CASE
WHEN atttypid IN (21, 23, 20) THEN 0
WHEN atttypid IN (1700) THEN
CASE
WHEN atttypmod = -1 THEN null
ELSE (atttypmod - 4) & 65535
END
ELSE null
END AS numeric_scale,
CAST(
information_schema._pg_char_max_length(information_schema._pg_truetypid(a, t), information_schema._pg_truetypmod(a, t))
AS numeric
) AS size,
a.attnum = any (ct.conkey) as is_pkey
FROM
pg_class c
LEFT JOIN pg_attribute a ON a.attrelid = c.oid
LEFT JOIN pg_attrdef ad ON a.attrelid = ad.adrelid AND a.attnum = ad.adnum
LEFT JOIN pg_type t ON a.atttypid = t.oid
LEFT JOIN pg_namespace d ON d.oid = c.relnamespace
LEFT join pg_constraint ct on ct.conrelid=c.oid and ct.contype='p'
WHERE
a.attnum > 0 and t.typname != ''
and c.relname = 'tbl_attachments'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
16:54:33.740 | info | yii\db\Command::query | select
ct.conname as constraint_name,
a.attname as column_name,
fc.relname as foreign_table_name,
fns.nspname as foreign_table_schema,
fa.attname as foreign_column_name
from
(SELECT ct.conname, ct.conrelid, ct.confrelid, ct.conkey, ct.contype, ct.confkey, generate_subscripts(ct.conkey, 1) AS s
FROM pg_constraint ct
) AS ct
inner join pg_class c on c.oid=ct.conrelid
inner join pg_namespace ns on c.relnamespace=ns.oid
inner join pg_attribute a on a.attrelid=ct.conrelid and a.attnum = ct.conkey[ct.s]
left join pg_class fc on fc.oid=ct.confrelid
left join pg_namespace fns on fc.relnamespace=fns.oid
left join pg_attribute fa on fa.attrelid=ct.confrelid and fa.attnum = ct.confkey[ct.s]
where
ct.contype='f'
and c.relname='tbl_attachments'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
16:54:33.744 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:54:33.744 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
16:54:33.748 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_attachments" ("path", "name", "orig_name", "extension", "file_type", "file_size", "ip_address", "created_by") VALUES ('/var/www/beta/web/files/protected/a57be577deb434/2025/09/', '8830b389-da1c-3283-a5c2-1268f4f7440d', '20250917165431.jpeg', 'jpeg', 'image/jpeg', 1902137, '223.104.42.217', NULL) RETURNING "id" |
16:54:33.750 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:54:33.750 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:54:33.751 | info | yii\db\Command::query | SELECT
d.nspname AS table_schema,
c.relname AS table_name,
a.attname AS column_name,
t.typname AS data_type,
a.attlen AS character_maximum_length,
pg_catalog.col_description(c.oid, a.attnum) AS column_comment,
a.atttypmod AS modifier,
a.attnotnull = false AS is_nullable,
CAST(pg_get_expr(ad.adbin, ad.adrelid) AS varchar) AS column_default,
coalesce(pg_get_expr(ad.adbin, ad.adrelid) ~ 'nextval',false) AS is_autoinc,
array_to_string((select array_agg(enumlabel) from pg_enum where enumtypid=a.atttypid)::varchar[],',') as enum_values,
CASE atttypid
WHEN 21 /*int2*/ THEN 16
WHEN 23 /*int4*/ THEN 32
WHEN 20 /*int8*/ THEN 64
WHEN 1700 /*numeric*/ THEN
CASE WHEN atttypmod = -1
THEN null
ELSE ((atttypmod - 4) >> 16) & 65535
END
WHEN 700 /*float4*/ THEN 24 /*FLT_MANT_DIG*/
WHEN 701 /*float8*/ THEN 53 /*DBL_MANT_DIG*/
ELSE null
END AS numeric_precision,
CASE
WHEN atttypid IN (21, 23, 20) THEN 0
WHEN atttypid IN (1700) THEN
CASE
WHEN atttypmod = -1 THEN null
ELSE (atttypmod - 4) & 65535
END
ELSE null
END AS numeric_scale,
CAST(
information_schema._pg_char_max_length(information_schema._pg_truetypid(a, t), information_schema._pg_truetypmod(a, t))
AS numeric
) AS size,
a.attnum = any (ct.conkey) as is_pkey
FROM
pg_class c
LEFT JOIN pg_attribute a ON a.attrelid = c.oid
LEFT JOIN pg_attrdef ad ON a.attrelid = ad.adrelid AND a.attnum = ad.adnum
LEFT JOIN pg_type t ON a.atttypid = t.oid
LEFT JOIN pg_namespace d ON d.oid = c.relnamespace
LEFT join pg_constraint ct on ct.conrelid=c.oid and ct.contype='p'
WHERE
a.attnum > 0 and t.typname != ''
and c.relname = 'tbl_action_logs'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
16:54:33.753 | info | yii\db\Command::query | select
ct.conname as constraint_name,
a.attname as column_name,
fc.relname as foreign_table_name,
fns.nspname as foreign_table_schema,
fa.attname as foreign_column_name
from
(SELECT ct.conname, ct.conrelid, ct.confrelid, ct.conkey, ct.contype, ct.confkey, generate_subscripts(ct.conkey, 1) AS s
FROM pg_constraint ct
) AS ct
inner join pg_class c on c.oid=ct.conrelid
inner join pg_namespace ns on c.relnamespace=ns.oid
inner join pg_attribute a on a.attrelid=ct.conrelid and a.attnum = ct.conkey[ct.s]
left join pg_class fc on fc.oid=ct.confrelid
left join pg_namespace fns on fc.relnamespace=fns.oid
left join pg_attribute fa on fa.attrelid=ct.confrelid and fa.attnum = ct.confkey[ct.s]
where
ct.contype='f'
and c.relname='tbl_action_logs'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
16:54:33.757 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:54:33.757 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
16:54:33.757 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\Attachments', 28162, 'a:10:{s:2:"id";i:28162;s:9:"orig_name";s:19:"20250917165431.jpeg";s:4:"path";s:57:"/var/www/beta/web/files/protected/a57be577deb434/2025/09/";s:4:"name";s:36:"8830b389-da1c-3283-a5c2-1268f4f7440d";s:9:"extension";s:4:"jpeg";s:9:"file_size";i:1902137;s:10:"ip_address";s:14:"223.104.42.217";s:10:"created_by";N;s:10:"created_at";N;s:9:"file_type";s:10:"image/jpeg";}', '', 1000, '223.104.42.217') |
16:54:33.896 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_attachments" WHERE "id"=28162 |
16:54:35.042 | error | yii\base\ErrorException:8 | yii\base\ErrorException: Undefined variable: info in /var/www/beta/vendor/uranus/aliOcr/OcrHelper.php:98
Stack trace:
#0 /var/www/beta/vendor/uranus/aliOcr/OcrHelper.php(98): yii\base\ErrorHandler->handleError(8, 'Undefined varia...', '/var/www/beta/v...', 98, Array)
#1 /var/www/beta/vendor/uranus/aliOcr/OcrHelper.php(54): uranus\aliOcr\OcrHelper::makeReturn(Array, 28162)
#2 /var/www/beta/modules/v2/controllers/ReimbursementController.php(1274): uranus\aliOcr\OcrHelper::request(28162)
#3 [internal function]: app\modules\v2\controllers\ReimbursementController->actionRecognize()
#4 /var/www/beta/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#5 /var/www/beta/vendor/yiisoft/yii2/base/Controller.php(156): yii\base\InlineAction->runWithParams(Array)
#6 /var/www/beta/vendor/yiisoft/yii2/base/Module.php(522): yii\base\Controller->runAction('recognize', Array)
#7 /var/www/beta/vendor/yiisoft/yii2/web/Application.php(102): yii\base\Module->runAction('v2/reimbursemen...', Array)
#8 /var/www/beta/vendor/yiisoft/yii2/base/Application.php(379): yii\web\Application->handleRequest(Object(yii\web\Request))
#9 /var/www/beta/web/index.php(24): yii\base\Application->run()
#10 {main} |
16:54:35.043 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
16:54:35.043 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
16:54:35.043 | info | yii\db\Command::query | INSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "version_code", "url", "request", "response", "php_error", "time") VALUES (NULL, 'a57be577deb434', 1000, 2, 1149, 'v2/reimbursement/recognize', '{"access_token":"gIBfXHaGAAjf2tBIfgqsDfRNPly9E9om","device_type":"2","posttime":"1758099328","token":"c3a9d9dc458aa02d35de20c3ecfe0cff","version_code":"1149"}', '{"code":"","data":null,"status":0,"msg":[{"name":"error","success":"","error":"Undefined variable: info","trace":{"name":"PHP Notice","message":"Undefined variable: info","code":8,"type":"yii\\base\\ErrorException","file":"\/var\/www\/beta\/vendor\/uranus\/aliOcr\/OcrHelper.php","line":98,"stack-trace":["#0 \/var\/www\/beta\/vendor\/uranus\/aliOcr\/OcrHelper.php(98): yii\\base\\ErrorHandler->handleError(8, ''Undefined varia...'', ''\/var\/www\/beta\/v...'', 98, Array)","#1 \/var\/www\/beta\/vendor\/uranus\/aliOcr\/OcrHelper.php(54): uranus\\aliOcr\\OcrHelper::makeReturn(Array, 28162)","#2 \/var\/www\/beta\/modules\/v2\/controllers\/ReimbursementController.php(1274): uranus\\aliOcr\\OcrHelper::request(28162)","#3 [internal function]: app\\modules\\v2\\controllers\\ReimbursementController->actionRecognize()","#4 \/var\/www\/beta\/vendor\/yiisoft\/yii2\/base\/InlineAction.php(57): call_user_func_array(Array, Array)","#5 \/var\/www\/beta\/vendor\/yiisoft\/yii2\/base\/Controller.php(156): yii\\base\\InlineAction->runWithParams(Array)","#6 \/var\/www\/beta\/vendor\/yiisoft\/yii2\/base\/Module.php(522): yii\\base\\Controller->runAction(''recognize'', Array)","#7 \/var\/www\/beta\/vendor\/yiisoft\/yii2\/web\/Application.php(102): yii\\base\\Module->runAction(''v2\/reimbursemen...'', Array)","#8 \/var\/www\/beta\/vendor\/yiisoft\/yii2\/base\/Application.php(379): yii\\web\\Application->handleRequest(Object(yii\\web\\Request))","#9 \/var\/www\/beta\/web\/index.php(24): yii\\base\\Application->run()","#10 {main}"]}}]}', TRUE, '2025-09-17 16:54:35') RETURNING "id" |