-
Notifications
You must be signed in to change notification settings - Fork 40
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
[Bug] htmlspecialchars() expects parameter 1 to be string, array given #40
Comments
Update Further digging it seems to be line
Is this expected for Telescope? This is a fresh install of Telescope and Toolbar on this project. The code on line $prefix = DB::getTablePrefix();
return DB::select(DB::raw('
SELECT id, body FROM '.$prefix.'messages
WHERE is_active = 1
AND (state_id = '.$stateId.' OR state_id IS NULL)
AND id NOT IN (
SELECT message_id from '.$prefix.'messages_users WHERE user_id = '.$userId.')
ORDER BY created_on')); |
Not sure why it wouldn't log a raw query. Bit we could add a check there. |
yup, I'm gettign something similar too.
|
Same here on latest version and Laravel 9:
Update This error occurred only when navigating to one specific route defined in $mySqlVersion = DB::selectOne(DB::raw("select version() as v"))->v; Although this is valid PHP, removing this line fixes the issue. Maybe the raw db query? |
Running this package (latest) locally I am getting this error on the toolbar.
When viewing the call to the backend this is the error:
The text was updated successfully, but these errors were encountered: