Last week I was working away in the office at Line Digital on our latest Symfony based project when our project started giving us a strange error similar to:-

Fatal error: Uncaught exception ‘sfConfigurationException’ with message ‘Configuration file "/usr/lib/php/symfony/config/config/core_compile.yml" does not have a registered handler.’ in /usr/lib/php/symfony/config/sfConfigCache.class.php:101

Looking into this a little closer we found that the server had ran out of disk space so after making some space and using “symfony cc” to clear the cache we thought that this would have resolved the problem, however we continued to get the “does not have a registered handler” message being presented.

In the end, we had to clear the cache manually with a command similar to:-

rm -fr cache/*

For some reason this seemed to work fine where as the “symfony cc” command didn’t work therefore the only conclusion that we could come up with is that when the server ran out of disk space it corrupted something in the symfony cache which either is not normally cleared with a “symfony cc” and as a result we needed to remove it completely so symfony could re-build it automatically.