hosteurope.de hat php auf 4.2.3 umgestellt

Probleme bei der regulären Arbeiten mit phpBB, Fragen zu Vorgehensweisen oder Funktionsweise sowie sonstige Fragen zu phpBB im Allgemeinen.
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.1, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Antworten
Benutzeravatar
torolf
Mitglied
Beiträge: 17
Registriert: 27.01.2003 08:20
Wohnort: Hannover Deutschland
Kontaktdaten:

hosteurope.de hat php auf 4.2.3 umgestellt

Beitrag 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
Benutzeravatar
Mister_X
Ehemaliges Teammitglied
Beiträge: 7102
Registriert: 24.05.2001 02:00
Wohnort: Augsburg

Beitrag von Mister_X »

kopiere dein posting.php mal, gib ihr die Endung .txt und gib uns hier mal nen Link auf die Datei
Benutzeravatar
torolf
Mitglied
Beiträge: 17
Registriert: 27.01.2003 08:20
Wohnort: Hannover Deutschland
Kontaktdaten:

Beitrag 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
Benutzeravatar
Mister_X
Ehemaliges Teammitglied
Beiträge: 7102
Registriert: 24.05.2001 02:00
Wohnort: Augsburg

Beitrag 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);
Benutzeravatar
torolf
Mitglied
Beiträge: 17
Registriert: 27.01.2003 08:20
Wohnort: Hannover Deutschland
Kontaktdaten:

Beitrag 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
Benutzeravatar
torolf
Mitglied
Beiträge: 17
Registriert: 27.01.2003 08:20
Wohnort: Hannover Deutschland
Kontaktdaten:

Beitrag 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
Benutzeravatar
Mister_X
Ehemaliges Teammitglied
Beiträge: 7102
Registriert: 24.05.2001 02:00
Wohnort: Augsburg

Beitrag von Mister_X »

du hast in der posting.php eine Klammer zuviel gelöscht
suche nach

Code: Alles auswählen

// forum notification mod end
         }
und füge danach noch eine Klammer ein
Benutzeravatar
torolf
Mitglied
Beiträge: 17
Registriert: 27.01.2003 08:20
Wohnort: Hannover Deutschland
Kontaktdaten:

Beitrag 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 :D

danke noch mal.


ciao
torolf
Benutzeravatar
torolf
Mitglied
Beiträge: 17
Registriert: 27.01.2003 08:20
Wohnort: Hannover Deutschland
Kontaktdaten:

Beitrag von torolf »

hallo alle :)

so jetzt lauft wider alles :D habe den fehler gefunden, glaub ich 8)

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 :)
Antworten

Zurück zu „phpBB 2.0: Administration, Benutzung und Betrieb“