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

WordpressResponseSubscriber being called after removal, forced cache clear and fresh checkout #134

Closed
crmpicco opened this issue Sep 11, 2017 · 1 comment

Comments

@crmpicco
Copy link

I installed the EkinoWordpressBundle and later removed it as, I believe, I no longer need it.

When I access my application I get this error:

Symfony\Component\Debug\Exception\ClassNotFoundException: Attempted to
load class "WordpressResponseSubscriber" from namespace
"Ekino\WordpressBundle\Event\Subscriber". Did you forget a "use"
statement for another namespace? in
/private/var/www/cache/prod/classes.php on line 1950

When I delete classes.php manually I then get this error:

Symfony\Component\Debug\Exception\ClassNotFoundException: Attempted to
load class "WordpressResponseSubscriber" from namespace
"Ekino\WordpressBundle\Event\Subscriber". Did you forget a "use"
statement for another namespace? in
/Library/WebServer/Documents/crmpicco/symfony/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/ContainerAwareEventDispatcher.php
on line 152

I have a Wordpress app and a Symfony app sitting alongside each other, which was working until I started to strip out references to the EkinoWordpressBundle. See my other question for some background.

Why is this WordpressResponseSubscriber being referenced after I have removed it from my application first with composer and then with a fresh checkout?

@eko
Copy link
Collaborator

eko commented Sep 12, 2017

Hello @crmpicco,

Please also remove the vendor/ekino/wordpress-bundle directory and ensure you do not have any configuration under the ekino_wordpress section.

There is no other reason for Symfony trying to call this class if any reference on it exists anymore.

Thank you

@eko eko closed this as completed Sep 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants