magento安装心得
、安装环境不能高于(包含)php5.4,否则会出现 magic_quotes_gpc 函数已过期的错误
Deprecated: Function get_magic_quotes_gpc() is deprecated in F:\EclipseWorks\PHP\magento\app\code\core\Mage\Core\functions.php on line 32
2、测试安装时建议将错误信息显示出来,否则magento出错时默认只显示错误记录ID,对于初次接触的人将是一头雾水
具体就是“\errors\local.xml.sample”复制一份为“\errors\local.xml”
3、安装时基础url必须是一个至少包含一个"."的url,不能是localhost 否则安装成功后无法正常访问。
如果是在本地服务器测试安装,可手动修改hosts文件添加一个指向本机的域名解析。
There has been an error processing your request
Illegal scheme supplied, only alphanumeric characters are permitted
Trace: #0 F:\EclipseWorks\PHP\magento\app\code\core\Mage\Core\Model\Store.php(712): Zend_Uri::factory('{{base_url}}') #1 F:\EclipseWorks\PHP\magento\app\code\core\Mage\Core\Controller\Varien\Front.php(313): Mage_Core_Model_Store->isCurrentlySecure() #2 F:\EclipseWorks\PHP\magento\app\code\core\Mage\Core\Controller\Varien\Front.php(161): Mage_Core_Controller_Varien_Front->_checkBaseUrl(Object(Mage_Core_Controller_Request_Http)) #3 F:\EclipseWorks\PHP\magento\app\code\core\Mage\Core\Model\App.php(349): Mage_Core_Controller_Varien_Front->dispatch() #4 F:\EclipseWorks\PHP\magento\app\Mage.php(640): Mage_Core_Model_App->run(Array) #5 F:\EclipseWorks\PHP\magento\index.php(80): Mage::run('', 'store') #6 {main}
上图:第一张是在上面第2条处理前,第二张是在上面第2条处理后