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

PHP Fatal error: Uncaught Error: Call to a member function fetchAll() on boolean #14

Open
klor opened this issue Sep 5, 2018 · 0 comments

Comments

@klor
Copy link

klor commented Sep 5, 2018

I am using thebestpdowrapper on two Windows 10 machines that runs the same PHP version 7.2.0 and 7.2.9. My script works on one machine but fails on the other. The failing machine consistently gives me this error message:

PHP Fatal error: Uncaught Error: Call to a member function fetchAll() on boolean

It fails when doing INSERTs, UPDATEs, SELECTs and likely any other SQL statement. Vanilla PDO works fine on the "failing" machine - and the database tables do have data (as seen with vanilla PDO).
Code used:

$sql = "SELECT * FROM tbl";
DB::prepare($sql)->execute()->fetchAll();

Any ideas why?

thebestpdowrapper must have some implicit pre-requisites - what are these?

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

1 participant