ISPConfig 3.0.3 RC1 ready for testing

Discussion in 'Developers' Forum' started by till, Sep 27, 2010.

  1. xaver

    xaver New Member

    Code:
    UPDATE `sys_user` SET `modules` = "dashboard,tools,mail,sites" , `startmodule` = "dashboard" WHERE `modules` = "tools,mail,sites"
    no garantie :p

    Quota stats only in M, low Traffic has K, but K is not displayed
    -> Convert to MB like Mail and Webtraffic
    ISPCONFIG_PATH/interface/web/sites/user_quota_stats.php
    Replace line 36,37,38 with

    Code:
    $rec['used'] = (is_numeric($monitor_data['user'][$username]['used'])) ? round($monitor_data['user'][$username]['used']/1024) .'MB' : $monitor_data['user'][$username]['used'].'B';
    $rec['soft'] = $monitor_data['user'][$username]['soft'].'B';
    $rec['hard'] = $monitor_data['user'][$username]['hard'].'B';
    Dashboard Version, if i use a RC Version i get the message to Update, because the check is only for different. If ISPConfig Server is down i get the same message...

    I changed some code (its not the best code, but it will work fine):
    ISPCONFIG_PATH/interface/web/dashboard/dashboard.php
    Replace around line 96 with

    Code:
    	$this_version = explode(".",ISPC_APP_VERSION);
    	$this_fullversion = (($this_version[0] < 10) ? '0'.$this_version[0] : $this_version[0]) .
    			    (($this_version[1] < 10) ? '0'.$this_version[1] : $this_version[1]) .
    			    (($this_version[2] < 10) ? '0'.$this_version[2] : $this_version[2]) .
    			    (($this_version[3] < 10) ? (($this_version[3] < 1) ? '00' : '0'.$this_version[3]) : $this_version[3]);
    
    
    	$new_version = explode(".",$new_version);
    	$new_fullversion =  (($new_version[0] < 10) ? '0'.$new_version[0] : $new_version[0]) .
    			    (($new_version[1] < 10) ? '0'.$new_version[1] : $new_version[1]) .
    			    (($new_version[2] < 10) ? '0'.$new_version[2] : $new_version[2]) .
    			    (($new_version[3] < 10) ? (($new_version[3] < 1) ? '00' : '0'.$new_version[3]) : $new_version[3]);
    	if($new_fullversion > $this_fullversion) {
    
    A small Bugfix
    I can Setup a Atom path, but path is Hardcoded and my setup has no effect.
    ISPCONFIG_PATH/interface/web/dashboard/lib/custom_menu.inc.php
    Replace Line 44 with
    Code:
    		$app->simplepie->set_feed_url($misc_config['dashboard_atom_url']);
    
     
    Last edited: Oct 2, 2010
  2. e100

    e100 New Member

    After updating from 3.0.3 beta to rc1 some of my servers are now generating errors with the cron task:
    /usr/local/ispconfig/server/server.sh

    Warning: Invalid argument supplied for foreach() in /usr/local/ispconfig/server/mods-available/remoteaction_core_module.inc.php on line 113

    4 out of 6 servers I upgraded produce this error.
    I have been unable to find why only some report the warning.

    Looking at the code I believe there should be a check to see if the array passed to the foreach is null to prevent this problem:
    if (empty($actions) || ($actions == "false")) {return;}
    foreach ($actions as $action) {
     
  3. wyrie

    wyrie ISPConfig Developer ISPConfig Developer

    After updating to 3.0.3 rc1 from 3.0.2.2 I get the following error from server.sh:

    05.10.2010-15:11 - DEBUG - Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    05.10.2010-15:11 - DEBUG - Found 1 changes, starting update process.

    Warning: include_once(/usr/local/ispconfig/server/mods-available/../lib/remote_action.inc.php): failed to open stream: No such file or directory in /usr/local/ispconfig/server/mods-available/remoteaction_core_module.inc.php on line 98

    Warning: include_once(): Failed opening '/usr/local/ispconfig/server/mods-available/../lib/remote_action.inc.php' for inclusion (include_path='.:/usr/share/php5:/usr/share/php') in /usr/local/ispconfig/server/mods-available/remoteaction_core_module.inc.php on line 98
    05.10.2010-15:11 - DEBUG - Calling function 'user_update' from plugin 'mail_plugin' raised by event 'mail_user_update'.

    remoteaction_core_module.inc.php is referencing a file that does not exist in the lib folder.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Looks as if not all files got installed correctly. Please redo the update by following the update instructions in the first post. Make sure that you select to reconfigure services during update.

    update:

    I think I've found the problem. It affects only some Linux distributions. As a temporary fix, create the missing file manually with the following content:

    Code:
    <?php
    $maxid_remote_action = 0;
    ?>
     
    Last edited: Oct 5, 2010
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Thanks, I've fixed that.
     
  6. wyrie

    wyrie ISPConfig Developer ISPConfig Developer

    Hi Till

    The services were re-configured. Just had a look at the trunk and I don't see the file remote_action.inc.php in /trunk/server/lib
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    This is a file which gets dynamically created by the installer, so you can not find it in the source directories.

    Please see my updated comment above.
     
  8. wyrie

    wyrie ISPConfig Developer ISPConfig Developer

    Thanks Till it is a distribution specific issue. Another thing I noticed in installer base is this:

    public function configure_dovecot() {
    global $conf;

    $config_dir = $conf['dovecot']['config_dir'];

    //* Configure master.cf and add a line for deliver
    if(is_file($config_dir.'/master.cf')) {
    copy($config_dir.'/master.cf', $config_dir.'/master.cf~2');
    }
    if(is_file($config_dir.'/master.cf~')) {
    chmod($config_dir.'/master.cf~2', 0400);
    }

    Should config dir not be the postfix value?
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, from the logical standpoint, even If I'am a bit astonished as it currently works fine... I will check that.
     

Share This Page