Seite 1 von 1

Fehler bei Profilaufruf

Verfasst: 28.08.2007 10:13
von songe-creux
wenn man in meinem Forum sein eigenes Profil editieren möchte kommt folgender text (undzwar nur dieser)

Code: Alles auswählen

usercp_register.php * ------------------- * begin : Saturday, Feb 13, 2001 * copyright : (C) 2001 The phpBB Group * email : support@phpbb.com * * $Id: usercp_register.php,v 1.20.2.70 2005/12/29 11:51:11 acydburn Exp $ * * ***************************************************************************/ /*************************************************************************** * * 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. * * ***************************************************************************/
Große Codeblöcke bitte verlinken KB:knigge bantu

darauf folgend erscheint dann nach ein paar sekunden dieser text:
Not Found

The requested URL /. append_sid( was not found on this server.
da ich mich mit soetwas überhaupt nicht auskenne stehe ich dem ganzen nun etwas ratlos gegenüber und möchte wissen ob hier vielleicht jemand einen anhaltspunkt findet.
ich hoffe jemand kann mir helfen.

falls es weiterhilft hier nocheinmal der link zu meinem forum http://forum.katzengras.net

Verfasst: 28.08.2007 10:15
von kili
das sieht danach aus, als hättest du in einer template-datei php-code, der nicht interpretiert wird.
gruß:
kilian

Verfasst: 28.08.2007 10:18
von songe-creux
hm seltsam.. und wie kann man soetwas ändern?

ich hoffe ich muss nicht mein komplettes forum nochmal neu aufsetzen :\

Verfasst: 28.08.2007 10:34
von punkface
Warscheinlich fehlt einfach nur <?php am Anfang der Datei usercp_register.php. Kontrolliert das mal.


Ansonsten die Datei als txt-Datei verlinken (KB:datei)

Verfasst: 28.08.2007 10:41
von songe-creux
wo sollte ich die <?php denn einfügen? hab die textdatei mal hier hochgeladen.

danke schon im vorraus

Verfasst: 28.08.2007 10:53
von SteveHH
Hallo !

<?php

kommt ganz an den Anfang der php-datei

So muss das bei dir aussehen:

Code: Alles auswählen

<?php
 /**
 *                            -------------------
 *   begin                : Saturday, Feb 13, 2001
 *   copyright            : (C) 2001 The phpBB Group
 *   email                : support@phpbb.com
 *
 *   $Id: usercp_register.php,v 1.20.2.70 2005/12/29 11:51:11 acydburn Exp $
 *
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   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 code has been modified from its original form by psoTFX @ phpbb.com
	Changes introduce the back-ported phpBB 2.2 visual confirmation code. 

	NOTE: Anyone using the modified code contained within this script MUST include
	a relevant message such as this in usercp_register.php ... failure to do so 
	will affect a breach of Section 2a of the GPL and our copyright

	png visual confirmation system : (c) phpBB Group, 2003 : All Rights Reserved

*/

if ( !defined('IN_PHPBB') )
{
	die("Hacking attempt");
	exit;
}

Die Zeile kannst Du einfach in einem normalen Editor einfügen.

Greetz,

Steve

Verfasst: 28.08.2007 10:57
von songe-creux
hab ich eben schon ausprobiert. wenn ich es ganz oben einfüge macht er probleme, wenn ich es etwas weiter unten einfüge sieht das ganze so aus.

also an sich kann man aufs profil zugreifen, aber irgendwie hat die datei noch probleme die oben zeilen mit einzubinden.

wenn ich es ganz oben einfüge kommt folgender text
Parse error: syntax error, unexpected T_DEC, expecting T_VARIABLE or '$' in /www/htdocs/w006b931/phpBB2/includes/usercp_register.php on line 3

Edit: Ich glaube ich habs hinbekommen. der wollte den header nicht unsichtbar mit einbinden. hab den text gelöscht und nun gehts. wenn ich das richtig erkannt habe sind dort keine codes enthalten und somit sollten auch keine weiteren probleme auftreten.
danke für eure hilfe :)

Verfasst: 28.08.2007 11:01
von SteveHH
Was genau steht in den betreffenden Zeilen ?

Versuch' mal folgendes:

Code: Alles auswählen

<?php
if ( !defined('IN_PHPBB') ) 
{ 
   die("Hacking attempt"); 
   exit; 
} 
(Natürlich vorher den Kommentar löschen - Testweise)

Greetz,

Steve