Pagina 1 van 1

header probleem

Geplaatst: 15 dec 2008, 16:52
door DragonWish
  • 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

Re: header probleem

Geplaatst: 15 dec 2008, 17:01
door Paul
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.

Re: header probleem

Geplaatst: 15 dec 2008, 17:15
door DragonWish
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.

Re: header probleem

Geplaatst: 15 dec 2008, 18:06
door Paul
Je zal toch iets aangepast hebben, want die mysql_query zit niet in een standaard phpBB in die file.