使用XAMPP安装Magento 2.3时出错。无法打开localhost / demowebsite

时间:2019-01-29 09:16:26

标签: magento xampp

我是编码方面的新手,并尝试在本地主机上使用XAMPP安装Magento。但是尝试导航到localhost / demowebsite时出现错误。我该如何摆脱它。请让我知道是否需要提供更多信息。

ReflectionException:C:\ xampp1 \ htdocs \ DemoWebsite \ vendor \ magento \ framework \ Code \ Reader \ ClassReader.php:19中不存在Magento \ Framework \ App \ Http \ Interceptor类:19堆栈跟踪:#0 C: \ xampp1 \ htdocs \ DemoWebsite \ vendor \ magento \ framework \ Code \ Reader \ ClassReader.php(19):ReflectionClass-> __ construct('Magento \ Framewo ...')#1 C:\ xampp1 \ htdocs \ DemoWebsite \ vendor \ magento \ framework \ ObjectManager \ Definition \ Runtime.php(49):Magento \ Framework \ Code \ Reader \ ClassReader-> getConstructor('Magento \ Framewo ...')#2 C:\ xampp1 \ htdocs \ DemoWebsite \ vendor \ magento \ framework \ ObjectManager \ Factory \ Dynamic \ Developer.php(48):Magento \ Framework \ ObjectManager \ Definition \ Runtime-> getParameters('Magento \ Framewo ...')#3 C:\ xampp1 \ htdocs \ DemoWebsite \ vendor \ magento \ framework \ ObjectManager \ ObjectManager.php(56):Magento \ Framework \ ObjectManager \ Factory \ Dynamic \ Developer-> create('Magento \ Framewo ...',数组)#4 C:\ xampp1 \ htdocs \ DemoWebsite \ vendor \ magento \ framework \ App \ Bootstrap.php(234):Magento \ Framework \ ObjectManager \ ObjectManager-> create('Magento \ Framewo ...',数组)#5 C:\ xampp1 \ htdocs \ DemoWebsite \ index.php(38):Magento \ Framework \ App \ Bootstrap-> createApplication('Magento \ Framewo ...')#6 {main}

1 个答案:

答案 0 :(得分:0)

您不能在Magento 2中将http://localhost/用作域名,至少应使用http://localhost.com/

我解释了如何解决just here

希望对您有帮助。