webschiff
23rd April 2009, 18:44
Some have guaranteed the problem that no longer ispconfig debian lenny installed. It appears then following message:
Notice: Undefined variable: distver in /tmp/ispconfig3_install/install/lib/install.lib.php on line 135
Notice: Undefined variable: distid in /tmp/ispconfig3_install/install/lib/install.lib.php on line 135
Notice: Undefined variable: distbaseid in /tmp/ispconfig3_install/install/lib/install.lib.php on line 135
Linux Distribution or Version not recognized.didon:/tmp/ispconfig3_install/install#
Here is the solution:
open:
/tmp/ispconfig3_install/install/lib/install.lib.php
replace in line 73:
if(trim(file_get_contents('/etc/debian_version')) == '5.0' || trim(file_get_contents('/etc/debian_version')) == 'lenny/sid') {
with:
if(substr(trim(file_get_contents('/etc/debian_version')),0,3) == '5.0' || trim(file_get_contents('/etc/debian_version')) == 'lenny/sid') {
------------------------------------------------------------
for developer:
To "Notice: Undefined variable:" to prevent the creators of ISPConfig3 still in the line 62 down under $distname = ";
add:
$distver = '';
$distid = '';
$distbaseid = '';
------------------------------------------------------------
Notice: Undefined variable: distver in /tmp/ispconfig3_install/install/lib/install.lib.php on line 135
Notice: Undefined variable: distid in /tmp/ispconfig3_install/install/lib/install.lib.php on line 135
Notice: Undefined variable: distbaseid in /tmp/ispconfig3_install/install/lib/install.lib.php on line 135
Linux Distribution or Version not recognized.didon:/tmp/ispconfig3_install/install#
Here is the solution:
open:
/tmp/ispconfig3_install/install/lib/install.lib.php
replace in line 73:
if(trim(file_get_contents('/etc/debian_version')) == '5.0' || trim(file_get_contents('/etc/debian_version')) == 'lenny/sid') {
with:
if(substr(trim(file_get_contents('/etc/debian_version')),0,3) == '5.0' || trim(file_get_contents('/etc/debian_version')) == 'lenny/sid') {
------------------------------------------------------------
for developer:
To "Notice: Undefined variable:" to prevent the creators of ISPConfig3 still in the line 62 down under $distname = ";
add:
$distver = '';
$distid = '';
$distbaseid = '';
------------------------------------------------------------