我在我的wamp本地服务器上安装了magento-1.6.1.0
。我在安装后收到此错误
Illegal scheme supplied, only alphanumeric characters are permitted
如何克服这个问题?
答案 0 :(得分:14)
让您的基本网址包含完整的URI架构:http://your.url或https://your.url并注意您无法使用http://localhost因为Cookie无法正常工作,因此请将您的主机命名为local.host或其他最适合你的
答案 1 :(得分:4)
有一个补丁似乎在Magento 1.6.1.0中用于开发目的解决了这个问题,至少允许我使用本地安装进行一些基本测试。补丁和说明可从http://www.danneh.org/2011/11/bug-magento-1-6-1-0-affecting-development-sites-base_url/
获得我在我正在使用的本地安装上尝试了一些实验:补丁和说明都是第一次在我的Macbook上工作(我在应用补丁并清除缓存文件夹后停止并重新启动了Web服务器,然后刷新了我的网络浏览器中的起始页面。)
FWIW:由于此问题的早期答案,我还添加了另一个主机名 - 网站正确加载了http://localhost/magento/和http://myotherhostname/magento/
PS:我对默认安装进行了各种更改,我不打算将其用于生产目的。
答案 2 :(得分:4)
我有类似的问题。在错误报告中我得到了跟进。
a:5:{i:0;s:67:"Illegal scheme supplied, only alphanumeric characters are permitted";i:1;s:669:"#0 D:\wamp\www\mymagento\app\code\core\Mage\Core\Model\Store.php(726): Zend_Uri::factory('localhost/tevet...')
#1 D:\wamp\www\mymagento\app\code\core\Mage\Core\Controller\Varien\Front.php(313): Mage_Core_Model_Store->isCurrentlySecure()
#2 D:\wamp\www\mymagento\app\code\core\Mage\Core\Controller\Varien\Front.php(161): Mage_Core_Controller_Varien_Front->_checkBaseUrl(Object(Mage_Core_Controller_Request_Http))
#3 D:\wamp\www\mymagento\app\code\core\Mage\Core\Model\App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#4 D:\wamp\www\mymagento\app\Mage.php(683): Mage_Core_Model_App->run(Array)
#5 D:\wamp\www\mymagento\index.php(87): Mage::run('', 'store')
#6 {main}";s:3:"url";s:10:"/mymagento/";s:11:"script_name";s:19:"/mymagento/index.php";s:4:"skin";s:4:"demo";}
我在数据库的core_config_data表中提供的web/unsecure/base_url localhost/mymagento/
web/secure/base_url localhost/mymagento/
当我将网址更改为
时web/unsecure/base_url http://localhost/mymagento/
web/secure/base_url http://localhost/mymagento/
问题解决了。
答案 3 :(得分:2)
这可能是Magento 1.6.1.0中的一个错误,请参见此处:
http://www.magentocommerce.com/bug-tracking/issue?issue=12530
主题:
http://www.magentocommerce.com/boards/viewthread/263751/#t357355
答案 4 :(得分:2)
我收到此错误是因为我的基本网址中没有http://
答案 5 :(得分:0)
在Wamp和XAMPP上遇到同样的问题。几乎放弃了。 最后找到解决方案,Magento 1.6无法正常使用WAMP 2.1和XMAPP 1.7,我猜它是由Mysql版本引起的,不太确定。 但在我将WAMP改为2.0之后,一切都很好。 Magento 1.6运行良好。 下载WAMP2.0i:http://sourceforge.net/projects/wampserver/files/WampServer%202/WampServer%202.0/WampServer2.0i.exe/download
我无法在Chrome上安装它,但在firefox上成功。
祝你好运。
答案 6 :(得分:0)
使用Firefox安装Magento,我也在IE上遇到了问题。使用Forefox安装后,它运行正常。
答案 7 :(得分:0)
http://www.danneh.org/2011/11/bug-magento-1-6-1-0-affecting-development-sites-base_url/
这解决了我的问题。 MAMP和magento 1.9.0。
我下载了tar文件,删除了chrome中的所有cookie,然后删除var / cache下的所有文件。刷新页面并确保在磁盘上有超过1 GB的空间并转到localhost / magento /
PS:在我的core_config_data表中,我有http://localhost/magento/作为我的base_url(更改2行)不使用https,因为我无法解决问题(需要花费很多时间)在MAMP上使用SSL配置。