All Questions
Tagged with production-environment symfony
81
questions
-1
votes
1
answer
26
views
symfony 6 login not working on production
I have two login forms.
One for users:
https://www.********/login
This login works on development but doesn't work on production. On production it simply redirects to the login page with no error ...
1
vote
1
answer
593
views
symfony6 - No log in prod env
I have error 500 in prod env and no log are generated.
/var/www/myapp/var/log and /var/log/apache2/myapp_error.log are both empty.
I set up permissions as in documentation but nothing change.
1
vote
1
answer
794
views
How to setup Ratchet Websocket server for production for Symfony 6 app on platform.sh
I am trying to setup a Ratchet Websocket server on my Symfony 6 app for production environment on platform.sh
Didn't find any reliable documentation about the subject, I have several questions :
...
-1
votes
1
answer
167
views
Symfony Deprecated : Return type of Knp
When switching to prod mode in .env (with DEBUG=0), I have this error :
Error picture
I can't neither solve it nor remove it. I'm in version 5.3.16 for Symfony, 8.1.3 for php and in composer.json I ...
0
votes
0
answers
63
views
Authentification Symfony Production "Invalid Credentials"
I finally and not without difficulty managed to put my site on line on heroku! :) It works and I have implemented data in my base. Here is the link to the site: https://societe-espion.herokuapp.com/...
0
votes
1
answer
380
views
login failure in prodcution mode
I am using symfony 5.4.4.
I encounter a problem when I try to connect a user without launching the php server (I want to work in production mode).
I used make:user commands to create the User entity. ...
1
vote
1
answer
935
views
Why in the symfony 5.3 in prod mod I get a 503 error while in dev mod not
I have a symfony 5.3 project that has no problems in dev mod but as soon as I get the project to prod mode I get a 503 error.
The method is as follows
public function index($username,$lesson = '...
0
votes
1
answer
883
views
Symfony 5 VichUploaderBundler : The type hint of parameter "imageFile" in method "setImageFile" in class "App\Entity\xxx" is invalid
During a production cache clear I have this message : The type hint of parameter "imageFile" in method "setImageFile" in class "App\Entity\Evenement" is invalid. I ...
1
vote
0
answers
156
views
Symfony 4.2.8 : Can't connect to ES 7.10 through the fos:elastica:populate command
I encounter a problem in my production site in Symfony 4.2.8 (yes I know...).
When I try to launch a bin/console fos:elastica:populate or bin/console fos:elastica:reset the console crash (with -vvv ...
3
votes
4
answers
7k
views
Doctrine:migrations:migrate. The metadata storage is not up to date, please run the sync-metadata-storage command to fix this issue
When I try to migrate doctrine:migrations:migrate, I get this exception: "The metadata storage is not up to date, please run the sync-metadata-storage command to fix this issue.". This only occurs ...
-1
votes
1
answer
576
views
Missing vendor asset in prod env of symfony error-handler
After upgrading to symfony 5, I found a warning of a missing asset of symfony's error-handler:
php.WARNING: Warning: include(/var/www/projekt/nakade/vendor/symfony/error-handler/ErrorRenderer/../...
4
votes
1
answer
2k
views
Symfony 4 not logging in on production mode
I am developing a website in symfony 4.2. After I put it to production server, I modified APP_ENV to prod, and run composer update --no-dev.
After doing this, I can't logging in. I have got no login ...
0
votes
1
answer
3k
views
Symfony 4, access to public/index.php OK in dev mode, access KO (404) in prod mode
In development mode, I use an apache server, I go to my App via localhost/myApp/public/index.php . I want test prod mod with my symfony 4 application.
I changed the APP_ENV variable to "prod&...
4
votes
3
answers
9k
views
PHP Fatal error: Uncaught RuntimeException: APP_ENV environment variable is not defined
I am deploying Symfony 4 project on production.
Created .env file with a content:
APP_ENV=prod
APP_DEBUG=0
Run composer:
$ composer install --no-dev --optimize-autoloader
Getting error:
Script ...
0
votes
1
answer
1k
views
Symfony - Path /admin accessible in local but 404 in prod environnement
I have added a sonata admin to my website.
In local, i can access to the path /admin but not when I push it on my prod environnement. I get a 404 when i try to access it :
Not Found
The requested ...