警告:mysql_query():25不是/home/..中的有效mysql链接资源/classes/class_cor


Warning: mysql_query(): 25 is not a valid MySQL-Link resource in /home/..../classes/class_core.php on line 60

我已经完成了所有相关的答案。

当我使用http://sitename这种情况不会发生,但当我使用https://sitename出现此错误

警告:mysql_query():25不是中的有效mysql链接资源/主页//classes/class_core.php在线60

这是代码

function &execute_query($buffered = true, &$link) {
    $this->connection_recent = &$link;
    $this->querycount++;
//line 60 is below
    if ($queryresult = $this->functions[($buffered ? "query" : "query_unbuffered")]($this->sql, $link)) {
        $this->sql = "";
        return $queryresult;
    }
    $this->sql = "";
}

我正在使用hostgator商业帐户。

我通过更改

$this->connection_recent = &$link;

进入

$this->connection_recent = $this->connection_master;

希望这有一天能帮助到某人:)