ispCP - Board - Support
Fatal error: Call to undefined function debug() - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega International Area (/forum-22.html)
+--- Forum: German Corner (/forum-26.html)
+---- Forum: Plauderecke (/forum-49.html)
+---- Thread: Fatal error: Call to undefined function debug() (/thread-8636.html)

Pages: 1 2 3


Fatal error: Call to undefined function debug() - Wolfi2001 - 12-02-2009 05:49 AM

Ich noch mal mit einen ganz anderen probelm

ich wolte was instlairen und zwar SMI Shoutcast management interface
nun zeigt er bei der instalation das an

STEP 1: CHECKING PREREQUISITES...

- Checking PHP version...5.2.6-1+lenny4 (Required: PHP 5.0 or newer)

- Checking PHP safe mode...Off (Required: Safe mode off)

- Checking PHP MySQL...OK (Required: PHP MySQL extension)

- Checking PHP cURL...OK (Required: PHP cURL extension)

- Checking MySQL version...
Fatal error: Call to undefined function debug() in /var/www/virtual/media-fun.de/smi/htdocs/install/install.php on line 152

Woren kann es dran ligen habe ja schon die anderen fehler behoben aber das keine anung


RE: Fatal error: Call to undefined function debug() - ZooL - 12-02-2009 06:23 AM

ich verschiebe mal in die plauderecke das hat nun überhaupt nichst mit ispcp zutun...
aber die frage ist was steht in line 152 sehr warscheinlich wird etwas durch die php.ini security einstellungen geblockt... denke ich....


RE: Fatal error: Call to undefined function debug() - Wolfi2001 - 12-02-2009 06:26 AM

die frage ist nur was und wo stelle ich das ein


RE: Fatal error: Call to undefined function debug() - Sven3004 - 12-02-2009 07:03 AM

Hi

Kannst du die Zeile 152 +/- 5 Zeilen mal hier posten?
Eventuell kann man besser helfen.

Ansonsten schau mal in die php.ini von der Domain.
Denke aber daran den Indianer neu zu starten wenn du was an der php.ini änderst.

Gruss Sven


RE: Fatal error: Call to undefined function debug() - Wolfi2001 - 12-02-2009 07:13 AM

so da sind die zeilen 1 bis152
Code:
<?
////////////////////////////////////////////////////////////////////////
/*SMI - SHOUTcast Management Interface
A web based shoutcast server management program
Founding Author: Scott D. Harvanek <scotth@sourcemirrors.org>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.*/
////////////////////////////////////////////////////////////////////////
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>SMI Setup</title>
<script language="JavaScript">
<!--

function chatPop(URL) {
        day = new Date();
        id = day.getTime();
        var centerWidth = (window.screen.width - 400) / 2;
    var centerHeight = (window.screen.height - 100) / 2;
    parseInt(centerHeight);
    parseInt(centerWidth);    
        eval("page"+id+" = window.open(URL, '"+id+"', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=400,h​eight=100,left="+centerWidth+",top="+centerHeight+"'); ");
}

//-->
</script>
<link rel="stylesheet" type="text/css" href="../include/smi.css">
<link rel="shortcut icon" type="image/x-icon" href="../imgs/favicon.ico">
</head>
<body>
<center>
    <img src="../imgs/smi-logo.jpg">
<br>
<br>

<!-- HEADER TABLE -->
<table class="login" width="400" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
<tr align="center">
   <td align="center">
        <table width="50%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
        <tr align="center">
               <td colspan="3">
        <strong><big><a href="<? echo $_SERVER['PHP_SELF']; ?>">SMI - installation</a></big></strong><br>
    <? echo "Host: ".php_uname("n")." (".php_uname("s").")\n"; ?>
               </td>
        </tr>
    </table>
    </td>
  </tr>
</table>

<!-- CONTENT TABLE -->
<table class="login" width="400" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
<tr align="center">
   <td align="center">
        <table width="90%" border="0" cellpadding="5" cellspacing="1" bgcolor="#FFFFFF">
                <tr align="left">
                        <td align="left">

<?
require('../include/functions.inc.php');
/*
Determine installation step
*/
if(!isset($_POST['step'])) {
require_once('../include/config.php');
/*
Step 1: Determine if prerequisites are met
*/
$failed = 0;        // Reset failed flag
$directions = "";    // Empty string with directions
echo "<strong>STEP 1: CHECKING PREREQUISITES...</strong><br>\n";

// PHP version
echo "<p>- Checking PHP version...";
if (version_compare(PHP_VERSION, '5.0.0', '<')) {
$failed = 1;
$class = "bad";
$directions = "<p>- Upgrade your PHP installation and restart web server</p>\n";
} else {
$class = "good";
}
echo "<span class=\"check_".$class."\"><strong>".phpversion()."</strong> (Required: PHP 5.0 or newer)</span></p>";

// PHP safe mode
echo "<p>- Checking PHP safe mode...";
$safemode = ini_get('safe_mode');
if ($safemode == 1) {
$failed = 1;
$class = "bad";
$tmpstr = "On";
$directions .= "<p>- Edit ".php_ini_loaded_file()." and set <i>safe_mode = Off</i></p>";
} else {
$class = "good";
$tmpstr = "Off";
}
echo "<span class=\"check_".$class."\"><strong>".$tmpstr."</strong> (Required: Safe mode off)</span></p>";



// PHP MySQL extension
echo "<p>- Checking PHP MySQL...";
if (!in_array("mysql", get_loaded_extensions()) && !in_array("mysqli", get_loaded_extensions())) {
$failed = 1;
$class = "bad";
$tmpstr = "missing";
$directions .= "<p>- Install the <i>php-mysql</i> extension and restart web server</p>";
} else {
$class = "good";
$tmpstr = "OK";
}
echo "<span class=\"check_".$class."\"><strong>".$tmpstr."</strong> (Required: PHP MySQL extension)</span></p>";

// PHP cURL extension
echo "<p>- Checking PHP cURL...";
if (!in_array("curl", get_loaded_extensions())) {
$failed = 1;
$class = "bad";
$tmpstr = "missing";
$directions .= "<p>- Activate the <i>cURL</i> extension and restart web server</p>";
} else {
$class = "good";
$tmpstr = "OK";
}
echo "<span class=\"check_".$class."\"><strong>".$tmpstr."</strong> (Required: PHP cURL extension)</span></p>";



// MySQL version
echo "<p>- Checking MySQL version...";
if ($safemode == 1) {
echo "<span class=\"check_bad\">Unable to check with PHP safe mode on</span></p>";
} else {
$mysql = explode(" ", shell_exec("mysqladmin --version \n"));
$mysql = rtrim($mysql[5], ",");
debug($mysql);



RE: Fatal error: Call to undefined function debug() - gOOvER - 12-02-2009 08:11 AM

Shell_exec ist der Übeltäter. In der php.ini (der entsprechenden Domain)die Zeile

disabled_functions

Suchen und shell_exec rausnehmen Wink


RE: Fatal error: Call to undefined function debug() - Wolfi2001 - 12-02-2009 08:13 AM

habe ich schon rasugenomen und habe immer noch den fehler

Code:
open_basedir = "/var/www/virtual/media-fun.de/:/usr/share/php/"

; This directive allows you to disable certain functions for security reasons.
; It receives a comma-delimited list of function names. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
disable_functions = show_source, system, passthru, exec, phpinfo, shell, symlink, popen, proc_open



RE: Fatal error: Call to undefined function debug() - Lucan - 12-02-2009 08:34 AM

Apache danach neu geladen?


RE: Fatal error: Call to undefined function debug() - Wolfi2001 - 12-02-2009 08:37 AM

ja habe ich aber nichst

hir könt ihr das sehn wie es aus sit

mit dem fehler

Link entfernt. Nicht das das plötzlich doch funktioniert Wink


RE: Fatal error: Call to undefined function debug() - gOOvER - 12-02-2009 01:24 PM

Aber schon in der richtigen php.ini entfernt?

Versuch mal die ganze Zeile zu deaktivieren und dann apache reload.