Is there anything wrong with apache2_plugin.inc.php? [SOLVED]

Discussion in 'Installation/Configuration' started by stigge2000, Feb 11, 2015.

  1. stigge2000

    stigge2000 Member

    Code:
    [root@dns1 ~]# /usr/local/ispconfig/server/server.sh
    11.02.2015-13:42 - DEBUG - Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    11.02.2015-13:42 - DEBUG - Found 1 changes, starting update process.
    11.02.2015-13:42 - DEBUG - Calling function 'ssl' from plugin 'apache2_plugin' raised by event 'web_domain_insert'.
    11.02.2015-13:42 - DEBUG - Calling function 'insert' from plugin 'apache2_plugin' raised by event 'web_domain_insert'.
    PHP Fatal error:  Call to undefined method system::is_allowed_user() in /usr/local/ispconfig/server/plugins-available/apache2_plugin.inc.php on line 352
    When i look at that line(s) i find:
    Code:
    if($app->system->is_allowed_user($data['new']['system_user'], $app->system->is_user($data['new']['system_user']), true) == false
           || $app->system->is_allowed_group($data['new']['system_group'], $app->system->is_group($data['new']['system_group']), true) == false) {
           $app->log('Websites cannot be owned by the root user or group. User: '.$data['new']['system_user'].' Group: '.$data['new']['system_group'], LOGLEVEL_WARN);
           return 0;
         }

    This all started after i updated to the latest ispconfig 3.0.5.4p5 from 3.0.5.3
     
    Last edited: Feb 11, 2015
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You run a update to stable and not to git, right?
     
  3. stigge2000

    stigge2000 Member

    yes, i tok the stable version. I think all the other MODULES are working, but not web_module
     
  4. stigge2000

    stigge2000 Member

    and this is my (also updated) php version
    Code:
    [root@dns1 ~]# php --version
    PHP 5.4.37 (cli) (built: Jan 26 2015 11:58:42)
    Copyright (c) 1997-2014 The PHP Group
    Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
      with the ionCube PHP Loader v4.4.1, Copyright (c) 2002-2013, by ionCube Ltd.
     
  5. stigge2000

    stigge2000 Member

    Strange stuff going on, now there is another line printed
    Code:
    [root@dns1 ~]# /usr/local/ispconfig/server/server.sh
    11.02.2015-14:50 - DEBUG - Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    [B]which: no tw_cli in (/usr/kerberos/sbin:/usr/kerberos/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin)
    /usr/bin/fail2ban-client
    /sbin/iptables
    which: no ip6tables in (/usr/kerberos/sbin:/usr/kerberos/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin)[/B]
    11.02.2015-14:50 - DEBUG - Found 1 changes, starting update process.
    11.02.2015-14:50 - DEBUG - Calling function 'ssl' from plugin 'apache2_plugin' raised by event 'web_domain_insert'.
    11.02.2015-14:50 - DEBUG - Calling function 'insert' from plugin 'apache2_plugin' raised by event 'web_domain_insert'.
    PHP Fatal error:  Call to undefined method system::is_allowed_user() in /usr/local/ispconfig/server/plugins-available/apache2_plugin.inc.php on line 352
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Seems as if the update did not replace all files on your server. The function is_allowed_user exists in the system class in 3.0.5.4p5, if it does not exist in your file, then you use a file of an older ispconfig version.
     
    stigge2000 likes this.
  7. stigge2000

    stigge2000 Member

    How can i check this? in what file is it declared?
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    /usr/local/ispconfig/server/lib/classes/system.inc.php
     
  9. stigge2000

    stigge2000 Member

    Hmm, yes you are right (as usual) thank you Till Brehm, you rock!
    The problem is now fixed!
     

Share This Page