Seite 1 von 1
hosteurope.de hat php auf 4.2.3 umgestellt
Verfasst: 20.03.2003 15:42
von torolf
hallo alle
hat einer probleme mit hosteurope.de? "PHP Version 4.2.3 umgestellt" ich ja:
Parse error: parse error, unexpected $ in /is/htdocs/XXXX/
www.jotero.com/forum/posting.php on line 1129
was kann das sein die posting.php hat keine 1129 zeilen sondern nur 1128? auch auf anderen kunden server von hosteurope scheint das gleiche problem zu geben hat einer eine lösung?
Danke schon mal. Zum testen unter forum.jotero.com
ciao
torolf
Verfasst: 20.03.2003 16:41
von Mister_X
kopiere dein posting.php mal, gib ihr die Endung .txt und gib uns hier mal nen Link auf die Datei
Verfasst: 20.03.2003 16:58
von torolf
hallo alle

hi mister_x
hier ist der
link von posting.txt
ich habe aber auch schon gesehen, wenn ich die Originale v. 2.0.4 Hochlade, dann gibt es keinen fehler. es muss an einem mod liegen vor der Umstellung ging es noch. ich werde auch mal suchen.
ciao
torolf
Verfasst: 20.03.2003 17:08
von Mister_X
suche mal in deiner posting.php nach
Code: Alles auswählen
user_notification('newtopic', $post_data, $forum_id, $topic_id, $post_id, $notify_user);
und ersetze dies mit
Code: Alles auswählen
user_notification('newtopic', $post_data, $post_info['topic_title'], $forum_id, $topic_id, $post_id, $notify_user);
suche nach
Code: Alles auswählen
user_notification($mode, $post_data, $forum_id, $topic_id, $post_id, $notify_user);
und ersetze dies mit
Code: Alles auswählen
user_notification($mode, $post_data, $post_info['topic_title'], $forum_id, $topic_id, $post_id, $notify_user);
Verfasst: 20.03.2003 17:31
von torolf
hallo alle

hi mister_x,
danke erst mal

