Changed MyBB domain name, forum broken

Connect with other users about what to run on your webhosting (and how to run it) here.
Post Reply
Rhapsody
New to forums
New to forums
Posts: 8
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Sun Jun 15, 2014 10:25 pm

Changed MyBB domain name, forum broken

Post by Rhapsody »

I changed my forum domain name from smashinglimes.site.nfoservers.com/forum/ to smashinglim.es. In order for MyBB to fully acknowledge the change, I had to change the URL for the website and cookies in the AdminCP. I did so, and when I went back to my forum, it was broken; there's no theme, the images are broken, and if I go to the login page, it says that the page doesn't exist.

How can I fix this?
User avatar
rymax99
This is my homepage
This is my homepage
Posts: 143
Joined: Sun Feb 02, 2014 2:08 pm
Location: Florida
Contact:

Re: Changed MyBB domain name, forum broken

Post by rymax99 »

For software that isn't directly supported by NFO, you're always better off to go to the vendor site in this case it'd be http://community.mybb.com/. However, I'm an avid MyBB user, so I'll be happy to help. However, I'd encourage you use the MyBB community forums in the future as there is an active base of users there that'd be able to better assist you in a timely manner for MyBB specific problems.

Before you do anything, you should take a backup of any files you're going to manually edit, as manual edits will be needed if you don't update the domain name/cookie settings before your domain change. I'd take a database backup, too, it's unlikely something will mess up, but it's always better to be safe than sorry.

The first thing you'll need to do is edit /inc/config.php and /inc/settings.php to update your board URL's and cookie settings. The board URLs will be apparent, just adjust them to match your new domain, I'd recommend using Notepad++ or regular Notepad to edit the files, not a word processor such as Microsoft Word, as they aren't very good for things like this. In Notepad/Notepad++ I'd just serach the config.php/settings.php for your old board URL. You're most likely not able to login, and this is due to the cookie settings not matching the domain you're using. Here is a great tutorial written by a MyBB staff member for manually changing the cookie settings: http://community.mybb.com/thread-42123.html.

It's crucial that once you update settings in the configuration/settings file, you update them in the ACP in general settings and what not, when you edit them in the files, they aren't updated in the database, so you have to update them in the ACP to ensure your changes/fixes don't get reverted when you're editing settings in the ACP.
Rhapsody
New to forums
New to forums
Posts: 8
Joined: Sun Jun 15, 2014 10:25 pm

Re: Changed MyBB domain name, forum broken

Post by Rhapsody »

I changed the settings in settings.php, and the site functioned correctly again, or so it seemed... Anyhow, there's nothing in config.php referencing a website, so I'm not sure what you mean.

When I try to log in, however, it successfully logs me in, but when I get back to the index page from the friendly forward, it says I'm a guest and have to log in.
User avatar
rymax99
This is my homepage
This is my homepage
Posts: 143
Joined: Sun Feb 02, 2014 2:08 pm
Location: Florida
Contact:

Re: Changed MyBB domain name, forum broken

Post by rymax99 »

Rhapsody wrote:I changed the settings in settings.php, and the site functioned correctly again, or so it seemed... Anyhow, there's nothing in config.php referencing a website, so I'm not sure what you mean.

When I try to log in, however, it successfully logs me in, but when I get back to the index page from the friendly forward, it says I'm a guest and have to log in.
That's a cookie issue. The file you should edit to change cookie settings is settings.php.
Rhapsody
New to forums
New to forums
Posts: 8
Joined: Sun Jun 15, 2014 10:25 pm

Re: Changed MyBB domain name, forum broken

Post by Rhapsody »

I had already set both to the following, tell me if there are any mistakes in this.

$settings['bburl'] = "http://smashinglim.es";
$settings['cookiedomain'] = ".smashinglim.es";
Post Reply