ElasticsearchBundle icon indicating copy to clipboard operation
ElasticsearchBundle copied to clipboard

Class does not exists

Open castillotomupwork opened this issue 4 years ago • 3 comments

https://github.com/ongr-io/ElasticsearchBundle/blob/ae8e87017df3b2bbf3a39c1a5b66c799253d9178/DependencyInjection/Compiler/MappingPass.php#L65

in this line I'm getting an error. I checked the value of $namespace and it contains only the name of the class excluding the namespace.

mappingpass error

castillotomupwork avatar Aug 21 '20 16:08 castillotomupwork

Had the same error. Check your line endings. I am working on a windows machine but the site is running on a linux machine. In MappingPass.php there is a reg_match against a line ending and it would not recognize the windows line ending.

Long story short: Make sure your line endings match the OS your website is running on.

Hope that helps and good luck!

in0de avatar Aug 23 '20 15:08 in0de

@castillotomupwork I had the same problem: https://github.com/ongr-io/ElasticsearchBundle/issues/927

pawellen avatar Sep 29 '20 18:09 pawellen

I had the same problem. In my src folder was a .preload.php file without a class which crashed the ReflectionClass constructor because the namespace was just \.

maluramichael avatar Jun 04 '21 10:06 maluramichael