Giter Site home page Giter Site logo

Comments (5)

herpaderpaldent avatar herpaderpaldent commented on May 28, 2024

On my mobile but according to the errorstack its because of this line

return redirect()->away(env('DISCOURSE_URL'));

So the env variable seems to be empty ... are you using docker?

from seat-discourse.

flyingferret avatar flyingferret commented on May 28, 2024

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.

flyingferret avatar flyingferret commented on May 28, 2024

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.

herpaderpaldent avatar herpaderpaldent commented on May 28, 2024

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.

herpaderpaldent avatar herpaderpaldent commented on May 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.