doctrine1 icon indicating copy to clipboard operation
doctrine1 copied to clipboard

Do you know why I got this message ?

Open MaraScott opened this issue 8 years ago • 3 comments

Hi, Do you know why I got this kind of message ?

Fatal error: require(): Failed opening required 'symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Parser/sfYaml/sfYamlConfigHandler.php' (include_path='.:/usr/share/php') in symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Core.php on line 1118

see original issue https://github.com/qdpm/qdpm/issues/2

MaraScott avatar Sep 21 '17 13:09 MaraScott

It's becouse of autoload.

regisnew avatar Oct 02 '19 03:10 regisnew

https://github.com/FriendsOfSymfony1/doctrine1/pull/34

regisnew avatar Oct 02 '19 03:10 regisnew

Hello,

@regisnew Yes, because of autoloading logic that try to load class sfYamlConfigHandler that is not part of Yaml component see: https://github.com/FriendsOfSymfony1/doctrine1/blob/v1.3.6/lib/Doctrine/Core.php#L1135 So the PR #34 is not going to fix it, as it just upgrade Yaml code and fix composer autoloading.

@davask Doctrine1 autoloader is registered on this application. The reason is because of autoloader precedence order. Symfony1 autoloader must be register before Doctrine1 to avoid this error.

alquerci avatar Oct 05 '19 05:10 alquerci