leider hat das auch nicht geholfen.
wenn ich die
topic_review.txt und die
posting.txt durch die Originale ersetze, dann scheint es zu gehen.
ich nehme mal an, das es an dem ignore_users mod liegt, denn den habe ich zuletzt eingebaut.
werde ich mal überprüfen.
ciao
torolf
Verfasst: 20.03.2003 17:49
von torolf
ich noch mal
in der posting.php habe das geändert:
Code: Alles auswählen
#
#-----[ OPEN ]------------------------------------------
#
phpBB2/posting.php
#
#-----[ FIND ]------------------------------------------
#
user_notification($mode, $post_data, $forum_id, $topic_id, $post_id, $notify_user);
#
#-----[ REPLACE WITH ]------------------------------------------
#
// forum notification mod
$post_data['subject'] = $subject;
$post_data['username'] = ( $userdata['user_id'] == ANONYMOUS ) ? $username : $userdata['username'];
$post_data['message'] = $message;
if ( $post_data['first_post'] )
{
user_notification('newtopic', $post_data, $forum_id, $topic_id, $post_id, $notify_user);
}
else
{
user_notification($mode, $post_data, $forum_id, $topic_id, $post_id, $notify_user);
}
und in der topic_review.php:
Code: Alles auswählen
#
#-----[ OPEN ]------------------------------------------
#
includes/topic_review.php
#
#-----[ FIND ]------------------------------------------
#
//
// Go ahead and pull all data for this topic
//
$sql = "SELECT u.username, u.user_id, p.*, pt.post_text, pt.post_subject, pt.bbcode_uid
FROM " . POSTS_TABLE . " p, " . USERS_TABLE . " u, " . POSTS_TEXT_TABLE . " pt
WHERE p.topic_id = $topic_id
AND p.poster_id = u.user_id
AND p.post_id = pt.post_id
ORDER BY p.post_time DESC
LIMIT " . $board_config['posts_per_page'];
#
#-----[ REPLACE WITH ]------------------------------------------
#
//
// Go ahead and pull all data for this topic
//
$sql = "SELECT u.username, u.user_id, u.user_level, p.*, pt.post_text, pt.post_subject, pt.bbcode_uid
FROM " . POSTS_TABLE . " p, " . USERS_TABLE . " u, " . POSTS_TEXT_TABLE . " pt
WHERE p.topic_id = $topic_id
AND p.poster_id = u.user_id
AND p.post_id = pt.post_id
ORDER BY p.post_time DESC
LIMIT " . $board_config['posts_per_page'];
#
#-----[ FIND ]------------------------------------------
#
//
// Okay, let's do the loop, yeah come on baby let's do the loop
// and it goes like this ...
//
#
#-----[ AFTER, ADD ]------------------------------------------
#
$user_id = $userdata['user_id'];
#
#-----[ FIND ]------------------------------------------
#
$poster_id = $row['user_id'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
if ( $user_id != ANONYMOUS )
{
$sql = "SELECT user_ignore
FROM " . IGNORE_TABLE . "
WHERE user_id = $user_id
AND user_ignore = $poster_id";
if( !$res = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Could not get data from ignore table', __LINE__, __FILE__, $sql);
}
}
if(($db->sql_numrows($res) == 0) || ($user_id == ANONYMOUS) || ($row['user_level'] == ADMIN) || ($row['user_level'] == MOD))
{
#
#-----[ FIND ]------------------------------------------
#
}
while ( $row = $db->sql_fetchrow($result) );
#
#-----[ BEFORE, ADD ]------------------------------------------
#
}
und das war's auch schon.
ich hoffe, es kann damit einer was anfangen.
ciao
torolf
Verfasst: 20.03.2003 18:07
von Mister_X
du hast in der posting.php eine Klammer zuviel gelöscht
suche nach
und füge danach noch eine Klammer ein
Verfasst: 20.03.2003 18:24
von torolf
hi mister_x,
Ja danke, werde mich morgen mal kümmern

habe erst mal Dienstschluss. habe auch schon gesehn das das nicht alles an fehlern sein kann
danke noch mal.
ciao
torolf
Verfasst: 21.03.2003 09:08
von torolf
hallo alle
so jetzt lauft wider alles

habe den fehler gefunden, glaub ich
in der posting.php [
notification mod ] soll man das ersetzen:
Code: Alles auswählen
// forum notification mod
$post_data['subject'] = $subject;
$post_data['username'] = ( $userdata['user_id'] == ANONYMOUS ) ? $username : $userdata['username'];
$post_data['message'] = $message;
if ( $post_data['first_post'] )
{
user_notification('newtopic', $post_data, $forum_id, $topic_id, $post_id, $notify_user);
}
else
{
user_notification($mode, $post_data, $forum_id, $topic_id, $post_id, $notify_user);
}
und ich habe das eingefügt:
Code: Alles auswählen
// forum notification mod
$post_data['subject'] = $subject;
$post_data['username'] = ( $userdata['user_id'] == ANONYMOUS ) ? $username : $userdata['username'];
$post_data['message'] = $message;
if ( $post_data['first_post'] )
{
user_notification('newtopic', $post_data, $forum_id, $topic_id, $post_id, $notify_user);
}
else
{
user_notification($mode, $post_data, $post_info['topic_title'], $forum_id, $topic_id, $post_id, $notify_user);
}
in der neuen version "2.0.4 posting.php" gibt es eine veränderung in der zeile 583, die habe ich in der veränderung mit übernommen.
Code: Alles auswählen
user_notification($mode, $post_data, $post_info['topic_title'], $forum_id, $topic_id, $post_id, $notify_user);
so wie gesagt jetzt lauft wider alles.
danke noch mal
