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

DatabaseQuery error with Tracy user switcher #2039

Open
MetaTunes opened this issue Feb 7, 2025 · 1 comment
Open

DatabaseQuery error with Tracy user switcher #2039

MetaTunes opened this issue Feb 7, 2025 · 1 comment

Comments

@MetaTunes
Copy link

See https://processwire.com/talk/topic/31018-request-info-panel-problem/ for description of problem.
In certain circumstances, such as those described in the post, the error:
ErrorException: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wire/core/DatabaseQuery.php:468
occurs.
This can be simply fixed by changing line 468 to
$curValue[] = $value ? trim($value, ", ") : '';

ryancramerdesign added a commit to processwire/processwire that referenced this issue Feb 14, 2025
@ryancramerdesign
Copy link
Member

Thanks @MetaTunes I've pushed a fix for this.

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

No branches or pull requests

2 participants