Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

199
Views
FosuserBundle (La ruta "fos_user.from_email.address" no puede contener un valor vacío, pero es nulo).

Tengo un problema cuando instalo FOsuserbundle. Este es mi problema en el resultado:

este es mi config.yml:

 fos_user: db_driver: orm # other valid values are 'mongodb' and 'couchdb' firewall_name: main user_class: AppBundle\Entity\User from_email: address: "%mailer_user%" sender_name: "%mailer_user%"

seguridad:

 # http://symfony.com/doc/current/security.html#b-configuring-how-users-are-loaded providers: in_memory: memory: ~ firewalls: # disables authentication for assets and the profiler, adapt it according to your needs dev: pattern: ^/(_(profiler|wdt)|css|images|js)/ security: false main: anonymous: ~ # activate different ways to authenticate # http://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate #http_basic: ~ # http://symfony.com/doc/current/cookbook/security/form_login_setup.html #form_login: ~ encoders: FOS\UserBundle\Model\UserInterface: bcrypt role_hierarchy: ROLE_ADMIN: ROLE_USER ROLE_SUPER_ADMIN: ROLE_ADMIN providers: fos_userbundle: id: fos_user.user_provider.username firewalls: main: pattern: ^/ form_login: provider: fos_userbundle csrf_token_generator: security.csrf.token_manager # if you are using Symfony < 2.8, use the following config instead: # csrf_provider: form.csrf_provider logout: true anonymous: true access_control: - { path: ^/login$, role: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/admin/, role: ROLE_ADMIN }

y este es mi enrutamiento.yml:

fos_user: recurso: "@FOSUserBundle/Resources/config/routing/all.xml"

about 4 years ago · Santiago Trujillo
2 answers
Answer question

0

El problema es con su archivo de parámetros.yml:

 parameters: ... mailer_user: null mailer_password: null

Cambie eso a algo, entonces no obtendrá el error.

about 4 years ago · Santiago Trujillo Report

0

El FOSUserBundle tiene soporte incorporado para enviar correos electrónicos en dos instancias diferentes.

Estos valores no pueden ser nulos, por lo que si intenta establecer el valor de estas propiedades con "" o ~, el problema persistirá. Proporcione valores que no sean nulos. Funcionará.

 # /app/config.yml fos_user: from_email: address: "testapp@testapp.com" sender_name: "Test App"
about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!