-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
500 Server error when trying to access admin panel #5822
Comments
This appears to have been looked at/updated in the past for 1.6. What OS is this on? Seems there is similar issues You're also contradicting a bit "This has worked up until now." and " but this was happening before I even upgraded." |
so I didn't have 'root' => "/" in there. I added that and now admin comes up but it strips the first letter of the path like one of the posters said. I'm on a Mac, My S3 config contains: |
alright, I figured it out. the AWS_URL url was missing from my env file. didn't need that root after all. I'm just using the bucket path as the AWS_URL. Admin and all images are working now. Thank you for you help! |
Laravel version
10.10
PHP version
8.1
Voyager version
1.7
Database
8.0
Description
I'm using s3 in my voyager Storage Config. I get a 500 server error when trying to access /admin this is the message in my log:
Found 1 error while validating the input provided for the GetObject operation:
[Key] expected string length to be >= 1, but found string length of 0 {"view":{"view":"/var/www/linkpro-new/vendor/tcg/voyager/resources/views/media/manager.blade.php"
just to test, I went into that file and commented out lines 8-10 and I was able to get past the error and bring up the admin panel. This is what I commented out:
<template v-if="fileIs(file, 'image')"> <div class="img_icon" :style="imgIcon('{{ Storage::disk(config('voyager.storage.disk'))->url('/') }}'+file)"></div> </template>
Steps to reproduce
Set 's3' as the Storage Config in voyager config file. Go to /admin and login.
Expected behavior
Be able to use 's3' as my storage config and pull up the admin panel without any errors. This has worked up until now.
Screenshots
No response
Additional context
I just upgraded to 1.7 but this was happening before I even upgraded.
The text was updated successfully, but these errors were encountered: