XenForo 2.0 Server errors have been logged. You should review these.

audcon

New member
Registered
Joined
Mar 21, 2024
Messages
3
Points
1

Reputation:

Code:
XenForo upgrade check failed: cURL error 6: Could not resolve host: upgrade-check.json (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)

There is this long error which is kind of annoying to always see red when you login into admin panel, does anybody knows a fix for it? or how to stop it?
 

DareSec

Inforc3r
Staff member
Administrator
Moderator
S.V.I.P Member
Collaborate
Registered
Joined
May 25, 2019
Messages
1,380
Points
523

Reputation:

Code:
XenForo upgrade check failed: cURL error 6: Could not resolve host: upgrade-check.json (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)

There is this long error which is kind of annoying to always see red when you login into admin panel, does anybody knows a fix for it? or how to stop it?
audconturn of the upgrade check in ACP
 

audcon

New member
Registered
Joined
Mar 21, 2024
Messages
3
Points
1

Reputation:

turn of the upgrade check in ACP
DareSecI have turned it off, the error still seems to be there

1712291005048.png


1712290978357.png
 
View previous replies…

Karat-7

New member
Registered
Joined
May 14, 2021
Messages
4
Points
11

Reputation:

I removed this code and the error went away

src\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php

Code:
 if (\count($this->handles) >= $this->maxHandles) {
            \curl_close($resource);
        } else {
            // Remove all callback functions as they can hold onto references
            // and are not cleaned up by curl_reset. Using curl_setopt_array
            // does not work for some reason, so removing each one
            // individually.
            \curl_setopt($resource, \CURLOPT_HEADERFUNCTION, null);
            \curl_setopt($resource, \CURLOPT_READFUNCTION, null);
            \curl_setopt($resource, \CURLOPT_WRITEFUNCTION, null);
            \curl_setopt($resource, \CURLOPT_PROGRESSFUNCTION, null);
            \curl_reset($resource);
            $this->handles[] = $resource;
        }
    }

Instead of the removed code, add:
PHP:
curl_close($resource);

To avoid the error that the file has been changed, you need to delete a line from the file

src\addons\XF\hashes.json

"src/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php": "fdb955572a0e1c35d0f53735e722735f93a2317c003b30924c5e044e6dbc89ec",
 
Last edited:
Top