New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install broken after upgrade from 2.6.7 to 2.6.9 #7413
Comments
Could you please share more information about your installation? We defined an issue template for that purpose. |
Sorry, I had zapped this part. Here are more details : Environment
Install was working fine in 2.6.7. |
Have you tried to empty your cache? |
Done, now I've got a blank page and this in log : [2024-04-08T14:33:46.310423+00:00] request.CRITICAL: Uncaught PHP Exception Error: "Failed opening required '/var/www/html/wallabag/var/cache/prod/ContainerLqeQcp2/getFosRest_Decoder_JsonService.php' (include_path='.:/usr/share/php')" at /var/www/html/wallabag/var/cache/prod/ContainerLqeQcp2/appAppKernelProdContainer.php line 393 {"exception":"[object] (Error(code: 0): Failed opening required '/var/www/html/wallabag/var/cache/prod/ContainerLqeQcp2/getFosRest_Decoder_JsonService.php' (include_path='.:/usr/share/php') at /var/www/html/wallabag/var/cache/prod/ContainerLqeQcp2/appAppKernelProdContainer.php:393)"} [] But the files do exist :
|
It might be a permission problem then https://doc.wallabag.org/en/admin/installation/rightaccess.html#production-environment |
At first look permissions seems ok (everything is owned by www-data), but if I do a chown -R www-data:www-data on the var/cache/prod directory then I fall back on the 500 Internal Server Error, and once again in the logs : [2024-04-08T18:27:42.782384+00:00] request.CRITICAL: Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\ClassNotFoundError: "Attempted to load class "DefaultTypedFieldMapper" from namespace "Doctrine\ORM\Mapping". Did you forget a "use" statement for another namespace?" at /var/www/html/wallabag/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php line 823 {"exception":"[object] (Symfony\Component\ErrorHandler\Error\ClassNotFoundError(code: 0): Attempted to load class "DefaultTypedFieldMapper" from namespace "Doctrine\ORM\Mapping".\nDid you forget a "use" statement for another namespace? at /var/www/html/wallabag/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php:823)"} [] |
Any idea @yguedidi? |
Maybe a corrupted vendor dir content? What if you try removing it and run composer install? |
Tried it, rm -rf vendor directory, ran make install, still have the same 500 error : [2024-04-09T04:19:11.196329+00:00] request.CRITICAL: Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\ClassNotFoundError: "Attempted to load class "DefaultTypedFieldMapper" from namespace "Doctrine\ORM\Mapping". Did you forget a "use" statement for another namespace?" at /var/www/html/wallabag/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php line 823 {"exception":"[object] (Symfony\Component\ErrorHandler\Error\ClassNotFoundError(code: 0): Attempted to load class "DefaultTypedFieldMapper" from namespace "Doctrine\ORM\Mapping".\nDid you forget a "use" statement for another namespace? at /var/www/html/wallabag/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php:823)"} [] |
I've tried to upgrade my existing install (which was in 2.6.7) using the usual process and the following command :
sudo -u www-data make update
From my wallbag directory. Nothing special was reported (except various messages about obsolete librarires), but now when I try to access my instance I run into a 500 Internal Server Error. When I look at var/logs/prod.log there's only this error, which I don't rellay understand :
[2024-04-08T12:34:35.935470+00:00] request.CRITICAL: Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\ClassNotFoundError: "Attempted to load class "DefaultTypedFieldMapper" from namespace "Doctrine\ORM\Mapping". Did you forget a "use" statement for another namespace?" at /var/www/html/wallabag/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php line 823 {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\ClassNotFoundError(code: 0): Attempted to load class \"DefaultTypedFieldMapper\" from namespace \"Doctrine\\ORM\\Mapping\".\nDid you forget a \"use\" statement for another namespace? at /var/www/html/wallabag/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php:823)"} []
Maybe there's a simple operation to fix it, but I'm clueless for now.
The text was updated successfully, but these errors were encountered: