This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

Bitdevelopment
Bitdevelopment

Hello,

While installing my first October CMS installation, it fails when running the october:migrate command with the following error:

Argument 1 passed to DbDeferredBindings::{closure}() must be an instance of October\Rain\Database\Schema\Blueprint, instance of Illuminate\Database\Schema\Blueprint given, called in /var/www/vendor/laravel/framework/src/Illuminate/Database/Schema/Builder.php on line 166

Am I missing a step? Linked the license key and october:install worked perfectly fine

Kind Regards

daftspunky
daftspunky

Hello and welcome.

This is an interesting error, it looks like October has not loaded correctly since it is passing a Laravel flavoured blueprint instead of an October one. Please email the support team with the full stack trace: https://octobercms.com/contact

You can find the full stack trace in storage/logs/system.log

Bitdevelopment
Bitdevelopment

@daftspunky Thanks for the welcome!

I have found the issue already, within our company we are using a template which we can clone from for quick-setup. Since this was not completely tested yet due to not having a license-key yet, this template contained an incomplete composer.json.

It contained the october/rain: ^2.0 dependency but not the october/all: ^2.0.

After cloning this repo for our first client and running a clean install where I did fill in the license-key, the install command installed october/all: ^3.0 in combination with october/rain: ^2.0.

This was bound to give a lot of issue's (which it did), after figuring out I switched october/all to also be the ^2.0 which solved all the weird issue's.

This was just a mistake on our side, and I overlooked the composer.json not expecting an issue like this :) Happy to tell it functions as expected now!

Kind Regards

P.S I was also pretty suprised by the error :D

Last updated

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.