Announcement

#1 2021-03-05 15:33:50

MikeTheKID
Member
2016-12-30
27

[resolved] Check for update failed for unknown reasons.

Hi

Recently my site isn't able to check for upgrades. Neither for the core site or any of the plugins. Does anyone know what might be the issue? Everything else about the site is working fine.


Piwigo 11.3.0 Check for upgrade
Operating system: Linux
PHP: 7.4.3 (Show info) [2021-03-05 07:33:16]
MySQL: 8.0.23-0ubuntu0.20.04.1 [2021-03-05 07:33:16]
Graphics Library: GD 2.2.5

Offline

 

#2 2021-03-05 16:42:39

erAck
Only trying to help
2015-09-06
2026

Re: [resolved] Check for update failed for unknown reasons.

Make sure your host allows outbound connections.

To test, save this as filename.php and execute it as php filename.php on the command line

Code:

<?php
$host = 'piwigo.org';
if (($s = @fsockopen($host,80,$errno,$errstr,5)) === false)
{
    $testresult = "$errstr ($errno)<br />\n";           
}
else
{
    $testresult = "Good connection to $host";
}   
echo "$testresult\n";
?>

Or if you don't have shell access place this as host-test.php somewhere in your www document directory

Code:

<?php
$Action = $_POST['Action'];
$host = $_POST['host'];
if($Action == 'Submit')
{
    if (($s = @fsockopen($host,80,$errno,$errstr,5)) === false)
    {
        $testresult = "$errstr ($errno)<br />\n";           
    }
    else
    {
        $testresult = "Good connection to $host";
    }   
}
echo <<<theend
<!DOCTYPE html>
<html>
<head>
<title>Test Connection</title>
</head>
<body>
<h2>Test Connection</h2>
<form action="host-test.php" method="post">
<label for="url">Enter the host:</label>
<input type="text" name="host" id="url" size="30" value="piwigo.org" /><br />
<input type="submit" name="Action" value="Submit"/>
</form>
<p>Test result: $testresult </p>
</body>
</html>
theend;

?>

and load it in your browser and submit the form.


Running Piwigo at https://erack.net/gallery/

Offline

 

#3 2021-03-06 04:27:48

MikeTheKID
Member
2016-12-30
27

Re: [resolved] Check for update failed for unknown reasons.

Thanks for the help! It was discovered that the host received some bad DNS entries and flushing the DNS and doing a reboot cleared out the networking hiccup.

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact