DirectoryTree / LdapRecord

A fully-featured LDAP framework.
https://ldaprecord.com
MIT License
514 stars 44 forks source link

I can't figure out why I keep getting this error - please help! #621

Closed chrishultberg closed 1 year ago

chrishultberg commented 1 year ago

TypeError LdapRecord\Query\Builder::prepareWhereValue(): Return value must be of type string, LdapRecord\Models\Attributes\EscapedValue returned

LdapRecord\Query\Builder::prepareWhereValue vendor/directorytree/ldaprecord/src/Query/Builder.php:955

stevebauman commented 1 year ago

Hi @chrishultberg,

Do you have strict types enabled?

chrishultberg commented 1 year ago

Thank you for the very fast response! I did not add strict types nor can I find it anywhere in the project.

If it's helpful, here is the link - https://syllabus.ez-it-solutions.com/login

Try using any user/pass and you'll get the error - this will allow you to see the stack trace.

stevebauman commented 1 year ago

Hi @chrishultberg, can you run composer update on your server and try again? This should now be patched 👍

chrishultberg commented 1 year ago

Thank you so much, Steve!!

stevebauman commented 1 year ago

Happy to help @chrishultberg! Closing for now, but let me know if you run into any further issues 👍.