After running a composer update this morning, upon a fresh php artisan october:up I get the following error:
[Symfony\Component\Debug\Exception\FatalErrorException]
Interface 'Illuminate\View\Engines\EngineInterface' not found
Created a clean fresh project using composer create-project october/october test and then ran php artisan october:up
Tried looking through some of the latest commits, but couldn't see anything obvious that would cause this.
Done a little more investigation. The SeedSetupMailLayouts.php file runs MailLayout::createLayouts();, which on line 135 runs return MailParser::parse(File::get(View::make($code)->getPath())); at some point. Not sure what this all means, but removing the MailLayout::createLayouts(); for the time being allows the other migrations and seeds to complete successfully, hopefully this might help root down the issue?
This error also appears when viewing the mail templates backend page.
@mbaxter91288 Try to change laravel version to 5.4 in composer.json, then run composer update again.
@intro1987 I am using the latest build for laravel 5.5 though :-/
@mbaxter91288 what does your composer.json look like? It needs to pull in Laravel 5.5 like it does on the develop branch currently to support build 420.
@LukeTowers can confirm that this error appears in the mail templates page. Gonna look for the issue.
Pull request created: https://github.com/octobercms/october/pull/3027
I just pulled the develop branch, but looks like this problem still exists during installation through command line.
[Symfony\Component\Debug\Exception\FatalErrorException]
Interface 'Illuminate\View\Engines\EngineInterface' not found
````
Strange enough, after finding the diff it shows that the modified line in pull request has actually been removed.
diff --git a/modules/system/twig/Engine.php b/modules/system/twig/Engine.php
index 995edb2..f776f63 100644
--- a/modules/system/twig/Engine.php
+++ b/modules/system/twig/Engine.php
@@ -1,7 +1,7 @@
use Twig_Environment;
-use Illuminate\Contracts\View\Engine as EngineInterface;
+use Illuminate\View\Engines\EngineInterface;
/**
@aftabnaveed how did you pull it? Are you using composer? If so, what's your composer.json?
I have the same issue when I do october:isntall
But before that, when I did composer update
composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 0 installs, 0 updates, 0 removals
Generating autoload files
> php artisan october:util set build
You were kicked from #october by Ex: (Database (storage/database.sqlite) does not exist. (SQL: select * from "system_parameters" where "namespace" = system and "group" = project and "item" = id limit 1))
Ping? Pong!
Ping? Pong!
What does it mean?
@roulendz Exactly what it says: Ex: (Database (storage/database.sqlite) does not exist.
One of the post-composer commands that is run is php artisan october:util set build. This sets the build number, which utilizes the System\Models\Parameter model class, which requires the use of the database; which in your case either does not exist or is setup incorrectly.
Please create a new issue for that so that we can properly support database-less versions of October with that command.