Attempting an install on a Ubuntu 14.04 LTS VPS (development non-live environment) and it gets nearly to the end where passwords are given and chokes with the following error:
OnDaemonDay.hook.php:
Line 27 is:
Code:
START Sentora Updates hook
Checking for latest version of Sentora...
PHP Warning: Illegal string offset 'version' in /etc/sentora/panel/modules/updates/hooks/OnDaemonDay.hook.php on line 27
OnDaemonDay.hook.php:
PHP Code:
<?php
/**
* @copyright 2014 Sentora Project (http://www.sentora.org/)
* Sentora is a GPL fork of the ZPanel Project whose original header follows:
*
* Hook created by Bobby Allen to obtain latest zpanel version number and add it to the DB for querying (caching bascially!)
* This script is handy for caching the latest version of ZPanel to reduce bandwidth from the server.
*
*/
echo fs_filehandler::NewLine() . "START Sentora Updates hook" . fs_filehandler::NewLine();
echo "Checking for latest version of Sentora..." . fs_filehandler::NewLine();
CheckSentoraLatestVersion();
echo "END Sentora Updates hook" . fs_filehandler::NewLine();
function CheckSentoraLatestVersion() {
// Grab the latest version of Sentora from the Sentora API servers and cache it into the database.
$live_version = ws_generic::ReadURLRequestResult(ctrl_options::GetSystemOption('update_url'));
if (!$live_version) {
return false;
}
$versionnumber = ws_generic::JSONToArray($live_version);
if(count($versionnumber) > 1) {
$currentVersionSetting = current($versionnumber);
$currentVersion = $currentVersionSetting['version'];
} else {
$currentVersion = $versionnumber['version'];
}
ctrl_options::SetSystemOption('latestzpversion', $currentVersion);
return true;
}
?>
Line 27 is:
Code:
$currentVersion = $versionnumber['version'];