symfony not working after a Plugin Update
Sometimes, even if you think you know your way around things, you can’t help but laugh for not noticing that you are actually going a long way around a problem.
I’ve recently updated a community favorite plugin, sfDoctrineGuardPlugin, and symfony CLI suddenly doesn’t work. The following line had shown up on my logs:
PHP Warning: require(/srv/http/sf_project/plugins/sfDoctrineGuardPlugin/lib/task/sfGuardCreateAdminTask.class.php): failed to open stream: No such file or directory in /srv/http/sf_project/lib/vendor/symfony-1.4/lib/autoload/sfSimpleAutoload.class.php on line 123
Upon source code history review, it shows that sfGuardCreateAdminTask.class.php has been removed on r25546. From I’ve pieced together after googling around vaguely suggests that the cache should have been cleared first prior to updating any symfony plugin.
I did just that. I’ve reverted to an old revision, then cleared the cache with a ./symfony cc, then reset to the current revision. Presto, symfony still works. I happily continued working on my project.
A couple of hours later, on my break I started laughing at myself (just a little, didn’t want to look crazy)… Why?

