Php Magento网站崩溃
我正在为一个客户在magento网站上工作,只是完成了一些小的修改,没有更多 代码工作已经完成,一切正常。我只是需要更改翻译,我决定在后端搜索,如果Magento有任何工具,我对Magento还不太了解,Joomla是我的专长 嗯,我想我找到了一些东西。我单击了启用,现在站点显示错误Php Magento网站崩溃,php,magento,Php,Magento,我正在为一个客户在magento网站上工作,只是完成了一些小的修改,没有更多 代码工作已经完成,一切正常。我只是需要更改翻译,我决定在后端搜索,如果Magento有任何工具,我对Magento还不太了解,Joomla是我的专长 嗯,我想我找到了一些东西。我单击了启用,现在站点显示错误 Warning: include_once() [function.include-once]: Unable to access Mage_Core_functions.php Warning: include
Warning: include_once() [function.include-once]: Unable to access Mage_Core_functions.php
Warning: include_once(Mage_Core_functions.php) [function.include-once]: failed to open stream: No such file or directory
Warning: include_once() [function.include]: Failed opening 'Mage_Core_functions.php' for inclusion
Warning: include_once() [function.include-once]: Unable to access Varien_Autoload.php
Warning: include_once(Varien_Autoload.php) [function.include-once]: failed to open stream: No such file or directory
Warning: include_once() [function.include]: Failed opening 'Varien_Autoload.php' for inclusion
Fatal error: Class 'Varien_Autoload' not found
所有这些警告和错误突然出现在app/Mage.php中
这些文件应该位于的路径不存在/includes/src
没有人触摸Mage.php,也没有人删除任何文件。
最奇怪的是,该网站工作正常,我们没有更改任何代码,只在后端启用了一些东西。老实说,我从来没有想到会发生这样的崩溃,唯一发生的情况是如果我弄乱了代码,在这种情况下,我确切地知道如何修复它,但在这里,我完全不知所措
我真的需要这方面的帮助:如果有人正在与此问题作斗争,以下是解决方案: 我启用了Magento的编译功能,这可能会完全破坏您的页面。 您可以在此处找到解决方案:
基本上,您只需打开includes/config.php并在每一行前面加上一个。这样就不会定义常数,页面将再次工作。好的,我发现了问题。似乎我没有仔细阅读我到底启用了什么,我只是觉得我可以在后端再次禁用它,但后端也崩溃了,所以。。。我启用了Magento的编译功能,这可能会完全破坏您的页面。如果其他人在某个时候遇到这个问题,这里有一个解决方案:基本上你只需要打开includes/config.php并在每一行前面加上一个。这样就不会定义常量,页面将再次工作。请添加您的解决方案作为答案并接受它。这就是它的工作原理。