Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when trying to see the logs while logged as an admin #516

Closed
pgimalac opened this issue Jul 17, 2021 · 1 comment
Closed

Crash when trying to see the logs while logged as an admin #516

pgimalac opened this issue Jul 17, 2021 · 1 comment

Comments

@pgimalac
Copy link

When I am logged as an admin and I click on "journal", I can't see any logs because php crashes with

PHP message: Invalid query: SQLSTATE[HY093]: Invalid parameter number: :domain caused by SELECT extract(epoch from timestamp) as timestamp,username,domain,action,data FROM log  ORDER BY timestamp DESC LIMIT 10PHP message: PHP Fatal error:  Uncaught Exception: DEBUG INFORMATION: SQLSTATE[HY093]: Invalid parameter number: :domain

which I guess is because there is always an argument given to the query

$result = db_query_all($query, array('domain' => $fDomain));

while if you are an admin there is no argument in the query (there is no WHERE condition on the domains).

@DavidGoodwin
Copy link
Member

(I've not tested that)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants