Hi,
I’m following a tuto and got error with Doctrine Dbal when I try to migrate. I believe it’s because I don’t have sqlite enable in nginx.
But i’m not sure at all, I tried to see if sqlite is enabled with this :

            if (extension_loaded('sqlite3')) {
                   $content = 'Sqlite PHP extension loaded';
            }

And it return nothing.
But if I check fpm/conf.d I see 20-pdosqlite.ini with `extension=pdosqlite.so`

My error when trying to migrate:

PHP Fatal error:  Uncaught TypeError: Return value of Migrations\Migration201712181210::createSubmissionsTable() must be an instance of Migrations\void, none returned in migrations/Migration201712181210.php:35
Stack trace:
#0 migrations/Migration201712181210.php(21): Migrations\Migration201712181210->createSubmissionsTable(Object(Doctrine\DBAL\Schema\Schema))
#1 /bin/Migrate.php(14): Migrations\Migration201712181210->migrate()
#2 {main}
  thrown in migrations/Migration201712181210.php on line 35

If you have an idea! Thanks for reading.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

I found my solution. I installed php 7.1 and php-sqlite3 everythings fine now.

Submit an Answer