22:24:20.933 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
22:24:20.933 | trace | yii\base\Module::getModule | Loading module: debug |
22:24:20.933 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
22:24:20.933 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
22:24:20.933 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
22:24:20.933 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
22:24:20.933 | trace | yii\base\Module::getModule | Loading module: gii |
22:24:20.933 | trace | yii\base\Application::bootstrap | Bootstrap with yii\gii\Module::bootstrap() |
22:24:20.934 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
22:24:20.934 | trace | yii\web\Application::handleRequest | Route requested: 'vue/analysis/contact-point-histogram' |
22:24:20.934 | trace | yii\base\Module::getModule | Loading module: vue |
22:24:20.934 | info | yii\web\Session::open | Session started |
22:24:20.935 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
22:24:20.935 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
22:24:20.939 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
22:24:20.939 | 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 = 'vw_user_login'
and d.nspname = 'global'
ORDER BY
a.attnum; |
22:24:20.944 | 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='vw_user_login'
and ns.nspname='global'
order by
fns.nspname, fc.relname, a.attnum |
22:24:20.952 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
22:24:20.952 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
22:24:20.952 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
22:24:20.952 | 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_users'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
22:24:20.958 | 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_users'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
22:24:20.965 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
22:24:20.965 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
22:24:20.966 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
22:24:20.966 | trace | yii\base\Controller::runAction | Route to run: vue/analysis/contact-point-histogram |
22:24:20.967 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
22:24:20.968 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
22:24:20.968 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\vue\controllers\AnalysisController::actionContactPointHistogram() |
22:24:20.968 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
22:24:20.968 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
22:24:20.969 | info | yii\db\Command::query | SELECT
contact.id as c_id,
contact.id as contact_id,
sum(ps.point) as point,
sum(ps.paid_point) as paid_point,
sum(p.budget) as budget,
sum(p.profits) AS profits,
sum(p.projects) as projects
FROM "a57be577deb434"."tbl_contacts" "contact" LEFT JOIN (SELECT
pcp.contact_id,
sum(point) as point,
sum(paid_point) as paid_point
FROM "a57be577deb434"."tbl_project_contact_points" "pcp" LEFT JOIN (SELECT "p".* FROM "a57be577deb434"."tbl_projects" "p" LEFT JOIN "a57be577deb434"."tbl_project_contact_points" "pcp1" ON p.id = pcp1.project_id LEFT JOIN "a57be577deb434"."tbl_contacts" "contact" ON contact.id = pcp1.contact_id WHERE ("p"."created_by" IN (1001, 5049, 5301, 5022, 5209, 5026, 5293, 5309, 5356, 5329, 5299, 5303, 5302, 5332, 5047, 1026, 5096, 5070, 5448, 5420, 1029, 5037, 5087, 1008, 5048, 5043, 5045, 5230, 5031, 5088, 5208, 1003, 5294, 5357, 5044, 1030, 5076, 5300, 5027, 5089, 5311, 5066, 5069, 5364, 1009, 5295, 1013, 5128, 5203, 1025, 5032, 5075, 1004, 5072, 5033, 5359, 5412, 5409, 5229, 1005, 5304, 5449, 5358, 1006, 5093)) AND ("p"."bargain_date" >= NULL) AND ("p"."bargain_date" <= NULL) GROUP BY "p"."id") "p" ON p.id = pcp.project_id WHERE p.id is not null GROUP BY "pcp"."contact_id") "ps" ON ps.contact_id = contact.id LEFT JOIN (SELECT
c.contact_id,
sum(p.budget) as budget,
sum(p.budget / 100 * p.profit_pct) AS profits,
count(distinct p.id) as projects
FROM (SELECT
contact_id,
project_id
FROM "a57be577deb434"."tbl_project_contact_points" "pcp" GROUP BY "contact_id", "project_id") "c" LEFT JOIN (SELECT "p".* FROM "a57be577deb434"."tbl_projects" "p" LEFT JOIN "a57be577deb434"."tbl_project_contact_points" "pcp1" ON p.id = pcp1.project_id LEFT JOIN "a57be577deb434"."tbl_contacts" "contact" ON contact.id = pcp1.contact_id WHERE ("p"."created_by" IN (1001, 5049, 5301, 5022, 5209, 5026, 5293, 5309, 5356, 5329, 5299, 5303, 5302, 5332, 5047, 1026, 5096, 5070, 5448, 5420, 1029, 5037, 5087, 1008, 5048, 5043, 5045, 5230, 5031, 5088, 5208, 1003, 5294, 5357, 5044, 1030, 5076, 5300, 5027, 5089, 5311, 5066, 5069, 5364, 1009, 5295, 1013, 5128, 5203, 1025, 5032, 5075, 1004, 5072, 5033, 5359, 5412, 5409, 5229, 1005, 5304, 5449, 5358, 1006, 5093)) AND ("p"."bargain_date" >= NULL) AND ("p"."bargain_date" <= NULL) GROUP BY "p"."id") "p" ON c.project_id = p.id GROUP BY "c"."contact_id") "p" ON contact.id = p.contact_id WHERE ps.point is not null GROUP BY "contact"."id" |
22:24:20.973 | info | yii\db\Command::query | SELECT
sum(total_contact_point) as point,
sum(paid_contact_point) as paid_point,
sum(p.budget) as budget,
sum(p.budget / 100 * p.profit_pct) AS profits,
count(p.id) as projects
FROM "a57be577deb434"."tbl_projects" "p" LEFT JOIN "a57be577deb434"."tbl_project_contact_points" "pcp1" ON p.id = pcp1.project_id LEFT JOIN "a57be577deb434"."tbl_contacts" "contact" ON contact.id = pcp1.contact_id WHERE ("p"."created_by" IN (1001, 5049, 5301, 5022, 5209, 5026, 5293, 5309, 5356, 5329, 5299, 5303, 5302, 5332, 5047, 1026, 5096, 5070, 5448, 5420, 1029, 5037, 5087, 1008, 5048, 5043, 5045, 5230, 5031, 5088, 5208, 1003, 5294, 5357, 5044, 1030, 5076, 5300, 5027, 5089, 5311, 5066, 5069, 5364, 1009, 5295, 1013, 5128, 5203, 1025, 5032, 5075, 1004, 5072, 5033, 5359, 5412, 5409, 5229, 1005, 5304, 5449, 5358, 1006, 5093)) AND ("p"."bargain_date" >= NULL) AND ("p"."bargain_date" <= NULL) GROUP BY "p"."id" |
22:24:20.973 | info | yii\db\Command::query | SELECT
sum(p.budget) as budget,
sum(p.budget / 100 * p.profit_pct) AS profits,
count(p.id) as projects
FROM "a57be577deb434"."tbl_projects" "p" LEFT JOIN "a57be577deb434"."tbl_project_contact_points" "pcp1" ON p.id = pcp1.project_id LEFT JOIN "a57be577deb434"."tbl_contacts" "contact" ON contact.id = pcp1.contact_id LEFT JOIN (SELECT
project_id
FROM "a57be577deb434"."tbl_project_contact_points" "pcp" GROUP BY "project_id") "pcp" ON pcp.project_id = p.id WHERE ("p"."created_by" IN (1001, 5049, 5301, 5022, 5209, 5026, 5293, 5309, 5356, 5329, 5299, 5303, 5302, 5332, 5047, 1026, 5096, 5070, 5448, 5420, 1029, 5037, 5087, 1008, 5048, 5043, 5045, 5230, 5031, 5088, 5208, 1003, 5294, 5357, 5044, 1030, 5076, 5300, 5027, 5089, 5311, 5066, 5069, 5364, 1009, 5295, 1013, 5128, 5203, 1025, 5032, 5075, 1004, 5072, 5033, 5359, 5412, 5409, 5229, 1005, 5304, 5449, 5358, 1006, 5093)) AND ("p"."bargain_date" >= NULL) AND ("p"."bargain_date" <= NULL) AND (pcp.project_id is null) GROUP BY "p"."id" |
22:24:20.974 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_contacts" WHERE "id" IN (SELECT "contact"."id" FROM "a57be577deb434"."tbl_contacts" "contact" LEFT JOIN (SELECT
pcp.contact_id,
sum(point) as point,
sum(paid_point) as paid_point
FROM "a57be577deb434"."tbl_project_contact_points" "pcp" LEFT JOIN (SELECT "p".* FROM "a57be577deb434"."tbl_projects" "p" LEFT JOIN "a57be577deb434"."tbl_project_contact_points" "pcp1" ON p.id = pcp1.project_id LEFT JOIN "a57be577deb434"."tbl_contacts" "contact" ON contact.id = pcp1.contact_id WHERE ("p"."created_by" IN (1001, 5049, 5301, 5022, 5209, 5026, 5293, 5309, 5356, 5329, 5299, 5303, 5302, 5332, 5047, 1026, 5096, 5070, 5448, 5420, 1029, 5037, 5087, 1008, 5048, 5043, 5045, 5230, 5031, 5088, 5208, 1003, 5294, 5357, 5044, 1030, 5076, 5300, 5027, 5089, 5311, 5066, 5069, 5364, 1009, 5295, 1013, 5128, 5203, 1025, 5032, 5075, 1004, 5072, 5033, 5359, 5412, 5409, 5229, 1005, 5304, 5449, 5358, 1006, 5093)) AND ("p"."bargain_date" >= NULL) AND ("p"."bargain_date" <= NULL) GROUP BY "p"."id") "p" ON p.id = pcp.project_id WHERE p.id is not null GROUP BY "pcp"."contact_id") "ps" ON ps.contact_id = contact.id LEFT JOIN (SELECT
c.contact_id,
sum(p.budget) as budget,
sum(p.budget / 100 * p.profit_pct) AS profits,
count(distinct p.id) as projects
FROM (SELECT
contact_id,
project_id
FROM "a57be577deb434"."tbl_project_contact_points" "pcp" GROUP BY "contact_id", "project_id") "c" LEFT JOIN (SELECT "p".* FROM "a57be577deb434"."tbl_projects" "p" LEFT JOIN "a57be577deb434"."tbl_project_contact_points" "pcp1" ON p.id = pcp1.project_id LEFT JOIN "a57be577deb434"."tbl_contacts" "contact" ON contact.id = pcp1.contact_id WHERE ("p"."created_by" IN (1001, 5049, 5301, 5022, 5209, 5026, 5293, 5309, 5356, 5329, 5299, 5303, 5302, 5332, 5047, 1026, 5096, 5070, 5448, 5420, 1029, 5037, 5087, 1008, 5048, 5043, 5045, 5230, 5031, 5088, 5208, 1003, 5294, 5357, 5044, 1030, 5076, 5300, 5027, 5089, 5311, 5066, 5069, 5364, 1009, 5295, 1013, 5128, 5203, 1025, 5032, 5075, 1004, 5072, 5033, 5359, 5412, 5409, 5229, 1005, 5304, 5449, 5358, 1006, 5093)) AND ("p"."bargain_date" >= NULL) AND ("p"."bargain_date" <= NULL) GROUP BY "p"."id") "p" ON c.project_id = p.id GROUP BY "c"."contact_id") "p" ON contact.id = p.contact_id WHERE ps.point is not null GROUP BY "contact"."id") |
22:24:20.976 | error | yii\base\ErrorException:8 | yii\base\ErrorException: Undefined index: budget in /var/www/beta/models/AnalysisSalesTraits.php:18743
Stack trace:
#0 /var/www/beta/models/AnalysisSalesTraits.php(18743): yii\base\ErrorHandler->handleError(8, 'Undefined index...', '/var/www/beta/m...', 18743, Array)
#1 [internal function]: app\modules\vue\controllers\AnalysisController->actionContactPointHistogram()
#2 /var/www/beta/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#3 /var/www/beta/vendor/yiisoft/yii2/base/Controller.php(156): yii\base\InlineAction->runWithParams(Array)
#4 /var/www/beta/vendor/yiisoft/yii2/base/Module.php(522): yii\base\Controller->runAction('contact-point-h...', Array)
#5 /var/www/beta/vendor/yiisoft/yii2/web/Application.php(102): yii\base\Module->runAction('vue/analysis/co...', Array)
#6 /var/www/beta/vendor/yiisoft/yii2/base/Application.php(379): yii\web\Application->handleRequest(Object(yii\web\Request))
#7 /var/www/beta/web/index.php(24): yii\base\Application->run()
#8 {main} |
22:24:20.976 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
22:24:20.977 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
22:24:20.977 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_visit_module_histories" WHERE ("user_id"=1001) AND ("object_type"=23) AND ("visit_date"='2025-08-10') |
22:24:20.980 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
22:24:20.980 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
22:24:20.981 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_visit_module_histories" SET "num"=103, "last_visit_at"='now()' WHERE "id"=55005 |
22:24:20.982 | info | yii\db\Command::query | INSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time") VALUES (NULL, 'a57be577deb434', 1001, 5, 'vue/analysis/contact-point-histogram', '[]', '{"code":"","data":null,"status":0,"msg":[{"name":"error","success":"","error":"Undefined index: budget","trace":{"name":"PHP Notice","message":"Undefined index: budget","code":8,"type":"yii\\base\\ErrorException","file":"\/var\/www\/beta\/models\/AnalysisSalesTraits.php","line":18743,"stack-trace":["#0 \/var\/www\/beta\/models\/AnalysisSalesTraits.php(18743): yii\\base\\ErrorHandler->handleError(8, ''Undefined index...'', ''\/var\/www\/beta\/m...'', 18743, Array)","#1 [internal function]: app\\modules\\vue\\controllers\\AnalysisController->actionContactPointHistogram()","#2 \/var\/www\/beta\/vendor\/yiisoft\/yii2\/base\/InlineAction.php(57): call_user_func_array(Array, Array)","#3 \/var\/www\/beta\/vendor\/yiisoft\/yii2\/base\/Controller.php(156): yii\\base\\InlineAction->runWithParams(Array)","#4 \/var\/www\/beta\/vendor\/yiisoft\/yii2\/base\/Module.php(522): yii\\base\\Controller->runAction(''contact-point-h...'', Array)","#5 \/var\/www\/beta\/vendor\/yiisoft\/yii2\/web\/Application.php(102): yii\\base\\Module->runAction(''vue\/analysis\/co...'', Array)","#6 \/var\/www\/beta\/vendor\/yiisoft\/yii2\/base\/Application.php(379): yii\\web\\Application->handleRequest(Object(yii\\web\\Request))","#7 \/var\/www\/beta\/web\/index.php(24): yii\\base\\Application->run()","#8 {main}"]}}]}', TRUE, '2025-08-10 22:24:20') RETURNING "id" |
22:24:20.983 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
22:24:20.983 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |