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

[4.x] Ensure file array is correctly formatted #9316

Closed
wants to merge 2 commits into from
Closed

[4.x] Ensure file array is correctly formatted #9316

wants to merge 2 commits into from

Conversation

potsky
Copy link
Contributor

@potsky potsky commented Jan 12, 2024

On a fresh install, I have this exception Undefined array key "type" when going to the /cp/utilities/cache page.
I have enable the avatar field in the users blueprint.

The content of the $files is this:

array:1 [▶
  "path" => "avatar"
]

Given that we do not use a DTO, we should ensure that the array structure is correct.

Screenshot 2024-01-12 - 16-28-35@2x

@potsky potsky changed the title Ensure array $file is correctly formatted Ensure file array is correctly formatted Jan 12, 2024
@potsky potsky changed the title Ensure file array is correctly formatted [4.x] Ensure file array is correctly formatted Jan 12, 2024
@duncanmcclean
Copy link
Member

On a fresh install, I have this exception Undefined array key "type" when going to the /cp/utilities/cache page.
I have enable the avatar field in the users blueprint.

I'm unable to replicate this on a fresh install. Are you able to provide steps to reproduce?

@ryanmitchell
Copy link
Contributor

Are you using eloquent driver? I think this may be related to that.

@potsky
Copy link
Contributor Author

potsky commented Jan 15, 2024

Yes @ryanmitchell @duncanmcclean 👍
I use the Eloquent Driver for users and I have added the avatar field in the User blueprint.
Assets are stored on S3 too.

@potsky
Copy link
Contributor Author

potsky commented Jan 15, 2024

But given that is is related to the Stache (not Eloquent correct?), the Stache should ensure that the file is correctly formatted as excepted.

@jasonvarga
Copy link
Member

jasonvarga commented Jan 18, 2024

Please provide a repo where this issue is reproducible, or at least more detailed steps on how to reproduce it. It seems like maybe there's another issue at play.

@jasonvarga jasonvarga closed this Jan 18, 2024
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

Successfully merging this pull request may close these issues.

4 participants