【发布时间】:2015-03-03 16:04:04
【问题描述】:
最近我将一个 Symfony 系统移到另一个服务器上,从那以后就出现了错误。 技术细节如下: windows server 2012 上的 apache 2.4 服务器 apache可以通过本地网络访问的文件服务器
当我移动 Symfony 页面时,我删除了缓存。 现在发生的事情是,我收到这些错误消息:
InvalidArgumentException: Unable to parse file "\\FILESERVER\PAGEPATH\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\DependencyInjection/../Resources/config\web.xml".
和
InvalidArgumentException: [WARNING 1549] failed to load external entity "file://///FILESERVER/PAGEPATH/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/schema/dic/services/services-1.0.xsd" (in n/a - line 0, column 0)
[WARNING 3084] Element '{http://www.w3.org/2001/XMLSchema}import': Failed to locate a schema at location 'file://///FILESERVER/PAGEPATH/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)
[ERROR 1845] Element '{http://symfony.com/schema/dic/services}container': No matching global declaration available for the validation root. (in //FILESERVER/PAGEPATH/web/ - line 5, column 0)
似乎是什么问题,在第一个错误中,路径中混合了斜杠和反斜杠,但我不知道如何解决这个问题。
【问题讨论】:
-
看起来很愚蠢但是....你能试试this解决方案吗?
-
重新启动计算机?是的,我试过了。
-
我已经更新了我的答案。希望对您有所帮助。
标签: php symfony symfony-2.4 invalidargumentexception