Skip to content
Advertisement

SQLite3 (PHP Fatal error: Call to a member function exec())

JavaScript

I’ve been innstall

JavaScript

and add conf:

JavaScript

I have installed the necessary components and added to the configuration file line, maybe in php.ini need to add something?

Advertisement

Answer

Unless Im missing something your protected $_db may never get set so you cannot call exec() on null. It will never get set if this does not equal true –

JavaScript

You should check the logic of your class

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement