-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Unrecognized options "default_locale" under "framework.session" AND Call to undefined method Symfony\Component\ClassLoader\DebugUniversalClassLoader::useIncludePath() #2509
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
Comments
The first error (about the locale) is because you upgraded to Symfony master without reading the UPGRADE file describing the needed change. |
Seems like you are using a really old version of Symfony. The MapFileClassLoader has been replaced by a MapClassLoader during the beta. And the uptodate build_bootstrap.php script is now in SensioDistributionBundle, not in |
I've downloaded the lastest versions of symfony without vendors, and installed the vendors via terminal, And i still get this error for trying to introspect an existing database and create mapping information
What's the right command for rebuilding the app/bootstrap.php.cache??? Appreciate your answer... |
The unknown type is an empty type here (see the 2 spaces with the type between them). This is a bug in Doctrine DBAL regarding PostgreSql. It may have been fixed in the DBAL master branch (which will probably require using the master branch of Common and ORM as well) as it has been reported a while ago but not sure. |
So i've updated Doctrine DBAL master branch, Common and ORM.
and run
but I still get the same error
What could be the problem??? |
Can you ask for support on the Symfony mailing-list? Thanks. |
The problem is Doctrine's... It doesn't have compatibility with postgres9.1, but with postgres8.4. |
@ilbp90 Can you open a ticket in the Doctrine issue tracker about the Postgres9.1 support ? |
Hello, Please anybody reply for this error Unrecognized options "default_locale" under "framework.session" Thanks & Best Regards, J Ajay. |
Read the UPGRADE file. The default locale is not a session setting anymore since 2.1 as the locale is not managed by the session anymore. |
Thanks! stof, But When I setLocale with $request->setLocale('fi') and $request->getSession()->set('_locale', 'fi'), is not getting effected, Should I comment fallback in config.yml? and other action need to do.. please advise. Thanks & Best Regards, J Ajay. |
I've downloaded this file (.tar) and it still doesn't work with postgres schemas.
root@-M5x0N:/home/symfony2# php app/console cache:clear --env=prod --no-debug
Clearing the cache for the prod environment with debug false
[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]
Unrecognized options "default_locale" under "framework.session"
cache:clear [--no-warmup]
root@-M5x0N:/home/symfony2# php app/console doctrine:mapping:import "AcmePruebaDBBundle" xml
PHP Fatal error: Call to undefined method Symfony\Component\ClassLoader\DebugUniversalClassLoader::useIncludePath() in /home/symfony2/vendor/symfony/src/Symfony/Component/ClassLoader/DebugUniversalClassLoader.php on line 41
Fatal error: Call to undefined method Symfony\Component\ClassLoader\DebugUniversalClassLoader::useIncludePath() in /home/symfony2/vendor/symfony/src/Symfony/Component/ClassLoader/DebugUniversalClassLoader.php on line 41
Before i installed this file, the error was
root@ileana-M5x0N:/home/symfony2# php app/console doctrine:mapping:import "AcmePruebaDBBundle" xml
[Doctrine\DBAL\DBALException]
Unknown database type requested, Doctrine\DBAL\Platforms\PostgreSqlPlatform may not support it.
doctrine:mapping:import [--em[="..."]] [--filter="..."] [--force] bundle [mapping-type]
The text was updated successfully, but these errors were encountered: