Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/232.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Magento站点在启用编译后崩溃_Php_Mysql_Magento_E Commerce_Web Deployment - Fatal编程技术网

Php Magento站点在启用编译后崩溃

Php Magento站点在启用编译后崩溃,php,mysql,magento,e-commerce,web-deployment,Php,Mysql,Magento,E Commerce,Web Deployment,嘿,我的Magento站点在启用编译后崩溃,我无法登录到该站点,因此我尝试从后端config.php禁用它,但禁用它 define('COMPILER_INCLUDE_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'src'); define('COMPILER_COLLECT_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'stat'); 有什么想法吗? 以下是错误代码 Warning: include_

嘿,我的Magento站点在启用编译后崩溃,我无法登录到该站点,因此我尝试从后端config.php禁用它,但禁用它

define('COMPILER_INCLUDE_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'src');
define('COMPILER_COLLECT_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'stat');
有什么想法吗? 以下是错误代码

Warning: include_once(/home3/webcapt/public_html/campusclub/includes/src/Mage_Core_functions.php) [function.include-once]: failed to open stream: No such file or directory in /home3/webcapt/public_html/campusclub/app/Mage.php on line 36
Warning: include_once() [function.include]: Failed opening '/home3/webcapt/public_html/campusclub/includes/src/Mage_Core_functions.php' for inclusion (include_path='/home3/webcapt/public_html/campusclub/includes/src:.:/usr/lib/php') in /home3/webcapt/public_html/campusclub/app/Mage.php on line 36
Warning: include_once(/home3/webcapt/public_html/campusclub/includes/src/Varien_Autoload.php) [function.include-once]: failed to open stream: No such file or directory in /home3/webcapt/public_html/campusclub/app/Mage.php on line 37
Warning: include_once() [function.include]: Failed opening '/home3/webcapt/public_html/campusclub/includes/src/Varien_Autoload.php' for inclusion (include_path='/home3/webcapt/public_html/campusclub/includes/src:.:/usr/lib/php') in /home3/webcapt/public_html/campusclub/app/Mage.php on line 37
Fatal error: Class 'Varien_Autoload' not found in /home3/webcapt/public_html/campusclub/app/Mage.php on line 53

要通过代码禁用编译,只需从magento根文件夹重命名includes目录并尝试登录,希望这对您有所帮助。

这可能是缓存的问题。重命名缓存文件夹后,也会显示相同的错误。您可以通过以下方式通过magento的index.php清除缓存:

    $app = Mage::app();

if ($app != null)

   {  

      $cache = $app->getCache();  

      if ($cache != null)  

        {      

           $cache->clean();  

         }

   }
希望它能起作用

可能重复?