ekino-wordpress-symfony icon indicating copy to clipboard operation
ekino-wordpress-symfony copied to clipboard

Class 'Symfony\Component\HttpKernel\Kernel' not found

Open sajad-kioumarsi opened this issue 9 years ago • 9 comments

I get this error when I want to activate the plugin:

Fatal error: Class 'Symfony\Component\HttpKernel\Kernel' not found in /var/www/lettrespersanes/symfony/app/AppKernel.php on line 7

sajad-kioumarsi avatar Jan 19 '16 20:01 sajad-kioumarsi

You're missing the Symfony HttpKernel component.

Paste your composer.json if you need more help.

hackzilla avatar Dec 11 '16 16:12 hackzilla

Hello, I added the httpKernel component by sending composer require symfony/http-kernel. Issue have been replaced by another one. Fatal error: Uncaught Error: Class 'Symfony\Bundle\FrameworkBundle\FrameworkBundle' not found in /var/www/symfonyWordpress/app/AppKernel.php:12 I'm stucked. Could you help me ? Thank you

brunoauger avatar Jun 14 '18 11:06 brunoauger

Can you paste in your composer.json and composer.lock file?

hackzilla avatar Jun 14 '18 13:06 hackzilla

Yes, thanks. composer.zip

brunoauger avatar Jun 15 '18 07:06 brunoauger

what mode are you running symfony in? if prod, you might have to clear your cache.

hackzilla avatar Jun 17 '18 08:06 hackzilla

Hello No I'm definitely on dev. As you can see in my composer.json I'm using roots/bedrock which add on level in my wordpress tree. So in my dev config I have to to define('WP_SYMFONY_PATH', __DIR__.'/../../../symfonyWordpress'); Maybe It helps...I've cleared the cache too. But always the same...

brunoauger avatar Jun 18 '18 07:06 brunoauger

The only thing I can think of, is that your autoload.php isn't being called anywhere.

hackzilla avatar Jun 25 '18 08:06 hackzilla

Hello, @hackzilla, indeed I found that the autoload.php from symfony was not called in symfony_boot() method in app/plugins/ekino-wordpress-symfony-master/core.php, but it's not just the update that I have to do to fix this issue. I also have to modify the two others require in this method, and also I have to comment $sfContainer->enterScope('request'); to be able to active the plugin, because this method was deprecated since symfony 2.8 and removed since symfony 3.0. So, I can send you a pull request if you want ?

melvinschultz avatar Jul 02 '18 06:07 melvinschultz

I'm more than happy to merge any pull request.

Personally I'm on the hunt for a better symfony cms project, that ideally has active development.

hackzilla avatar Jul 05 '18 14:07 hackzilla