Current time: 11-23-2024, 10:54 AM Hello There, Guest! (LoginRegister)


Thread Closed 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fatal error: Call to undefined function debug()
Author Message
Wolfi2001 Offline
Junior Member
*

Posts: 49
Joined: Nov 2009
Reputation: 0
Post: #1
Fatal error: Call to undefined function debug()
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
12-02-2009 05:49 AM
Find all posts by this user
ZooL Offline
Moderator
*****
Moderators

Posts: 3,429
Joined: Jan 2007
Reputation: 79
Post: #2
RE: Fatal error: Call to undefined function debug()
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....
12-02-2009 06:23 AM
Visit this user's website Find all posts by this user
Wolfi2001 Offline
Junior Member
*

Posts: 49
Joined: Nov 2009
Reputation: 0
Post: #3
RE: Fatal error: Call to undefined function debug()
die frage ist nur was und wo stelle ich das ein
12-02-2009 06:26 AM
Find all posts by this user
Sven3004 Offline
Junior Member
*

Posts: 102
Joined: Aug 2009
Reputation: 0
Post: #4
RE: Fatal error: Call to undefined function debug()
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
(This post was last modified: 12-02-2009 07:03 AM by Sven3004.)
12-02-2009 07:03 AM
Find all posts by this user
Wolfi2001 Offline
Junior Member
*

Posts: 49
Joined: Nov 2009
Reputation: 0
Post: #5
RE: Fatal error: Call to undefined function debug()
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);
12-02-2009 07:13 AM
Find all posts by this user
gOOvER Offline
Banned

Posts: 3,561
Joined: Jul 2007
Post: #6
RE: Fatal error: Call to undefined function debug()
Shell_exec ist der Übeltäter. In der php.ini (der entsprechenden Domain)die Zeile

disabled_functions

Suchen und shell_exec rausnehmen Wink
12-02-2009 08:11 AM
Visit this user's website Find all posts by this user
Wolfi2001 Offline
Junior Member
*

Posts: 49
Joined: Nov 2009
Reputation: 0
Post: #7
RE: Fatal error: Call to undefined function debug()
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
(This post was last modified: 12-02-2009 08:16 AM by Wolfi2001.)
12-02-2009 08:13 AM
Find all posts by this user
Lucan Offline
Member
*
Beta Team

Posts: 982
Joined: Jul 2008
Reputation: 12
Post: #8
RE: Fatal error: Call to undefined function debug()
Apache danach neu geladen?
12-02-2009 08:34 AM
Find all posts by this user
Wolfi2001 Offline
Junior Member
*

Posts: 49
Joined: Nov 2009
Reputation: 0
Post: #9
RE: Fatal error: Call to undefined function debug()
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
(This post was last modified: 12-02-2009 01:23 PM by gOOvER.)
12-02-2009 08:37 AM
Find all posts by this user
gOOvER Offline
Banned

Posts: 3,561
Joined: Jul 2007
Post: #10
RE: Fatal error: Call to undefined function debug()
Aber schon in der richtigen php.ini entfernt?

Versuch mal die ganze Zeile zu deaktivieren und dann apache reload.
12-02-2009 01:24 PM
Visit this user's website Find all posts by this user
Thread Closed 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)