Magento安装后无法访问,提示“Illegal scheme supplied, only alphanumeric characters are permitted”
来源:互联网 发布:ug中心钻编程 编辑:程序博客网 时间:2024/05/29 15:09
Magento安装后无法访问,提示“Illegal scheme supplied, only alphanumeric characters are permitted”,找到magento\app\code\core\Mage\Core\Model\Store.php,修改下面代码
/**
* Check if request was secure
*
* @return boolean
*/
public function isCurrentlySecure()
{
$standardRule = !empty($_SERVER['HTTPS']) && ('off' != $_SERVER['HTTPS']);
$offloaderHeader = trim((string) Mage::getConfig()->getNode(self::XML_PATH_OFFLOADER_HEADER, 'default'));
if ((!empty($offloaderHeader) && !empty($_SERVER[$offloaderHeader])) || $standardRule) {
return true;
}
if (Mage::isInstalled()) {
$secureBaseUrl = '';
if (!$this->isAdmin()) {
$secureBaseUrl = Mage::getStoreConfig(Mage_Core_Model_Url::XML_PATH_SECURE_URL);
} else {
$secureBaseUrl = (string) Mage::getConfig()
->getNode(Mage_Core_Model_Url::XML_PATH_SECURE_URL, 'default');
}
if (!$secureBaseUrl) {
return false;
}
$url_this = 'http://'.$_SERVER['SERVER_NAME'].':'.$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];//$secureBaseUrl updated by samzheng
$uri = Zend_Uri::factory($url_this);//$secureBaseUrl updated by samzheng
$port = $uri->getPort();
$isSecure = ($uri->getScheme() == 'https')
&& isset($_SERVER['SERVER_PORT'])
&& ($port == $_SERVER['SERVER_PORT']);
return $isSecure;
} else {
$isSecure = isset($_SERVER['SERVER_PORT']) && (443 == $_SERVER['SERVER_PORT']);
return $isSecure;
}
}
- Magento安装后无法访问,提示“Illegal scheme supplied, only alphanumeric characters are permitted”
- Illegal scheme supplied, only alphanumeric characters are permitted【1.2】
- Illegal modifier for parameter *** , only final is permitted”
- Illegal modifier for parameter ***; only final is permitted
- Illegal modifier for parameter *** , only final is permitted”
- Illegal modifier for parameter bc; only final is permitted
- Illegal modifier for parameter *** , only final is permitted”
- 安装完magento后,其他电脑无法访问magento,URL自动跳转到http://localhost/magento
- redis安装后提示权限问题ERR operation not permitted
- How do you restrict a field to contain alphanumeric characters only?
- Illegal modifier for the variable str; only final is permitted的错误的深入理解
- Cool Scripts 2:Validating Alphanumeric Only
- only final is permitted
- mac提示Operation not permitted的解决方法和安装MAMP集成环境后使用mysql命令的问题
- 安装pymysql,执行setup.py提示no commands supplied
- 安装pymysql,执行setup.py提示no commands supplied
- 安装appServ后,无法访问phpMyAdmin
- windows 2008 server 安装VS2010 后无法无法访问数据库,提示“ORA-06413: 连接未打开”
- NSThread应用
- 矩阵的特征值 => 矩阵的幂 => 广义斐波拉契数列的通项公式
- SGU 130 Circle
- struts2 报错:freemarker.log.JDK14LoggerFactory$JDK14Logger error
- endian
- Magento安装后无法访问,提示“Illegal scheme supplied, only alphanumeric characters are permitted”
- Access restriction: The type BASE64Encoder is not accessible due to restrict on required library
- 2012C++程序设计实验报告【6.5】
- Linux下递归打印一个文件夹下的所有文件夹和文件
- javascript的prototype继承
- struts2 validation error只出现在控制台中,但是input的页面中却没有显示
- IOS开发系列——xml文件解析
- pthread线程优先级的调度
- 关于VxWorks zbuf