Skip to content
This repository has been archived by the owner on Oct 31, 2020. It is now read-only.

conflict between s3_enabled = false and 'output' => env('IMAGEUPLOAD_OUTPUT', 'db') #26

Open
rares-lupascu opened this issue May 18, 2018 · 5 comments

Comments

@rares-lupascu
Copy link

Hi

If i set s3_enabled = false and 'output' => env('IMAGEUPLOAD_OUTPUT', 'db') the system is still trying to use the s3_url ... so when uploading i get:

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'home_listing_s3_url' in 'where clause'

thanks

@wkopala
Copy link

wkopala commented May 31, 2018

I second this one. Can you wrap the s3 stuff in an if statement if output is set to db?

@matriphe
Copy link
Owner

matriphe commented Jun 1, 2018

Can you give me more detil on this issue? What version of Laravel and PHP do you use?

@rares-lupascu
Copy link
Author

I am using "laravel/framework": "5.6.*" and "php": ">=7.1.3"

@wkopala
Copy link

wkopala commented Jun 1, 2018 via email

@wkopala
Copy link

wkopala commented Jun 1, 2018

I figured out this issue a little better. In the saveOriginalFile function, it's setting an array key for dimension_s3_url, even if s3 is not being used. So that when the db function to createOrFirst is called and sent in the collection, there's an empty array key for s3 and no matching db field for it and it throws an error.

@nnasirzada nnasirzada mentioned this issue Jul 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants