【问题标题】:Magento Bug - Illegal scheme supplied, only alphanumeric characters are permittedMagento Bug - 提供非法方案,只允许使用字母数字字符
【发布时间】:2011-12-14 21:56:06
【问题描述】:

我已经在我的 wamp 本地服务器上安装了 magento-1.6.1.0。安装后出现此错误

Illegal scheme supplied, only alphanumeric characters are permitted

如何克服这个问题?

【问题讨论】:

    标签: magento wamp


    【解决方案1】:

    我收到此错误是因为我的基本网址中没有 http://

    【讨论】:

      【解决方案2】:

      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 下的所有文件。刷新页面并转到 localhost/magento/ 时,请确保磁盘上有超过 1 GB 的空间

      PS:在我的 core_config_data 表中,我有 http://localhost/magento/ 作为我的 base_url(更改 2 行)不使用 https,因为我无法通过 MAMP 上的 SSL 配置解决问题(需要很多时间)。

      【讨论】:

        【解决方案3】:

        我遇到了类似的问题。在错误报告中我得到了关注。

        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 表中提供的 url 如下所示

        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/
        

        问题解决了。

        【讨论】:

        • 完美。这可能是原因之一
        【解决方案4】:

        用 Firefox 安装 Magento,我在 IE 上也遇到了问题。用 Forefox 安装后,它运行良好。

        【讨论】:

          【解决方案5】:

          在 Wamp 和 XAMPP 上遇到同样的问题,差点放弃。 终于找到解决办法了,Magento 1.6 不能与WAMP 2.1 和XMAPP 1.7 一起正常工作,我猜是Mysql 版本造成的,不确定。 但是在我将 WAMP 更改为 2.0 i 之后,一切都很好。 Magento 1.6 运行良好。 下载WAMP2.0i:http://sourceforge.net/projects/wampserver/files/WampServer%202/WampServer%202.0/WampServer2.0i.exe/download

          我在 Chrome 上安装失败,但在 firefox 上安装成功。

          祝你好运。

          【讨论】:

            【解决方案6】:

            出于开发目的,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:我对默认安装进行了各种更改,我不打算将其用于生产目的。

            【讨论】:

              【解决方案7】:

              【讨论】:

                【解决方案8】:

                让你的基本 url 带有完整的 URI 架构:http://your.urlhttps://your.url 并注意你不能使用 http://localhost,因为 cookie 不起作用,所以将你的主机命名为 local.host 或任何最适合你的名称

                【讨论】:

                  猜你喜欢
                  • 1970-01-01
                  • 1970-01-01
                  • 2015-07-27
                  • 2011-11-24
                  • 1970-01-01
                  • 1970-01-01
                  • 1970-01-01
                  • 1970-01-01
                  • 2014-04-11
                  相关资源
                  最近更新 更多