↓ Skip to main content

Doctrine: Unable to parse string: Unable to parse line 0 (

·1 min

Nor­mally this er­ror would mean that you have some weird syn­tax er­ror some­where in your yml files. How­ever, if you are sure everything is up to spec be sure to check whether there are any `hidden’ files in the folder. Such files start with a dot and are also read and parsed by the com­mand line gen­er­ator.

This could po­ten­tially fail, in case you get the afore­men­tioned er­ror. Be sure to re­move these files be­fore pro­ceed­ing. To check whether there are any, go to the dir­ect­ory and re­trieve it’s list­ing.

[bash] cd /some/path/to/your/yml/files ls -lha [/bash]

If you see any files start­ing with a dot and end­ing in .yml be sure to check them for any valu­able con­tent and throw them away.

Thanks to ra­jat pan­dit for hint­ing to this solu­tion.