MyBB Community Forums

Full Version: Everytime saving settings: setting.php changes bburl & cookiepath to old host data
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So a coupledays ago I moved my mybb from localhost on wampserver to the ftp of my website. So now everytime i changed settings in configure > settings on the admin panel:

$settings['bburl'] = "http://website.com/forum";(current host)
CHANGES TO
$settings['bburl'] = "http://localhost/test/forum";(old host)


$settings['cookiepath'] = "/forum/";(current host)
CHANGES TO
$settings['cookiepath'] = "/test/forum/";(old host)

And the result of this is that my stylesheet couldn't find and the lay-out get plain. And probably there occurs others errors also when changing urls.

So I thought to fix this is to follow the instructions on this page
http://docs.mybb.com/CHMOD_Files.html. So i've changed the rights on fillezila off certain files. But the problem is still there. So do someone know the problem en what to do?
just delete the settings.php file and make the changes on admin panel and save.. let the settings.php be regenerated automatically. it will take the values stored on the db.
Don't work.. The bburl and cookiepath go back to the old host's data.

Solved it. It seems that settings.pgp was getting the old host's data from the database tables which the forum is connected to. So if you have the same issue, just export the whole sql. Open it in an editor, Find for the bburl and cookiepath. And change the data to the right url and folder, and then delete the current tables on the dabatase en import the new sql that you just edited.