new version notifications not working
Posted: Sat Jun 04, 2011 12:55 am
Just a small point... I've not been receiving new version notifications when logging in to the CMSMS Admin Console.
It appears that header.php is calling 'www.cmsmadesimple.org/latest_version.php' to get the latest version and exploding it to an array of strings to compare with the installed version given in version.php. Trouble is the exploded version number from cmsmadesimple.org contains whitespace and the installed version number from version.php doesn't - so the comparison using PHP's version_compare function doesn't evaluate as -1 to indicate a new version is available.
Stripping the whitespace from the latest version value in the exploded array generates the new version notification correctly. Observed and tested in 1.9.4.1
Maybe most people don't find this an issue though - there seem to be a few posts suggesting that the time taken to check versions in the backend is wasted?
Personally I would find it useful - I'd like the check to work on a development server even if it were switched off for a client server.
It appears that header.php is calling 'www.cmsmadesimple.org/latest_version.php' to get the latest version and exploding it to an array of strings to compare with the installed version given in version.php. Trouble is the exploded version number from cmsmadesimple.org contains whitespace and the installed version number from version.php doesn't - so the comparison using PHP's version_compare function doesn't evaluate as -1 to indicate a new version is available.
Stripping the whitespace from the latest version value in the exploded array generates the new version notification correctly. Observed and tested in 1.9.4.1
Maybe most people don't find this an issue though - there seem to be a few posts suggesting that the time taken to check versions in the backend is wasted?
Personally I would find it useful - I'd like the check to work on a development server even if it were switched off for a client server.