You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Symfony FOSUserBundle versions: dev-master (v3.2.1 at the time of writing)
Description of the problem including expected versus actual behavior:
Application runs just fine on PHP 7.4, but of course we need to migrate to PHP 8.x rather sooner than later. After setting the PHP-version to ^8.2 and running composer update, Symfony automatically runs symfony console cache:clear for us. Then the following error appears:
$ symfony console cache:clear
[WARNING] Some commands could not be registered:
In XmlDriver.php line 1006:
Warning: DOMDocument::schemaValidate(): Invalid Schema
When I go to that line, it shows:
try {
$document = new DOMDocument();
$document->load($file);
if (! $document->schemaValidate(__DIR__ . '/../../../../../doctrine-mapping.xsd')) {
throw MappingException::fromLibXmlErrors(libxml_get_errors());
}
...
}
When I dump the value of $file, it shows [...]/vendor/friendsofsymfony/user-bundle/Resources/config/doctrine-mapping/User.orm.xml, as if that file is not a valid mapping file. Symfony didn't complain about this while I was still on version PHP 7.4.
Obviously the recommended approach is to move away from this library, but maybe someone knows a quick fix for this. Quite possible that this error is more related to Doctrine than to this bundle, but decided to ask here first.
The text was updated successfully, but these errors were encountered:
Symfony FOSUserBundle versions:
dev-master
(v3.2.1 at the time of writing)Description of the problem including expected versus actual behavior:
Application runs just fine on PHP 7.4, but of course we need to migrate to PHP 8.x rather sooner than later. After setting the PHP-version to
^8.2
and runningcomposer update
, Symfony automatically runssymfony console cache:clear
for us. Then the following error appears:When I go to that line, it shows:
When I dump the value of
$file
, it shows[...]/vendor/friendsofsymfony/user-bundle/Resources/config/doctrine-mapping/User.orm.xml
, as if that file is not a valid mapping file. Symfony didn't complain about this while I was still on version PHP 7.4.Obviously the recommended approach is to move away from this library, but maybe someone knows a quick fix for this. Quite possible that this error is more related to Doctrine than to this bundle, but decided to ask here first.
The text was updated successfully, but these errors were encountered: