Sentora Support Forums

Full Version: sentora-installers error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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:
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'];
There was two problems at very closes places giving sometime the impression that the installer locked, but it was not. It was waiting arount to 3/4 hour because of 40 timeout close 1 minute each (one per module to check update)

 More info here : https://github.com/sentora/sentora-core/...t-61082226 (read until the end, it is a bit long !)
Thanks for the quick reply, 5050.

I'll scrap my test vps and try to run it again in screen and just let it go in the background for a while.

I like the direction this project is headed Cool