Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when I deploy my symfony project with FosUser in production #3064

Open
JaumeAG opened this issue Oct 29, 2023 · 5 comments
Open

Error when I deploy my symfony project with FosUser in production #3064

JaumeAG opened this issue Oct 29, 2023 · 5 comments

Comments

@JaumeAG
Copy link

JaumeAG commented Oct 29, 2023

Symfony FOSUserBundle versions: 3.0

components/jquery 3.6.0 jQuery JavaScript Library
composer/installers v2.2.0 A multi-framework Composer library installer
doctrine/annotations 1.14.3 Docblock Annotations Parser
doctrine/cache 2.2.0 PHP Doctrine Cache library is a popular cache implementation that supports many different drivers such as redis, memcache, apc, mongodb and others.
doctrine/collections 1.8.0 PHP Doctrine Collections library that adds additional functionality on top of PHP arrays.
doctrine/common 3.4.3 PHP Doctrine Common project is a library that provides additional functionality that other Doctrine projects depend on such as better reflection support, proxies and much more.
doctrine/dbal 3.6.4 Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.
doctrine/deprecations v1.1.1 A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or selectively for packages.
doctrine/doctrine-bundle 2.10.1 Symfony DoctrineBundle
doctrine/doctrine-migrations-bundle 3.2.4 Symfony DoctrineMigrationsBundle
doctrine/event-manager 1.2.0 The Doctrine Event Manager is a simple PHP event system that was built to be used with the various Doctrine projects.
doctrine/inflector 2.0.8 PHP Doctrine Inflector is a small library that can perform string manipulations with regard to upper/lowercase and singular/plural forms of words.
doctrine/instantiator 1.5.0 A small, lightweight utility to instantiate objects in PHP without invoking their constructors
doctrine/lexer 2.1.0 PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.
doctrine/migrations 3.5.5 PHP Doctrine Migrations project offer additional functionality on top of the database abstraction layer (DBAL) for versioning your database schema and easily deploying changes t...
doctrine/orm 2.15.3 Object-Relational-Mapper for PHP
doctrine/persistence 3.2.0 The Doctrine Persistence project is a set of shared interfaces and functionality that the different Doctrine object mappers share.
doctrine/sql-formatter 1.1.3 a PHP SQL highlighting library
egulias/email-validator 3.2.6 A library for validating emails against several RFCs
eonasdan/bootstrap-datetimepicker 4.17.49 Date/time picker widget based on twitter bootstrap
friendsofphp/proxy-manager-lts v1.0.16 Adding support for a wider range of PHP versions to ocramius/proxy-manager
friendsofsymfony/user-bundle v3.0.0 Symfony FOSUserBundle
kevinpapst/adminlte-bundle 3.0 Admin theme bundle for Symfony 4 based on AdminLTE 2.4.8 with FOSUserBundle support
kriswallsmith/assetic v1.0.5 Asset Management for PHP
laminas/laminas-code 4.7.1 Extensions to the PHP Reflection API, static code scanning, and code generation
moment/moment 2.29.4 Parse, validate, manipulate, and display dates in JavaScript.
monolog/monolog 2.9.1 Sends your logs to files, sockets, inboxes, databases and various web services
myclabs/deep-copy 1.11.1 Create deep copies (clones) of your objects
nikic/php-parser v4.16.0 A PHP parser written in PHP
oomphinc/composer-installers-extender 2.0.1 Extend the composer/installers plugin to accept any arbitrary package type.
phar-io/manifest 2.0.3 Component for reading phar.io manifest information from a PHP Archive (PHAR)
phar-io/version 3.2.1 Library for handling version information and constraints
phpdocumentor/reflection-common 2.2.0 Common reflection classes used by phpdocumentor to reflect the code structure
phpdocumentor/reflection-docblock 5.3.0 With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.
phpdocumentor/type-resolver 1.7.2 A PSR-5 based resolver of Class names, Types and Structural Element Names
phpstan/phpdoc-parser 1.22.1 PHPDoc parser with support for nullable, intersection and generic types
phpunit/php-code-coverage 9.2.26 Library that provides collection, processing, and rendering functionality for PHP code coverage information.
phpunit/php-file-iterator 3.0.6 FilterIterator implementation that filters files based on a list of suffixes.
phpunit/php-invoker 3.1.1 Invoke callables with a timeout
phpunit/php-text-template 2.0.4 Simple template engine.
phpunit/php-timer 5.0.3 Utility class for timing
phpunit/phpunit 9.6.10 The PHP Unit Testing framework.
psr/cache 1.0.1 Common interface for caching libraries
psr/container 1.1.2 Common Container Interface (PHP FIG PSR-11)
psr/event-dispatcher 1.0.0 Standard interfaces for event handling.
psr/link 1.0.0 Common interfaces for HTTP links
psr/log 1.1.4 Common interface for logging libraries
robloach/component-installer 0.0.12 Allows installation of Components via Composer.
sebastian/cli-parser 1.0.1 Library for parsing CLI options
sebastian/code-unit 1.0.8 Collection of value objects that represent the PHP code units
sebastian/code-unit-reverse-lookup 2.0.3 Looks up which function or method a line of code belongs to
sebastian/comparator 4.0.8 Provides the functionality to compare PHP values for equality
sebastian/complexity 2.0.2 Library for calculating the complexity of PHP code units
sebastian/diff 4.0.5 Diff implementation
sebastian/environment 5.1.5 Provides functionality to handle HHVM/PHP environments
sebastian/exporter 4.0.5 Provides the functionality to export PHP variables for visualization
sebastian/global-state 5.0.5 Snapshotting of global state
sebastian/lines-of-code 1.0.3 Library for counting the lines of code in PHP source code
sebastian/object-enumerator 4.0.4 Traverses array structures and object graphs to enumerate all referenced objects
sebastian/object-reflector 2.0.4 Allows reflection of object attributes, including inherited and non-public ones
sebastian/recursion-context 4.0.5 Provides functionality to recursively process PHP variables
sebastian/resource-operations 3.0.3 Provides a list of PHP built-in functions that operate on resources
sebastian/type 3.2.1 Collection of value objects that represent the types of the PHP type system
sebastian/version 3.0.2 Library that helps with managing the version number of Git-hosted PHP projects
sensio/framework-extra-bundle v6.2.10 This bundle provides a way to configure your controllers with annotations
symfony/amqp-messenger v5.4.22 Symfony AMQP extension Messenger Bridge
symfony/apache-pack v1.0.1 A pack for Apache support in Symfony
symfony/asset v5.4.21 Manages URL generation and versioning of web assets such as CSS stylesheets, JavaScript files and image files
symfony/browser-kit v5.4.21 Simulates the behavior of a web browser, allowing you to make requests, click on links and submit forms programmatically
symfony/cache v5.4.25 Provides extended PSR-6, PSR-16 (and tags) implementations
symfony/cache-contracts v2.5.2 Generic abstractions related to caching
symfony/config v5.4.21 Helps you find, load, combine, autofill and validate configuration values of any kind
symfony/console v5.4.24 Eases the creation of beautiful and testable command line interfaces
symfony/css-selector v5.4.21 Converts CSS selectors to XPath expressions
symfony/debug-bundle v5.4.21 Provides a tight integration of the Symfony VarDumper component and the ServerLogCommand from MonologBridge into the Symfony full-stack framework
symfony/dependency-injection v5.4.25 Allows you to standardize and centralize the way objects are constructed in your application
symfony/deprecation-contracts v2.5.2 A generic function and convention to trigger deprecation notices
symfony/doctrine-bridge v5.4.25 Provides integration for Doctrine with various Symfony components
symfony/doctrine-messenger v5.4.25 Symfony Doctrine Messenger Bridge
symfony/dom-crawler v5.4.25 Eases DOM navigation for HTML and XML documents
symfony/dotenv v5.4.22 Registers environment variables from a .env file
symfony/error-handler v5.4.24 Provides tools to manage errors and ease debugging PHP code
symfony/event-dispatcher v5.4.22 Provides tools that allow your application components to communicate with each other by dispatching events and listening to them
symfony/event-dispatcher-contracts v2.5.2 Generic abstractions related to dispatching event
symfony/expression-language v5.4.21 Provides an engine that can compile and evaluate expressions
symfony/filesystem v5.4.25 Provides basic utilities for the filesystem
symfony/finder v5.4.21 Finds files and directories via an intuitive fluent interface
symfony/flex v1.20.0 Composer plugin for Symfony
symfony/form v5.4.24 Allows to easily create, process and reuse HTML forms
symfony/framework-bundle v5.4.25 Provides a tight integration between Symfony components and the Symfony full-stack framework
symfony/http-client v5.4.25 Provides powerful methods to fetch HTTP resources synchronously or asynchronously
symfony/http-client-contracts v2.5.2 Generic abstractions related to HTTP clients
symfony/http-foundation v5.4.25 Defines an object-oriented layer for the HTTP specification
symfony/http-kernel v5.4.25 Provides a structured process for converting a Request into a Response
symfony/intl v5.4.25 Provides a PHP replacement layer for the C intl extension that includes additional data from the ICU library
symfony/mailer v5.4.22 Helps sending emails
symfony/maker-bundle v1.43.0 Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.
symfony/messenger v5.4.25 Helps applications send and receive messages to/from other applications or via message queues
symfony/mime v5.4.23 Allows manipulating MIME messages
symfony/monolog-bridge v5.4.22 Provides integration for Monolog with various Symfony components
symfony/monolog-bundle v3.8.0 Symfony MonologBundle
symfony/notifier v5.4.22 Sends notifications via one or more channels (email, SMS, ...)
symfony/options-resolver v5.4.21 Provides an improved replacement for the array_replace PHP function
symfony/password-hasher v5.4.21 Provides password hashing utilities
symfony/phpunit-bridge v6.3.1 Provides utilities for PHPUnit, especially user deprecation notices management
symfony/polyfill-intl-grapheme v1.27.0 Symfony polyfill for intl's grapheme_* functions
symfony/polyfill-intl-icu v1.27.0 Symfony polyfill for intl's ICU-related data and classes
symfony/polyfill-intl-idn v1.27.0 Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions
symfony/polyfill-intl-normalizer v1.27.0 Symfony polyfill for intl's Normalizer class and related functions
symfony/polyfill-mbstring v1.27.0 Symfony polyfill for the Mbstring extension
symfony/polyfill-php73 v1.27.0 Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions
symfony/polyfill-php80 v1.27.0 Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions
symfony/polyfill-php81 v1.27.0 Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions
symfony/process v5.4.24 Executes commands in sub-processes
symfony/property-access v5.4.22 Provides functions to read and write from/to an object or array using a simple string notation
symfony/property-info v5.4.24 Extracts information about PHP class' properties using metadata of popular sources
symfony/redis-messenger v5.4.23 Symfony Redis extension Messenger Bridge
symfony/routing v5.4.25 Maps an HTTP request to a set of configuration variables
symfony/runtime v5.4.25 Enables decoupling PHP applications from global state
symfony/security-bundle v5.4.22 Provides a tight integration of the Security component into the Symfony full-stack framework
symfony/security-core v5.4.22 Symfony Security Component - Core Library
symfony/security-csrf v5.4.21 Symfony Security Component - CSRF Library
symfony/security-guard v5.4.22 Symfony Security Component - Guard
symfony/security-http v5.4.23 Symfony Security Component - HTTP Integration
symfony/serializer v5.4.25 Handles serializing and deserializing data structures, including object graphs, into array structures or other formats like XML and JSON.
symfony/service-contracts v2.5.2 Generic abstractions related to writing services
symfony/stopwatch v5.4.21 Provides a way to profile code
symfony/string v5.4.22 Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way
symfony/templating v5.4.21 Provides all the tools needed to build any kind of template system
symfony/translation v5.4.24 Provides tools to internationalize your application
symfony/translation-contracts v2.5.2 Generic abstractions related to translation
symfony/twig-bridge v5.4.22 Provides integration for Twig with various Symfony components
symfony/twig-bundle v5.4.21 Provides a tight integration of Twig into the Symfony full-stack framework
symfony/validator v5.4.25 Provides tools to validate values
symfony/var-dumper v5.4.25 Provides mechanisms for walking through any arbitrary PHP variable
symfony/var-exporter v5.4.21 Allows exporting any serializable PHP data structure to plain PHP code
symfony/web-link v5.4.21 Manages links between resources
symfony/web-profiler-bundle v5.4.24 Provides a development tool that gives detailed information about the execution of any request
symfony/webpack-encore-bundle v1.17.1 Integration with your Symfony app & Webpack Encore!
symfony/yaml v5.4.23 Loads and dumps YAML files
theseer/tokenizer 1.2.1 A small library for converting tokenized PHP source code into XML and potentially other formats
twig/extra-bundle v3.6.1 A Symfony bundle for extra Twig extensions
twig/twig v3.6.1 Twig, the flexible, fast, and secure template language for PHP
webmozart/assert 1.11.0 Assertions to validate method input/output with nice error messages.

