Comments (5)
On my mobile but according to the errorstack its because of this line
So the env variable seems to be empty ... are you using docker?
from seat-discourse.
No we're not using a docker install, think this was caused when fixing issues with another plugin the command php artisan config:cache
was run. But not sure on the repair, the .env file was untouched
from seat-discourse.
Talking with other Devs have had the following conversation.
kalaik utama 12:14 PM
@warlof Tutsimo folllowing running the command php artisan config:cache it seems some of my env varibles have been cleared :S and broken my discourse plugin. Although the .env are untouched the line
return redirect()->away(env('DISCOURSE_URL'));
is returning null....eeep
Warlof Tutsimo 12:15 PM
env shouldn't be call outside config files
12:15
especially since once config is cached, env is non longer used 😛
kalaik utama 12:15 PM
rodger
Warlof Tutsimo 12:15 PM
php artisan config:clear will drop existing cached config
12:16
yeah
12:16
it's reason why it has been changed long time ago in SeAT 3
kalaik utama 12:16 PM
sorry to be a pain , just trying to get it back working for my alliance and pulling my hair out
12:17
so if i run config:clear we should be back to square one ?
Warlof Tutsimo 12:17 PM
https://laravel.com/docs/8.x/configuration#configuration-caching
12:18
yeah, since there we no more cached configuration, dotenv will always reload data from $_ENV and .env file (edited)
kalaik utama 12:18 PM
thank you will try that again now, and will put this note on the issue i have raised with that plugin
Warlof Tutsimo 12:19 PM
and for timeline, here is initial fix on web repo eveseat/web@e21361a
12:19
should also have a few in eveapi package and others
kalaik utama 12:19 PM
thanks pal
from seat-discourse.
Yeah fair, when i created the package 2 years ago i was fairly inexperienced so this one of these bugs.
Using the resource warlof gave you, you could write a PR which would fasten the development significantly.
from seat-discourse.
allright i got a fix: are you able to change your composer.json to require it?
herpaderpaldent/seat-discourse: "dev-fix/evn"
should do it. I have no application running to test it myself therefore before merging and tagging the fix i need you to confirm its working.
from seat-discourse.
Related Issues (10)
- Discourse API Endpoint has changed HOT 12
- group management via seat HOT 5
- Error logging in new users and logging out HOT 11
- Getting error on login attempt HOT 1
- API request using a deprecated authentication method HOT 1
- Call to undefined method GuzzleHttp\Exception\ClientException::map() HOT 13
- forum link HOT 6
- New roles in seat not applying to already registered Discourse users. HOT 1
- Discourse does not allow group starting or ending by dot [.] HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from seat-discourse.