wallabag: Unable to upgrade to Wallabag 2.6.2

Environment

  • Version: 2.6.2
  • Installation: downloaded Package
  • PHP version: 7.4
  • Database: 5.7.22
  • Parameters:
My app/config/parameters.yml is:
# This file is auto-generated during the composer install
parameters:
    database_driver: pdo_mysql
    database_host: localhost
    database_port: null
    database_name: wall480
    database_user: wall480
    database_password: i!I9Tp8S.28
    database_path: null
    database_table_prefix: wlyo_
    database_socket: null
    database_charset: utf8mb4
    domain_name: 'http://[[Domain]]/wall480/web'
    server_name: 'Wallabag'
    mailer_transport: smtp
    mailer_user: null
    mailer_password: null
    mailer_host: 127.0.0.1
    mailer_port: false
    mailer_encryption: null
    mailer_auth_mode: null
    locale: en
    secret: oslbi3l4asanpk0eoa66fwhj2ajrpd
    twofactor_auth: true
    twofactor_sender: no-reply@wallabag.org
    fosuser_registration: true
    fosuser_confirmation: true
    fos_oauth_server_access_token_lifetime: 3600
    fos_oauth_server_refresh_token_lifetime: 1209600
    from_email: no-reply@wallabag.org
    rss_limit: 50
    rabbitmq_host: localhost
    rabbitmq_port: 5672
    rabbitmq_user: guest
    rabbitmq_password: guest
    rabbitmq_prefetch_count: 10
    redis_scheme: tcp
    redis_host: localhost
    redis_port: 6379
    redis_path: null
    redis_password: null
    sentry_dsn: null

What steps will reproduce the bug?

I am facing following issue while upgrading the wallabag 2.5.4 to 2.6.2

Fatal error: Declaration of Wallabag\UserBundle\Controller\RegistrationController::registerAction(Symfony\Component\HttpFoundation\Request $request) must be compatible with FOS\UserBundle\Controller\RegistrationController::registerAction(Symfony\Component\HttpFoundation\Request $request): Symfony\Component\HttpFoundation\Response in [[PATH]]/src/Wallabag/UserBundle/Controller/RegistrationController.php on line 10

Is this happening because the upgraded package still has old parameters.php ?

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Comments: 27 (16 by maintainers)

Most upvoted comments

Can you then try APP_ENV=prod php bin/console cache:clear --env=prod?

The DebugBundle error appear because it does not detect the env and assume you are in dev env. So it tries to load that bundle which isn’t shipped to the tagged version of wallabag.