Giter Site home page Giter Site logo

Comments (10)

WilhelmH avatar WilhelmH commented on June 3, 2024 2

I got this same error when my APP_ENV was set to production and APP_DEBUG set to true. It works when I have APP_ENV set to local

from ignition-code-editor.

jbajou avatar jbajou commented on June 3, 2024 2

php artisan cache:clear && php artisan route:clear and you are good to go (eventually).

from ignition-code-editor.

rvanbaalen avatar rvanbaalen commented on June 3, 2024 1

Im running into this error when running unit tests.

from ignition-code-editor.

mikebronner avatar mikebronner commented on June 3, 2024

My setting is:

APP_ENV="development"

Might be related to

if (! $this->app->environment('local')) {

Would it be better to write

         if ($this->app->environment('production')) { 

I often like to keep error handling in place in staging environments, but perhaps not the editor. I can see both sides of the argument.

from ignition-code-editor.

jhull avatar jhull commented on June 3, 2024

Getting this error when deploying to a Staging server through Vapor...(APP_DEBUG set to true)

from ignition-code-editor.

axelzuzek avatar axelzuzek commented on June 3, 2024

Same problem here +1 to @mikebronner s suggestion

from ignition-code-editor.

MatthiasHertel avatar MatthiasHertel commented on June 3, 2024

+1

from ignition-code-editor.

error500 avatar error500 commented on June 3, 2024

I had to chmod 777 -R storage to solve this
Edit :
and set .env APP_ENV=local first, refresh the page and re set APP_ENV=production

from ignition-code-editor.

harish444 avatar harish444 commented on June 3, 2024

if your are using Centos operationg system
sudo nano /etc/apache2/apache2.conf // ubunto
sudo nano /etc/httpd/conf/httpd.conf

Find the following code inside the editor:

<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted

Change to:

<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted

After that restart the Apache server or httpd

sudo systemctl restart httpd
or
sudo systemctl restart apache2

from ignition-code-editor.

jpmc3630 avatar jpmc3630 commented on June 3, 2024

I was getting this because I didn't have APP_KEY set in .env.testing

from ignition-code-editor.

Related Issues (8)

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.