Solved: 4 Years, 2 Months ago Domain changed cannot login to make admin
#1
Solved: 4 Years, 2 Months ago
hi I sold my forum but the issue is the buyer wanted the domain changed. the old domain was utubepoop.com the new domain is ytphub.com The site works but it now looks weird and I am unable to login to make the buyer as an admin and to transfer ownership. What do I do?

thank you for your help and timeĀ  Big Grin
Reply
#2
Solved: 4 Years, 2 Months ago
You need to change to change the url and the cookie domain in your inc/settings.php, after that login and change it in the ACP.
Paid support or developement: www.broatcast-consulting.de
All other: blog.broatcast.de

[Image: EbbMWfN.png]

Reply
#3
Solved: 4 Years, 2 Months ago
(2017-04-19, 07:15 PM)broatcast Wrote: You need to change to change the url and the cookie domain in your inc/settings.php, after that login and change it in the ACP.

still not working I tried that but when I try to login it says: "this page is not working data can't be sent"
Reply
#4
Solved: 4 Years, 2 Months ago
change this in your database to in the mybb_settings table, after that you can delete the settings.php file and mybb will create a new one from the settings in your database.

you can do this by running this sql querys:

update mybb_settings set `value` = "0" where `name` = "cookiesecureflag";
update mybb_settings set `value` = "/" where `name` = "cookiepath";
update mybb_settings set `value` = ".ytphub.com" where `name` = "cookiedomain";
update mybb_settings set `value` = "http://ytphub.com" where `name` = "bburl";
update mybb_settings set `value` = "http://ytphub.com" where `name`= "homeurl";

note: if you use another prefix you need to change the querys otherwise they dont work.

some useful links:
https://docs.mybb.com/1.8/faq/styles/
https://docs.mybb.com/1.8/development/cookies/
Paid support or developement: www.broatcast-consulting.de
All other: blog.broatcast.de

[Image: EbbMWfN.png]

Reply
#5
Solved: 4 Years, 2 Months ago
(2017-04-19, 08:27 PM)broatcast Wrote: change this in your database to in the mybb_settings table, after that you can delete the settings.php file and mybb will create a new one from the settings in your database.

you can do this by running this sql querys:

update mybb_settings set `value` = "0" where `name` = "cookiesecureflag";
update mybb_settings set `value` = "/" where `name` = "cookiepath";
update mybb_settings set `value` = ".ytphub.com" where `name` = "cookiedomain";
update mybb_settings set `value` = "http://ytphub.com" where `name` = "bburl";
update mybb_settings set `value` = "http://ytphub.com" where `name`= "homeurl";

note: if you use another prefix you need to change the querys otherwise they dont work.

some useful links:
https://docs.mybb.com/1.8/faq/styles/
https://docs.mybb.com/1.8/development/cookies/

I don't know the first thing about queries. Where do I go? do I go to file manager or phpmyadmin?
sorry i;m a noob. Big Grin

Thank you for your time
Reply
#6
Solved: 4 Years, 2 Months ago
You can run this commands from phpmyadmin, select your database.
You can find a tutorial here https://community.mybb.com/thread-4720.html
Paid support or developement: www.broatcast-consulting.de
All other: blog.broatcast.de

[Image: EbbMWfN.png]

Reply
#7
Solved: 4 Years, 2 Months ago
(2017-04-19, 09:19 PM)broatcast Wrote: You can run this commands from phpmyadmin, select your database.
You can find a tutorial here https://community.mybb.com/thread-4720.html

i think i found the main issue. (see attatchment) my old domain was utubepoop.com the new domain is ytphub.com. but my site might be stuck on the old. what do i do? thx Big Grin


Attached Files Thumbnail(s)
   
Reply
#8
Solved: 4 Years, 2 Months ago
change the settings like i sayed by running the sql querys... then regenerate the settings.php simply by delete it or modify it manualy (after editing the database like discriped in prev post... then clear browser cache ...
Paid support or developement: www.broatcast-consulting.de
All other: blog.broatcast.de

[Image: EbbMWfN.png]

Reply
#9
Solved: 4 Years, 2 Months ago
(2017-04-19, 10:55 PM)broatcast Wrote: change the settings like i sayed by running the sql querys... then regenerate the settings.php simply by delete it or modify it manualy (after editing the database like discriped in prev post... then clear browser cache ...

this is what i found what does this mean? UPDATE mybb_settings SET value = "0" WHERE name = "cookiesecureflag";
Reply
#10
Solved: 4 Years, 2 Months ago
if this is 1 and not 0 in your configuration the cookie will forced to send over https but you are using http instead of encrypted connection... so this will prevent you from logging in.

the other querys rewrite your settings to the new domain.
Paid support or developement: www.broatcast-consulting.de
All other: blog.broatcast.de

[Image: EbbMWfN.png]

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)