header probleem

Hulp nodig bij je installatie of kom je ergens niet uit? Probeer phpBB3! Problemen lossen we samen met je op.
phpBB 3.0 is End of support per 1 januari 2017. Dit forum is hier enkel ter archief. Het wordt aangeraden te upgraden naar phpBB 3.2
Forumregels
phpBB 3.0 is End of support per 1 januari 2017. Dit forum is hier enkel ter archief. Het wordt aangeraden te upgraden naar phpBB 3.2
Gesloten
DragonWish
Berichten: 99
Lid geworden op: 02 feb 2006, 21:02
Locatie: Nijmegen
Contacteer:

header probleem

Bericht door DragonWish » 15 dec 2008, 16:52

  • Adres van je forum: http://www.betinfo.nl
    Event. modificaties op je forum: geen
    Wanneer ontstond het probleem? na instaleren
    phpBB versie: 3.0.3

    Heb je onlangs iets veranderd aan je forum?
    Wat is het probleem?
..

Elke keer als iemand een bericht post (dus op bericht plaatsen klikt) komt er een error te staan, waarna je naar de door jou geplaatste bericht wordt terug gestuurd. Dit is sinds ik alles heb geinstalleerd en de back-up heb geplaatst.

Dit is de error

Code: Selecteer alles

phpBB Debug] PHP Notice: in file /includes/functions_posting.php on line 2493: mysql_query() [function.mysql-query]: Access denied for user 'xxxx'@'localhost' (using password: NO)
[phpBB Debug] PHP Notice: in file /includes/functions_posting.php on line 2493: mysql_query() [function.mysql-query]: A link to the server could not be established
[phpBB Debug] PHP Notice: in file /includes/functions_posting.php on line 2497: mysql_fetch_array(): supplied argument is not a valid MySQL result resource

Warning: Cannot modify header information - headers already sent by (output started at /home/betinfo/public_html/forum/includes/functions.php:3153) in /home/betinfo/public_html/forum/includes/functions.php on line 3729

Warning: Cannot modify header information - headers already sent by (output started at /home/betinfo/public_html/forum/includes/functions.php:3153) in /home/betinfo/public_html/forum/includes/functions.php on line 3731

Warning: Cannot modify header information - headers already sent by (output started at /home/betinfo/public_html/forum/includes/functions.php:3153) in /home/betinfo/public_html/forum/includes/functions.php on line 3732

Warning: Cannot modify header information - headers already sent by (output started at /home/betinfo/public_html/forum/includes/functions.php:3153) in /home/betinfo/public_html/forum/includes/functions.php on line 3733

Aan het eerste deel van de error te zien lijkt het alsof ik geen toegang heb tot de database, maar dat heb ik wel en de berichten worden ook opgeslagen.

Op regel 3153 van functions.php staat
$errfile = str_replace(array(phpbb_realpath($phpbb_root_path), '\\'), array('', '/'), $errfile);

En de regels 3729 t/m 3733 zijn
// application/xhtml+xml not used because of IE
header('Content-type: text/html; charset=UTF-8');

header('Cache-Control: private, no-cache="set-cookie"');
header('Expires: 0');


In functions_posting.php staat op regel 2493
$a = mysql_query($n);

----------------------------------------------------------------------
Wat doe ik fout en moet ik eventueel aanpassen

Gebruikersavatar
Paul
Beheerder
Beheerder
Berichten: 20316
Lid geworden op: 23 okt 2003, 11:38
Locatie: Utrecht
Contacteer:

Re: header probleem

Bericht door Paul » 15 dec 2008, 17:01

Je hebt een MOD gebruikt welke niet voldoet aan de phpBB coding guidelines. Je zal die MOD moeten deinstalleren om je forum te klunnen gebruiken.

DragonWish
Berichten: 99
Lid geworden op: 02 feb 2006, 21:02
Locatie: Nijmegen
Contacteer:

Re: header probleem

Bericht door DragonWish » 15 dec 2008, 17:15

Ik heb geen mods gebruikt.

Ik heb heel phpbb 3.0.3 opnieuw geinstalleerd. en daar een back-up van het oude forum overheen gegooid. Dat is het enige.

Gebruikersavatar
Paul
Beheerder
Beheerder
Berichten: 20316
Lid geworden op: 23 okt 2003, 11:38
Locatie: Utrecht
Contacteer:

Re: header probleem

Bericht door Paul » 15 dec 2008, 18:06

Je zal toch iets aangepast hebben, want die mysql_query zit niet in een standaard phpBB in die file.

Gesloten