Page 1 of 1
2.2.1: Version still shown as "there is an update"
Posted: Mon Apr 27, 2015 3:18 pm
by ong13
Hi
I downloaded the latest version from your site, translated (German translation is posted) but in the settings I still get the message, that "Mods for HESK Version: 2.2.1 - Aktualisierung verfügbar" - there IS an update available - which does not seem to be correct.
Olaf
Re: 2.2.1: Version still shown as "there is an update"
Posted: Mon Apr 27, 2015 3:40 pm
by mkoch227
Well that's strange... I just check the latest version being returned on the Mods for HESK website, and it is returning 2.2.1. Try deleting __latest-mfh.txt from your attachments directory (it holds a cached version of the latest version) and refresh the page. It should re-cache the latest version.
Re: 2.2.1: Version still shown as "there is an update"
Posted: Mon Apr 27, 2015 3:48 pm
by ong13
Hi
your suggestion did not work:
Olaf
Re: 2.2.1: Version still shown as "there is an update"
Posted: Mon Apr 27, 2015 4:01 pm
by mkoch227
It looks like your instance isn't properly caching the latest version. Instead of storing:
it should be storing
Just out of curiosity, change __latest-mfh.txt to:
and see if it still says Update Available. Be sure to delete this though after testing, as it will be never be re-cached until 2038!
Re: 2.2.1: Version still shown as "there is an update"
Posted: Mon Apr 27, 2015 4:53 pm
by ong13
Hi,
yes, this worked: Mods for HESK Version: 2.2.1 - Mods for HESK ist aktuell
Olaf
Re: 2.2.1: Version still shown as "there is an update"
Posted: Mon Apr 27, 2015 5:06 pm
by mkoch227
Ok, so the issue is definitely with the version not being appended to the file. Create a new file in the root folder of your helpdesk called "test.php", and copy and paste the following into it:
Code: Select all
<?php
echo file_get_contents("http://mods-for-hesk.mkochcs.com/latestversion.php");
then, go to http://<your helpdesk location>/test.php, and let me know if anything is displayed on the screen.
Re: 2.2.1: Version still shown as "there is an update"
Posted: Mon Apr 27, 2015 5:11 pm
by ong13
Hi
no, absolutey nothing.
Olaf
Re: 2.2.1: Version still shown as "there is an update"
Posted: Mon Apr 27, 2015 6:09 pm
by mkoch227
Ok, so it looks like file_get_contents isn't working externally. Do you know if you hvae cURL enabled? That can be checked by updating test.php to be:
Code: Select all
<?php
var_dump(function_exists('curl_version'));
If cURL is enabled, then we can see what cURL is doing with the request. Otherwise, it appears that you will have to disable auto-update checking for Mods for HESK (which I will need to add a setting for in 2.3.0

)
Re: 2.2.1: Version still shown as "there is an update"
Posted: Tue Apr 28, 2015 11:57 am
by ong13
Hi
it returns: boolean true
Olaf
Re: 2.2.1: Version still shown as "there is an update"
Posted: Tue Apr 28, 2015 12:36 pm
by mkoch227
Ok, now try this code (sorry for so many different tests, however each result is helpful

)
Code: Select all
<?php
if (function_exists('curl_init'))
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://mods-for-hesk.mkochcs.com/latestversion.php');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 6);
$latest = curl_exec($ch);
curl_close($ch);
echo $latest;
}
else
{
echo 'cURL not available';
}
Re: 2.2.1: Version still shown as "there is an update"
Posted: Tue Apr 28, 2015 1:45 pm
by ong13
Hi
the result is ... nothing, a totally empty page again.
Olaf
Re: 2.2.1: Version still shown as "there is an update"
Posted: Wed May 06, 2015 3:22 pm
by ong13
Hi Mike,
just to let you know: It seemed that it was a configuration error on the server (there was a server switch). HESK and other software were for example also unable to retrieve mail from an SMTP server.
I am not sure what was the reason, but it's working just fine.
Thanks
Olaf
Re: 2.2.1: Version still shown as "there is an update"
Posted: Wed May 06, 2015 3:31 pm
by mkoch227
So HESK is now properly caching the latest version?
Re: 2.2.1: Version still shown as "there is an update"
Posted: Wed May 06, 2015 3:48 pm
by ong13
Hi
it seems so. The problem was it could probably just not connect to the server and because of this the variable stayed empty.
Olaf