Symfoy2 Sonata page bundle - symfony

I am trying to install Page Bundle From Sonata Project with the help of their doc here : https://sonata-project.org/bundles/page/2-x/doc/reference/installation.html. For some reasons i cant install it because when i make this command php app/console sonata:easy-extends:generate SonataPageBundle i get this error Fatal error: Class 'Sonata\PageBundle\SonataPageBundle' not found in C:\www\SDIN\app\AppKernel.php on line 28
Thanks for your help

Related

Symfony 6, Can't create a controller

I've installed Php 8 and I try to start coding with Symfony but I can't even create a controller.
I've created my project with:
create-project symfony/website-skeleton covid
The project was created with the version 6.1.99.
Then, in VScode, I used
symfony console make:controller Home
and it give me an error:
Parse error: syntax error, unexpected '?' in D:\Bureau\dev\covid\vendor\autoload_runtime.php on line 15
I don't understand why it's happening. Any idea ?
Edit:
It works fine if I use
php bin/console make:controller home
It seems I just can't use the symfony commands.

Symfony 4 production WebProfiler route

I try to change a Symfony 4.4 in production mode but after executing this command line from the documentation : APP_ENV=prod APP_DEBUG=0 php bin/console cache:clear
I get this error :
Bundle "WebProfilerBundle" does not exist or it is not enabled. Maybe you forgot to add it in the registerBundles() method of your App\Kernel.php file? in #WebProfilerBundle/Resources/config/routing/wdt.xml (which is being imported from "/home/admin/mercenaries/config/routes/dev/web_profiler.yaml")
The env is correct because the bundle is not loaded.
But how do I do for cancel this routes/dev repository to load ?

Symfony Class Not Found when all vendors are installed

Symfony can't find any classes, for example at AppKernel.php, I have this error
( ! ) Fatal error: Class 'Symfony\Component\HttpKernel\Kernel' not found in /app/app/AppKernel.php on line 6
All vendors are correctly installed, the cache are cleared, and the folder var/ has the right permissions.
Do you know where it can come from ?
My version of symfony is 2.8.

symfony2: Problems after installing PUGXMultiUserBundle

I have installed PUGXMultiUserBundle for using multi-users in my symfony project (buyers and sellers). After installing PUGXMultiUserBundle, I create the abstract class and the 2 entities that inherit the abstract class (Seller,Buyer).
When I try to update the database by running the command:
php app/console doctrine:schema:update --force
I have the following errors:
[Symfony\Component\DependencyInjection\Exception\InvalidArgumentException]
The service definition "fos_user.registration.form.factory" does not exist.
How do I fix this issue?

Symfony2.1 SonataUserBundle ResourceBundle error

I have this problem with Symfony.
I now use SonataUserBundle and I have this error:
The locale resource bundle could not be loaded for locale "en"
(uncaught exception) at
[...]/vendor/symfony/symfony/src/Symfony/Component/Locale/Locale.php
line 16
I have intl installed.
I did some research on Internet, and find I had to do
php data-build.php 49
Which gives me this error:
PHP Fatal error: Class 'ResourceBundle' not found in [...]Symfony/vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/data/build-data.php on line 97
Have you tried reinstalling or updating composer? I know whenever I have problems with any third party vendors I'll delete my composer.lock file and update composer to generate a new one.

Resources