Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with update #24

Closed
gmhenderson opened this issue Aug 6, 2014 · 5 comments
Closed

Error with update #24

gmhenderson opened this issue Aug 6, 2014 · 5 comments

Comments

@gmhenderson
Copy link

Starting with [89fc486]

I get

Generating autoload files
{"error":{"type":"ErrorException","message":"Argument 1 passed to Cartalyst\\Sentinel\\Laravel\\SentinelServiceProvider::configHitsLottery() must be of the type array, null given, called in \/home\/vagrant\/code\/sbe\/vendor\/cartalyst\/sentinel\/src\/Laravel\/SentinelServiceProvider.php on line 403 and defined","file":"\/home\/vagrant\/code\/sbe\/vendor\/cartalyst\/sentinel\/src\/Laravel\/SentinelServiceProvider.php","line":415}}{"error":{"type":"ErrorException","message":"Argument 1 passed to Cartalyst\\Sentinel\\Laravel\\SentinelServiceProvider::configHitsLottery() must be of the type array, null given, called in \/home\/vagrant\/code\/sbe\/vendor\/cartalyst\/sentinel\/src\/Laravel\/SentinelServiceProvider.php on line 403 and defined","file":"\/home\/vagrant\/code\/sbe\/vendor\/cartalyst\/sentinel\/src\/Laravel\/SentinelServiceProvider.php","line":415}}
@suwardany
Copy link
Contributor

Hello @gmhenderson

That is because of the final changes introduced before it was tagged stable, check out the guide here for more info on what changed, https://gist.github.com/suwardany/36b799127aed5952236a

@gmhenderson
Copy link
Author

Hello @suwardany. Unfortunately the guide isn't helping. I ran a composer update already and I had also wiped my database, so I don't have any of the old migrations, so the MigrateSentinel class can't find them. Shouldn't a composer update be like installing a 'fresh' version of Sentinel? I tried removing my entire vendor dir and then running composer update again, but I get the same error. Any suggestions?

@suwardany
Copy link
Contributor

Hello again @gmhenderson

If you wiped the db then ignore the migration script and just run the migrations

EDIT: The Sentinel migrations, php artisan migrate --package=cartalyst=sentinel

@thesoftwarefarm
Copy link

I have the same problem. When I run composer install/update everything works fine, but when I run php artisan migrate --package=cartalyst/sentinel I receive the same error as @gmhenderson.

@gmhenderson
Copy link
Author

Got it, I didn't see huglester's comment at the bottom of the migration guide, about updating the config file. So be sure to add 'lottery' => [2, 100], to the reminders and activations arrays in the sentinel config file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants