neubert
neubert

Reputation: 16832

array to string conversion error in $this->encrypter->encrypt

Whenever I try to log into https://mywebsite.com/backend/backend/auth/signin I get the following error:

enter image description here

I don't get that error when I was a username that doesn't exist nor do I get that error when I use a bad password for a user that doesn't exist - I only get that error when I login with a valid username / password combo.

From what I've been able to determine the error is happening when OctoberCMS is prepping the response to my successful login attempt. It's trying to set the cookies, including admin_auth. The problem with admin_auth is that OctoberCMS is setting it to an array:

array(2) {
  [0]=>
  int(2)
  [1]=>
  string(60) "$2y$10$eMtuod9M2j5L99MPSMYo3eaFgW4dfvmJ0KSY9RXhQMd0w1klrwqEm"
}

Upvotes: 0

Views: 204

Answers (2)

LukeTowers
LukeTowers

Reputation: 1306

Update to October CMS v1.1 via composer and your problems will go away ;)

Upvotes: 1

Sergey Zakharevich
Sergey Zakharevich

Reputation: 390

Try to update the OctoberCMS version according to the instructions on the official OctoberCMS website

Upvotes: 0

Related Questions