Hi! When I try to open the login-mask of ISPconfig 3.0.1, I get this Error-Message: Code: Notice: Undefined variable: wb in /usr/local/ispconfig/interface/lib/app.inc.php on line 162 and the loginmask doesn't load. It looks like this: Here's the htf_report.txt: (note: I had to rewrite gethostname() in the test to php_uname('n') because my old PHP-version doesn't have gethostname().) Code: ##### SERVER ##### IP-address (as per hostname): ***.***.***.*** IP-address(es) (as per ifconfig): ***.***.***.*** [INFO] ISPConfig is installed. ##### ISPCONFIG ##### ISPConfig version is 3.0.1 ##### VERSION CHECK ##### [INFO] php (cli) version is 5.2.6-1+lenny16 [INFO] php-cgi (used for cgi php in default vhost!) is version 5.2.6-1+lenny16 [WARN] Your php-cgi in /usr/lib/cgi-bin/ seems to be outdated and might contain a known exploit (-1+lenny16)! ##### PORT CHECK ##### [WARN] Port 8081 (ISPConfig Apps) seems NOT to be listening [WARN] Port 465 (SMTP server SSL) seems NOT to be listening ##### MAIL SERVER CHECK ##### [WARN] I found no "submission" entry in your postfix master.cf [INFO] this is not critical, but if you want to offer port 587 for smtp connections you have to enable this. [WARN] I found no "smtps" entry in your postfix master.cf [INFO] this is not critical, but if you want to offer SSL for smtp (not TLS) connections you have to enable this. ##### RUNNING SERVER PROCESSES ##### [INFO] I found the following web server(s): Apache 2 (PID 2406) [INFO] I found the following mail server(s): Postfix (PID 2310) [INFO] I found the following pop3 server(s): Courier Mailserver (PID 2226) [INFO] I found the following imap server(s): Courier Mailserver (PID 2208) [INFO] I found the following ftp server(s): PureFTP (PID 2325) ##### LISTENING PORTS ##### (only () Local (Address) [localhost]:837 (2357/famd) [localhost]:10024 (1551/amavisd) [localhost]:10025 (2310/master) [anywhere]:3306 (1611/mysqld) [localhost]:783 (1690/spamd.pid) [anywhere]:111 (1338/portmap) [anywhere]:21 (2325/pure-ftpd) ***.***.***.***:53 (2242/mydns) [localhost]:53 (2242/mydns) [anywhere]:22 (1523/sshd) [anywhere]:25 (2310/master) *:*:*:*::*:993 (2220/couriertcpd) *:*:*:*::*:995 (2238/couriertcpd) [localhost]10 (2226/couriertcpd) [localhost]43 (2208/couriertcpd) *:*:*:*::*:8080 (2406/apache2) *:*:*:*::*:80 (2406/apache2) *:*:*:*::*:21 (2325/pure-ftpd) *:*:*:*::*:53 (2242/mydns) *:*:*:*::*:22 (1523/sshd) *:*:*:*::*:443 (2406/apache2) ##### IPTABLES ##### Chain INPUT (policy ACCEPT) target prot opt source destination fail2ban-ssh tcp -- [anywhere]/0 [anywhere]/0 multiport dports 22 Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination Chain fail2ban-ssh (1 references) target prot opt source destination RETURN all -- [anywhere]/0 [anywhere]/0 This is the function that fails: PHP: /** Loads language */ public function lng($text) { if($this->_language_inc != 1) { //* loading global and module Wordbook // TODO: this need to be made clearer somehow - pedro @include_once(ISPC_ROOT_PATH.'/lib/lang/'.$_SESSION['s']['language'].'.lng'); if(isset($_SESSION['s']['module']['name']) && isset($_SESSION['s']['language'])) { $lng_file = ISPC_ROOT_PATH.'/web/'.$_SESSION['s']['module']['name'].'/lib/lang/'.$_SESSION['s']['language'].'.lng'; if(!file_exists($lng_file)) $lng_file = ISPC_ROOT_PATH.'/web/'.$_SESSION['s']['module']['name'].'/lib/lang/en.lng'; @include_once($lng_file); } $this->_wb = $wb; $this->_language_inc = 1; } if(!empty($this->_wb[$text])) { $text = $this->_wb[$text]; } return $text; } Where can I begin to debug this error or better: How can I resolve this?
My guess is that you either configures a language that does not exist or that language files got deleted. Have you considered to update ispconfig? The vrsion you run is realy outdated and several years old.
Where can I check / configure that? My Webserver-OS is just as old (Debian Lenny 5.0) and I'm currently testing upgrading. I first need to upgrade the OS before I can upgrade ISPconfig. Also, I'd rather have ISPconfig running errorless before updating.
In /usr/local/ispconfig/interface/lib/config.inc.php there is a language setting, e.g. "en". If the language is en, then there must be a file /usr/local/ispconfig/interface/lib/lang/en.lng which contains the english phrases.
It's empty? Hi Till! thanks for your help so far! I found out, that the directory is completly empty Where can I get language definitions? Thanks!
download the ispconfig tar.gz from sourceforge, use the version that you have currently installed, you ca find the language files then in the directory interface/lib/lang/ of the tar.gz file.
I fixed it now! In the end, there were many more errors (empty /pages/-Directorys and such) but an Update worked well! After I put the language-files in their place, only the error vanished. But I still didn't get a login-mask, so I updated the WB-Version.