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

Login broken: UserCollectionModel.php #80

Open
poetaster opened this issue Jul 5, 2023 · 6 comments
Open

Login broken: UserCollectionModel.php #80

poetaster opened this issue Jul 5, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@poetaster
Copy link

Got error 'PHP message: PHP Notice: unserialize(): Error at offset 193 of 307 bytes in /var/www/czentrifuga.poetaster.de/htdocs/automad/src/UI/Models/UserCollectionModel.php

Can't reset password, can't login.

@poetaster
Copy link
Author

Strange. I had to create new users on the command line.

@poetaster
Copy link
Author

Strange. I had to create new users on the command line.

AND I just noticed, if I am logged in, I get the same error just navigating to the dashboard?

@marcantondahmen
Copy link
Owner

Hi, can you quickly check if there is any error output inside of the accounts file?

@poetaster
Copy link
Author

I'm not sure what you mean? I took a look at the array definitions and it looked like the lengths and the structure was correct ( for instance hash fields s:60: ). quotes and braces where balanced. I guess I could try removing it and starting from scratch? But I have to time that since there are a couple of users?

@marcantondahmen
Copy link
Owner

Sorry to hear that. Usually this could happen when upgrading an older Automad version to an unsupported PHP version. But that would place an error in the file for debugging.

The following things would be interesting to know:

  1. was the accounts file opened before in any text editor that potentially modified the content such ad quotes etc.?
  2. has the PHP version been upgraded before?
  3. what Automad version is installed and has Automad been updated before?
  4. did someone added or change an account recently that may cause trouble?

Let's try to figure this out before trashing the accounts.

@marcantondahmen marcantondahmen added the bug Something isn't working label Jul 6, 2023
@poetaster
Copy link
Author

Sorry, I got caught up in actual USE of automad :) I'll try to follow up on the next editing session. But, the file in question has already been updated (by automad) so it'll take some time to replicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants