You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
This appears to have been looked at/updated in the past for 1.6.
It's trying to get an icon url from S3 by dynamically mashing together php configs with vue's loop variables.
S3 is complaining that the filename key given is empty. Unless you have/had a pre 1.6 template that's still cached?
What OS is this on?
What do you have in your S3 config? (Without exposing credentials of course)
Do you have either of the following set?
'root' => "/" (Maybe try with or without this)
'directory_separator' => '/' (Might be needed on Windows?)
You're also contradicting a bit "This has worked up until now." and " but this was happening before I even upgraded."
If emptynick had it "working" I have no reason to doubt it was for him, so I gotta lean towards a configuration difference possibly?
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.
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: