Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/227.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.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 SSL配置Opencart 3.x_Php_Ssl_Opencart_Config - Fatal编程技术网

Php SSL配置Opencart 3.x

Php SSL配置Opencart 3.x,php,ssl,opencart,config,Php,Ssl,Opencart,Config,我的网站artindia.eu上正在使用SSL 例如,当浏览时,Chrome浏览器中的挂锁将从绿色变为灰色 我认为catalog/controller/product/category.php中有一些东西需要添加或更改,但我不知道 有人知道吗?https和http网站通常会出现非常简单的问题 例如:正在使用https https://www.artindia.eu/laptop-notebook/macs 如果你使用 //在页面上显示所有资源时,挂锁将显示绿色图标,而不是http。 正如它所说

我的网站
artindia.eu
上正在使用SSL

例如,当浏览时,Chrome浏览器中的挂锁将从绿色变为灰色

我认为catalog/controller/product/category.php中有一些东西需要添加或更改,但我不知道


有人知道吗?

https和http网站通常会出现非常简单的问题

例如:正在使用https

https://www.artindia.eu/laptop-notebook/macs
如果你使用

//在页面上显示所有资源时,挂锁将显示绿色图标,而不是http。 正如它所说的,页面上的不安全内容是一个问题

这里我们举一个例子来详细说明

正确(href=“//font.googleapis.com/css?family=Roboto:300400500700900”)


不正确(当我们在站点上启用https时,无需使用http://


解决方案:
请从网站上加载的所有资产中删除所有http。

我检查了您网站的源代码。您刚刚输入了一个错误:

改变
httpss://www.artindia.eu/image/catalog/AjaxLoader.gif

到<代码>https://www.artindia.eu/image/catalog/AjaxLoader.gif

您的站点将再次获得完全信任

一般问题:加载的所有资产(包括图像)也必须来自HTTPS

如何自行调试:使用首选浏览器的开发人员控制台检查日志和警告

大宗报价

'href'=>$this->url->link('product/product','path='.$this->request->get['path'.&product\u id='.$result['product\u id'.$url,'SSL'))

大宗报价

我在ocfilter.php的这一行末尾添加了SSL,并在category.php的http&https之后添加了:/。然后我在de admin面板中禁用了Ajax导航修改


Ajax导航模块更改了类别/产品的链接。现在,这是直接在控制器文件中完成的

在浏览器中访问URL的https版本。例如:更改为“当且仅当获得图像结果时”。执行以下步骤1。查找名为header.twig或header.tpl的文件(取决于您的opencart版本)并打开以进行编辑,注意:如果您没有使用opencart默认主题,请转到新主题的目录并搜索这些文件。2.在文件的头部分插入以下代码


我也会试试这个,谢谢。太好了,谢谢。
<link href="//fonts.googleapis.com/css?family=Roboto:300,400,500,700,900" rel="stylesheet" type="text/css" />
<link href="http://fonts.googleapis.com/css?family=Roboto:300,400,500,700,900" rel="stylesheet" type="text/css" />