This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

sentora-installers error
#1
sentora-installers error
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'];
Reply
Thanks given by:


Messages In This Thread
sentora-installers error - by skpacman - 10-31-2014, 12:18 AM
RE: sentora-installers error - by 5050 - 10-31-2014, 01:20 AM
RE: sentora-installers error - by skpacman - 10-31-2014, 01:50 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Update redirect to Sentora login to an error page if a sub domain does not exist TGates 0 2 ,143 01-28-2024, 06:20 AM
Last Post: TGates
Application Error: [0204] - problems when adding an A Record of more than 65 A record andrabcm 8 20 ,067 07-30-2019, 11:11 AM
Last Post: andrabcm
Need Sentora HELP ? Alemiz 4 12 ,070 10-26-2018, 04:09 PM
Last Post: republicus

Forum Jump:


Users browsing this thread: 2 Guest(s)