ekino-wordpress-symfony
ekino-wordpress-symfony copied to clipboard
Class 'Symfony\Component\HttpKernel\Kernel' not found
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
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
Can you paste in your composer.json
and composer.lock
file?
Yes, thanks. composer.zip
what mode are you running symfony in? if prod, you might have to clear your cache.
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...
The only thing I can think of, is that your autoload.php isn't being called anywhere.
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 ?
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.