MyBB Community Forums

Full Version: website got messed up after I set mail settings to smtp
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
As title says, I changed mail settings from php to smtp
This happened: http://forum.townyrealms.com/
I can't access my admin cp, it redirects me to my game panel hosted on the same server.
188.165.244.23

I set the smtp to 188.165.244.23
ACP > Configuration > General Server Configuration

Make sure the links points to the forum.
(2015-05-25, 07:38 PM)Akay Wrote: [ -> ]ACP > Configuration > General Server Configuration

Make sure the links points to the forum.

He has already stated he can't access his admin cp.

OP:

Log into your FTP and go to .inc/settings.php and check the above settings there.
bburl and cookie settings, to be more specific. They-re outdated after moving from localhost, I assume. So the issue has nothing to do with SMTP.
I logged in with ftp and the only places it had the ip 188.165.244.23 was
$settings['bburl'] = "http://188.165.244.23/mybb/Upload";
and
$settings['smtp_host'] = "188.165.244.23";
I noticed, if I go directly to http://forum.townyrealms.com/admin it takes me to the admin panel and after changing mail settings back to php it's still the same, so yes, nothing wrong with smtp. but it happened directly after I changed the smtp.
Where's the log stored? The admin cp looks fine. so probably something else is wrong.
in the settings.php file
change value of $settings['bburl'] to "http://forum.townyrealms.com" and $settings['cookiedomain'] to ".townyrealms.com"

after saving settings.php file you should be able to log into forum admin panel.
again put correct values for board url & cookie domain at General Configuration settings >> Site Details

see also cookie related guidance (for MyBB 1.6.x)
Changed it and the theme is back. now though, when I go to the admin cp
http://forum.townyrealms.com/admin/index.php
and click on anything, it takes me back to the login page and says "Invalid administration session."
and I can't login..

EDIT:
path is set to this:
$settings['cookiepath'] = "/mybb/Upload/";

This site: http://docs.mybb.com/1.6/Cookie-Settings/ says something different
^ cookie path should be changed to /forum/
first in ~/inc/settings.php file and then at admin panel >> Configuration ( settings) >> Site Details
(2015-05-26, 03:19 PM).m. Wrote: [ -> ]^ cookie path should be changed to /forum/
first in ~/inc/settings.php file and then at admin panel >> Configuration ( settings)  >> Site Details

Yes, I've changed all 3 settings to what you said, and now when I go to forum.townyrealms.com/admin and login, when I then press on "configuration" it takes me to the login page and says "Invalid administration session."
Please see: http://docs.mybb.com/1.6/Cookie-Settings/ 
Ensure your settings are the same as above.
Pages: 1 2