Users getting wiped out #7604
Replies: 5 comments 7 replies
-
Do you have any addons installed - does this happen when updating to any 3.4 version? |
Beta Was this translation helpful? Give feedback.
-
You can try by removing this line from your |
Beta Was this translation helpful? Give feedback.
-
Would you be able to provide access to your 3.3 site so we could try the upgrade ourselves? I've never heard of this before and don't see any reason why it would be happening. |
Beta Was this translation helpful? Give feedback.
-
@jasonvarga @edalzell Hi Jason, Erin. I've been experiencing this issue again. It may not be related to v3.4, but it does seem to be happening frequently now since the update. I thought that there was possibly an issue with my git pull config/merge settings, but now it appears to be more to do with cache clearing and stache warming? I'm the only dev on this site. My typical workflow when I make any code changes is use the Git tool in utils to push latest changes on production to GitHub, then pull origin/master to my local system. Then make changes, commit, push to GH, deploy to production with Forge. After a pull from GH to my local system, everything looks fine: Then clear the statamic cache: Then warm the stache, and most/all of my users get nuked: A nuked user goes from a typical yaml look for a statamic user with several fields, eg. id, name, email, types/roles, password hash to just a single line in the yaml with an id (which is newly assigned): I tried clearing the Laravel cache with artisan cache:clear and that seemed to resolve for a bit, but then same issue resurfaced. I've only seen this behavior happen on my local dev environment (thankfully!), but my production server is basically doing the same sequence (pull, please cache:clear, please stache:warm)...praying this doesn't start happening on production. Any ideas/suggestions? |
Beta Was this translation helpful? Give feedback.
-
Here's another one to twist your brain...after (again) resetting head to origin/master, I ran 'php artisan statamic:stache:doctor' just for kicks. Got the 'Call to a member function requiresSlugs()' error. Reset the cache with 'php please cache:clear', ran 'php artisan statamic:stache:doctor' again, error is gone, BUT one user gets nuked--mine only! Keep in mind the local site is untouched while this is happening--just the updated head to match origin. Very odd: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Having an issue since the 3.4 update with user getting clobbered.
I believe this is occurring when running a composer update?
I have a custom user blueprint (to support an avatar field), eg:
Then (I believe) following a composer update, this file gets clobbered down to just the id:
This happens to all of my users....
What is going on here? Is statamic running a post-install script that is doing this? How to avoid?
Beta Was this translation helpful? Give feedback.
All reactions