Description of the problem including expected versus actual behavior:
I have a project in Symfony 5 that uses FosUser for user administration, on my local Symdfony-CLI server everything works correctly without any problem, the errors come when I upload the project to a VPS server or XAMPP, on my VPS server the login appears without CSS and when I log in with a user it gives me a 500 error, specifically this one -> "The server returned a "500 Internal Server Error".
Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused."
I have enabled the rewiter module in my Apache and I keep getting the same error, I also installed the Apache-pack in composer and it doesn't work either and to finish I was testing in my XAMPP since it is the closest thing to a server but locally and the login looks correct
and I can access the application but there are CSS files that it does not load, how can there be so much difference with Symfony-CLI

Describe the feature:
Symfony: 5
FOSUserBundle: 3.0
PHP: 7.4

@stof
Copy link
Member

stof commented Oct 30, 2023

You should look at our logs to see what the error message is. 500 Internal Server Error does not allow us to help you as we cannot know what the actual error is.

@JaumeAG
Copy link
Author

JaumeAG commented Oct 30, 2023

your records or mine? If they are yours, where can I consult them?

@stof
Copy link
Member

stof commented Oct 30, 2023

I don't have any log records of your own website.

The symfony logs are in var/logs/prod.log by default.

@JaumeAG
Copy link
Author

JaumeAG commented Oct 30, 2023

The question is that the 500 appears right after logging in, symfony 5 is not recording the logs for me, therefore /var/log/prod.log does not exist in my project, is there any other way to give you the necessary information and know more or less what could be happening, because prior to this problem it happened to me that I couldn't find /login, but it installs apache-pack and now it finds it but it doesn't load my login with css, it loads the default FOS one, once I solve it this, now it gives me an error when logging in

@ph-il
Copy link

ph-il commented Mar 22, 2024

You have monolog, so you should have a log. If you don't it might be a PHP problem, so be sure to lock for the phperror.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants