I had a similar issue once. I am not sure what exactly it was, but I
think it was two errors playing together. Symfony tries to chmod/umask
the cache file after it is written, and I have a virtual linux server
accessing the data on a windows share which does not allow chmod. So an
error occured after the first cache file was written, but I didn't see
the error message because I had the sfErrorNotifier plugin in this env,
and it was not configured yet. And after each start only the next cache
file was written, so eventually after some tries it worked normally,
because in the end all cache files were written.
Try to comment out the lines 365 and 366 (chmod, umask) in
lib/vendor/symfony/lib/config/sfConfigCache.class.php, this helped in my
case.
HTH Georg
Am 29.07.2010 18:07, schrieb Jonotron:
> I've just started playing with Symfony 1.4.6 (after having worked with
> 1.0 many moons ago) and I am having a significant problem with the
> generated cache files. It seems as though they are not being generated
> correctly but in an inconsistent manner. I will get syntax errors in a
> few cache files that will eventually disappear if I cache:clear and
> reload the page enough times (sometimes requiring 5-6 cache clears).
>
> The syntax errors are inconsistent but usually:
> unexpected $end in /myproject/cache/frontend/dev/config/
> config_autoload.yml.php
> unexpected $end in /myproject/cache/frontend/dev/config/
> config_factories.yml.php
>
> I also get the error on the command line when I try a doctrine:build-
> model. It gets to the "resetting application autoloaders" step then
> gives me an "unexpected $end in /myproject/cache/frontend/dev/config/
> config_autoload.yml.php". This error disappears if I try
> doctrine:build-model enough times.
>
> I am running Ubuntu 10.04, Apache 2.2.14, PHP 5.3.2 with APC (above
> errors appear with APC on or off) and Symfony 1.4.6 (installed from
> tar.gz)
>
> Any ideas what is going on? It's putting a bad taste in my mouth and
> quite frustrating to work this way.
>
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en