Repository navigation
Open
Description
Running the administrator.php test, I get these results:
$administrator->data -- Array
(
[id] => 3
[status] => 0
[username] => test2
[firstname] =>
[lastname] =>
[email] => test2@example.com
[password_hash] => $2y$12$LUYnw4YacJADZk7biYh7GudGFykbpIS/FcfgvzCzXxWZGHlgvsHpW
[apps] => Array
(
)
[widgets] => Array
(
)
[two_factor_auth] => 0
[known_ips] =>
[known_fingerprints] =>
[login_attempts] => 0
[total_logins] => 0
[last_ip_address] =>
[last_hostname] =>
[last_user_agent] =>
[valid_from] => 2024-01-01 00:00:00
[valid_to] => 2024-12-31 23:59:59
[last_active] =>
[last_login] =>
[updated_at] => 2026-06-28 10:07:18
[created_at] => 2026-06-28 10:07:18
)
administrator::$data -- Array
(
[id] => 3
[status] => 0
[username] => test2
[firstname] =>
[lastname] =>
[email] => test2@example.com
[password_hash] => $2y$12$LUYnw4YacJADZk7biYh7GudGFykbpIS/FcfgvzCzXxWZGHlgvsHpW
[apps] => Array
(
)
[widgets] => Array
(
)
[two_factor_auth] => 0
[known_ips] => Array
(
)
[known_fingerprints] => Array
(
)
[login_attempts] => 0
[total_logins] => 0
[last_ip_address] =>
[last_hostname] =>
[last_user_agent] =>
[valid_from] => 2024-01-01 00:00:00
[valid_to] => 2024-12-31 23:59:59
[last_active] =>
[last_login] =>
[updated_at] => 2026-06-28 10:07:18
[created_at] => 2026-06-28 10:07:18
)
[Failed] Error: administrator::$data does not match $administrator->data
It appears that known_fingerprints may be the culprit -- in $administrator->data it looks to be an empty string, in administrator::$data it's an empty array.
I had mentioned before that known_fingerprints was missing from lc_administrators so I added it as a varchar.
Any idea why this test is failing?
Metadata
Metadata
Assignees
Labels
No labels
Activity
s22-tech commentedon Jul 16, 2026
I ran this again after I updated
known_fingerprintsbut it still fails. It looks like string_split() in nod_administrator is converting those variables into arrays while ent_administrator does not.Here's the output:
$administrator->data
administrator::$data
timint commentedon Jul 16, 2026
I think this was resolved in LiteCart v3 and we are just waiting for the next sync. The solution is to universally convert fingerprints to an array in both components.