alexbnc I get this error when accessing my local domain. I use the development version: Fatal error: Call to a member function until() on null in /vagrant/vendor/flarum/core/src/Database/AbstractModel.php on line 125 What am I missing?
alexbnc O.K. This happens when you don't have a database created. So, before accessing the domain and seeing the installer, the database must be created.
luceos alexbnc So, before accessing the domain and seeing the installer, the database must be created. The installer asks for your database credentials, so it shouldn't expect any database connection beforehand. Can you post the complete error (from your logs)?
alexbnc luceos PHP Fatal error: Call to undefined method Flarum\Extension\Extension::hasMigrations() in /vagrant/vendor/flarum/core/src/Extension/ExtensionManager.php on line 221 PHP Stack trace: PHP 1. {main}() /vagrant/flarum:0 PHP 2. Flarum\Console\Server->listen() /vagrant/flarum:18 PHP 3. Symfony\Component\Console\Application->run() /vagrant/vendor/flarum/core/src/Console/Server.php:23 PHP 4. Symfony\Component\Console\Application->doRun() /vagrant/vendor/symfony/console/Application.php:123 PHP 5. Symfony\Component\Console\Application->doRunCommand() /vagrant/vendor/symfony/console/Application.php:192 PHP 6. Symfony\Component\Console\Command\Command->run() /vagrant/vendor/symfony/console/Application.php:844 PHP 7. Flarum\Console\Command\AbstractCommand->execute() /vagrant/vendor/symfony/console/Command/Command.php:259 PHP 8. Flarum\Install\Console\InstallCommand->fire() /vagrant/vendor/flarum/core/src/Console/Command/AbstractCommand.php:37 PHP 9. Flarum\Install\Console\InstallCommand->install() /vagrant/vendor/flarum/core/src/Install/Console/InstallCommand.php:93 PHP 10. Flarum\Install\Console\InstallCommand->enableBundledExtensions() /vagrant/vendor/flarum/core/src/Install/Console/InstallCommand.php:179 PHP 11. Flarum\Extension\ExtensionManager->enable() /vagrant/vendor/flarum/core/src/Install/Console/InstallCommand.php:353 PHP 12. Flarum\Extension\ExtensionManager->migrate() /vagrant/vendor/flarum/core/src/Extension/ExtensionManager.php:122 This happened after I replaced hasMigrations() with getNamespace(), as I deducted from your commit
luceos Please keep our discussion to one thread per issue: https://discuss.flarum.org/d/2085-class-addisapprovedtodiscussions-does-not-exist