processwire-issues icon indicating copy to clipboard operation
processwire-issues copied to clipboard

DatabaseQuery error with Tracy user switcher

Open MetaTunes opened this issue 10 months ago • 1 comments

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, ", ") : '';

MetaTunes avatar Feb 07 '25 22:02 MetaTunes

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

ryancramerdesign avatar Feb 14 '25 15:02 ryancramerdesign

@MetaTunes, can we close this issue?

matjazpotocnik avatar Jun 04 '25 19:06 matjazpotocnik