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

Wallabag V2 : PHP Fatal error: Uncaught exception 'Symfony\\Component\\Debug\\Exception #1609

Closed
gerroon opened this issue Jan 21, 2016 · 1 comment
Labels
Milestone

Comments

@gerroon
Copy link

gerroon commented Jan 21, 2016

Hello

I have been trying to install v2 alpha. I believe that I setup the Virtual host as described. I still get errors. Xxx are there to hide private information.

The server works on the custom server that comes with Symphony.

NameVirtualHost *:xxx
<VirtualHost *:xxx>
    ServerName xxxx.com
    DocumentRoot /var/www/wallabag_v2/web
    <Directory /var/www/wallabag_v2/web>
            Options Indexes FollowSymLinks Includes
                AllowOverride All
                Order Allow,Deny
                Allow from All

        </Directory>

                SSLEngine on
                SSLCertificateFile /xxxxxx/server.pem
                SSLCertificateKeyFile  /xxxxxx/server.key

                SSLOptions +StdEnvVars

                SetEnvIf User-Agent ".*MSIE.*" \
                      nokeepalive ssl-unclean-shutdown \
                      downgrade-1.0 force-response-1.0

                ErrorLog /var/log/apache2/wallabag_error.log
            CustomLog /var/log/apache2/wallabag_access.log combined

</VirtualHost>

PHP Fatal error: Uncaught exception 'Symfony\Component\Debug\Exception\ContextErrorException' with message 'Catchable Fatal Error: Argument 2 passed to Wallabag\UserBundle\Mailer\AuthCodeMailer::__construct() must be an instance of Symfony\Component\Translation\DataCollectorTranslator, instance of Symfony\Bundle\FrameworkBundle\Translation\Translator given, called in /var/www/wallabag_v2/app/cache/prod/appProdProjectContainer.php on line 2207 and defined' in /var/www/wallabag_v2/src/Wallabag/UserBundle/Mailer/AuthCodeMailer.php:59\nStack trace:\n#0 /var/www/wallabag_v2/src/Wallabag/UserBundle/Mailer/AuthCodeMailer.php(59): Symfony\Component\Debug\ErrorHandler->handleError(4096, 'Argument 2 pass...', '/var/www/wallab...', 59, Array)\n#1 /var/www/wallabag_v2/app/cache/prod/appProdProjectContainer.php(2207): Wallabag\UserBundle\Mailer\AuthCodeMailer->__construct(Object(Swift_Mailer), Object(Symfony\Bundle\FrameworkBundle\Translation\Translator), 'no-reply@wallab...', NULL, 'https://www.wal...')\n#2 /var/www/wallabag_v2/app/bootstrap in /var/www/wallabag_v2/src/Wallabag/UserBundle/Mailer/AuthCodeMailer.php on line 59

@nicosomb nicosomb added this to the 2.0.0-beta.1 milestone Jan 21, 2016
@nicosomb nicosomb added the Bug label Jan 21, 2016
@j0k3r
Copy link
Member

j0k3r commented Jan 21, 2016

Thanks for reporting that error!

It has been fixed (see #1587) but it's not yet released.
If you want to test it, you can do:

composer create-project wallabag/wallabag wallabag 2.x-dev
php bin/console wallabag:install
php bin/console server:run

@j0k3r j0k3r closed this as completed Jan 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants