Seite 1 von 1
Registrieren nicht möglich
Verfasst: 20.05.2006 09:55
von TheMadMike
Moin Moin,
Gerade haben mich User aufmerksam gemacht, dass das registireren nicht mehr funktioniert.
Leider weiß ich nicht, warum und was der Fehler ist.
http://hcclub.de/Forum/profile.php?mode ... greed=true
Code: Alles auswählen
Fatal error: Call to undefined function: dss_rand() in /home/htdocs/web56/html/Forum/includes/usercp_register.php on line 1067
Mhhh... ?
LG Mike
Verfasst: 20.05.2006 11:53
von TheMadMike
Nun auf Zeile 955
Fatal error: Call to undefined function: dss_rand() in /home/htdocs/web56/html/Forum/includes/usercp_register.php on line 993
Verfasst: 20.05.2006 12:57
von Markus67
Hi ...
die Funktion wurde neu in der 2.0.20 hinzugefügt ....
Prüfe mal bitte deine functions.php ob das alles so drin ist.
Code: Alles auswählen
includes/functions.php
#
#-----[ FIND ]---------------------------------------------
# Line 137
}
return $str;
}
#
#-----[ AFTER, ADD ]---------------------------------------------
#
/**
* Our own generator of random values
* This uses a constantly changing value as the base for generating the values
* The board wide setting is updated once per page if this code is called
* With thanks to Anthrax101 for the inspiration on this one
* Added in phpBB 2.0.20
*/
function dss_rand()
{
global $db, $board_config, $dss_seeded;
$val = $board_config['rand_seed'] . microtime();
$val = md5($val);
$board_config['rand_seed'] = md5($board_config['rand_seed'] . $val . 'a');
if($dss_seeded !== true)
{
$sql = "UPDATE " . CONFIG_TABLE . " SET
config_value = '" . $board_config['rand_seed'] . "'
WHERE config_name = 'rand_seed'";
if( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Unable to reseed PRNG", "", __LINE__, __FILE__, $sql);
}
$dss_seeded = true;
}
return substr($val, 16);
}
#
#-----[ FIND ]---------------------------------------------
# Line 401
message_die(CRITICAL_ERROR, "Could not get theme data for themes_id [$style]");
#
#-----[ REPLACE WITH ]---------------------------------------------
#
// We are trying to setup a style which does not exist in the database
// Try to fallback to the board default (if the user had a custom style)
// and then any users using this style to the default if it succeeds
if ( $style != $board_config['default_style'])
{
$sql = 'SELECT *
FROM ' . THEMES_TABLE . '
WHERE themes_id = ' . $board_config['default_style'];
if ( !($result = $db->sql_query($sql)) )
{
message_die(CRITICAL_ERROR, 'Could not query database for theme info');
}
if ( $row = $db->sql_fetchrow($result) )
{
$db->sql_freeresult($result);
$sql = 'UPDATE ' . USERS_TABLE . '
SET user_style = ' . $board_config['default_style'] . "
WHERE user_style = $style";
if ( !($result = $db->sql_query($sql)) )
{
message_die(CRITICAL_ERROR, 'Could not update user theme info');
}
}
else
{
message_die(CRITICAL_ERROR, "Could not get theme data for themes_id [$style]");
}
}
else
{
message_die(CRITICAL_ERROR, "Could not get theme data for themes_id [$style]");
}
#
#-----[ FIND ]---------------------------------------------
# Line 696
$debug_text .= '</br /><br />Line : ' . $err_line . '<br />File : ' . basename($err_file);
#
#-----[ REPLACE WITH ]---------------------------------------------
#
$debug_text .= '<br /><br />Line : ' . $err_line . '<br />File : ' . basename($err_file);
#
#-----[ FIND ]---------------------------------------------
# Line 723
if ( empty($template) )
{
$template = new Template($phpbb_root_path . 'templates/' . $board_config['board_template']);
}
if ( empty($theme) )
#
#-----[ REPLACE WITH ]---------------------------------------------
#
if ( empty($template) || empty($theme) )
Markus
Verfasst: 20.05.2006 16:02
von TheMadMike
Vielen Dank, läuft wieder alles Problemlos.
Mike
Verfasst: 20.05.2006 17:28
von TheMadMike
Da ich nicht weiß, ob die Posts bei ner Edit als "aktuell" angezeigt
werden, ein neuer Post.
>>> Bei Löschen eines "Forums" Names xyz wird es durch eine Fehlermeldung nicht gelöscht <<<
Code: Alles auswählen
Parse error: parse error in /home/htdocs/web56/html/Forum/includes/prune.php on line 222
Fatal error: Call to undefined function: prune() in /home/htdocs/web56/html/Forum/admin/admin_forums.php on line 719
Mike
Verfasst: 20.05.2006 19:22
von Markus67
Hi ...
verlinke mal bitte die admin_forums.php als txt-Datei.
KB:datei
Welche phpBB Version hast du denn im Einsatz?
Markus
Verfasst: 21.05.2006 10:54
von TheMadMike
Ich benutzte phpBB2.0.20 Deutsch. Hab es vor 3 oder 4 Wochen darauf geupdatet.
http://hcclub.de/admin_forums.txt
Mike
Verfasst: 21.05.2006 11:15
von Markus67
Hi ...
welchen MOD hast du denn da reingebastelt?
Markus