Topic: Config file problems?

I have to reinstall my forum (which my hoster crashed for me) and have tried to get it up and running on Localhost before on my server. I get these errors which I have read are common and related to config file.

Deprecated: Function set_magic_quotes_runtime() is deprecated in C:\xampp\htdocs\forumNEW\include\common.php on line 50

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\forumNEW\include\common.php:50) in C:\xampp\htdocs\forumNEW\header.php on line 31

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\forumNEW\include\common.php:50) in C:\xampp\htdocs\forumNEW\header.php on line 32

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\forumNEW\include\common.php:50) in C:\xampp\htdocs\forumNEW\header.php on line 33

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\forumNEW\include\common.php:50) in C:\xampp\htdocs\forumNEW\header.php on line 34

I have checked the config.php many times in notepad, notepad++, wordpad & GoLive but can't find anything wrong. The file looks like this

<?php

$db_type = 'mysql';
$db_host = 'localhost';
$db_name = 'india';
$db_username = 'Username';
$db_password = 'password';
$db_prefix = 'pun5';
$p_connect = false;

$cookie_name = 'punbb_cookie';
$cookie_domain = '';
$cookie_path = '/';
$cookie_secure = 0;
$cookie_seed = '5510610a';

define('PUN', 1);

There are no spaces in front or behind the code. I have deleted and reinstalled PunBB several times even as far as removing  and reinstalling Xampp. Anyone have a suggestion, I worked at this all day yesterday, its getting boring.

Oh greetings from Phuket Thailand if you can help I'll have a swim for you.

Re: Config file problems?

You need to remove or comment out these lines in <FORUM_ROOT>/include/common.php:

if (get_magic_quotes_runtime())
    set_magic_quotes_runtime(0);

Re: Config file problems?

Hi

Thanks for the quick response it worked fine. Why do you have that error on a clean install?

I read all the threads on config.php but didn't see that solution.

Thanks again

Re: Config file problems?

The "set_magic_quotes_runtime" function was removed in PHP 5.3, that's why this error appears. PunBB 1.3 has not been tested with PHP 5.3 yet.