wallabag: PHP Errors
Issue details
When trying to access wallabag v2 on my shared hosting it doesn’t work. The error.log lists the following errors:
[Sat Apr 16 08:30:09 2016] [warn] [client 109.75.87.252] mod_fcgid: stderr: PHP Fatal error: Uncaught exception ‘InvalidArgumentException’ with message '[WARNING 1549] failed to load external entity “file:////var/www/virtual/XXX/XXX/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/schema/dic/services/services-1.0.xsd” (in n/a - line 0, column 0)
[Sat Apr 16 08:30:09 2016] [warn] [client 109.75.87.252] mod_fcgid: stderr: [WARNING 3084] Element ‘{http://www.w3.org/2001/XMLSchema}import’: Failed to locate a schema at location ‘file:////var/www/virtual/XXX/XXX/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/schema/dic/services/services-1.0.xsd’. Skipping the import. (in in_memory_buffer - line 8, column 0)
[Sat Apr 16 08:30:09 2016] [warn] [client 109.75.87.252] mod_fcgid: stderr: [ERROR 1845] Element ‘{http://symfony.com/schema/dic/services}container’: No matching global declaration available for the validation root. (in /var/www/virtual/XXX/XXX/web/ - line 5, column 0)’ in /var/www/virtual/XXX/XXX/vendor/symfony/symfony/src/Symfony/Component/Config/Util/XmlUtils.php:96
[Sat Apr 16 08:30:09 2016] [warn] [client 109.75.87.252] mod_fcgid: stderr: Stack trace:
[Sat Apr 16 08:30:09 2016] [warn] [client 109.75.87.252] mod_fcgid: stderr: #0 /var/www/virtual/k in /var/www/virtual/XXX/XXX/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php on line 263
Environment
- wallabag version (or git revision) that exhibits the issue: 2.01
- How did you install wallabag? Via
git cloneor by downloading the package? package - Last wallabag version that did not exhibit the issue (if applicable): v1.91 worked perfectly
- php version:
- OS: CentOS
- type of hosting (shared or dedicated): shared (uberspace.de)
- which storage system you choose at install (SQLite, MySQL/MariaDB or PostgreSQL): SQLite (default)
Do I have to do anything else before trying to reach the fresh installation? I just installed it as written in the installation instructions.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 32 (15 by maintainers)
OK, now it works… 😃
But it’s really strange… Here’s how I did it:
/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.phpat line 814 from$xmlElement = simplexml_load_file($file);to$xmlData = file_get_contents($file); $xmlElement = simplexml_load_string($xmlData);php bin/console wallabag:install --env=prodand let the database reset and install a new admin user.I think that should be written in the documentation so more people can install and use wallabag.