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

SQLSTATE[HY000]: General error: 21 bad parameter or other API misuse` after updating TNTSearch. #129

Closed
hanspagel opened this issue Dec 13, 2017 · 7 comments

Comments

@hanspagel
Copy link

hanspagel commented Dec 13, 2017

Seeing warnings when running tests:

SQLSTATE[HY000]: General error: 21 bad parameter or other API misuse

Works fine before these updates:

- Updating teamtnt/tntsearch (v1.0.7 => v1.2.0): Loading from cache
- Updating teamtnt/laravel-scout-tntsearch-driver (v3.0.4 => v3.0.5): Loading from cache

Latest Laravel, PostgreSQL 10.1. Any ideas?

@nticaric
Copy link
Contributor

Any chance you are running php 7.2?

@hanspagel
Copy link
Author

Exactly, you are right! Forgot to mention it.

@nticaric
Copy link
Contributor

#127

@nticaric
Copy link
Contributor

Can you try v3.0.6, hopefully it should be fixed

@hanspagel
Copy link
Author

Fixed! :)))

@hanspagel
Copy link
Author

Ah, sorry. It's not fixed. Scout was disabled in testing environment. Still the same message with teamtnt/laravel-scout-tntsearch-driver 3.0.6.

@spacemudd
Copy link

spacemudd commented Dec 23, 2017

PHP 7.2 here.

The first time this error occured to me is when I try to insert 2k+ records into a sqlite db.

Then I started encountering it with TNTSearch like OP.

I'm getting the error when retrieving records using Scout's paginate() method.

Reverting back to 7.1, which works fine.

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

3 participants