vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   New domain with a backup of another database. (https://vborg.vbsupport.ru/showthread.php?t=271047)

Fready 09-28-2011 11:47 AM

New domain with a backup of another database.
 
What i did today was.
Copied all my vb files from my cpanel for an existing forum.
Exported all the files from the data base.

Re uploaded all the new files and data base to a new data base and folder for a new domain.
Edited the config.php to the new data base.

But when I tried to log into the new Forum with the new URL it just redirected me to the old working Forum.

So how can I get this to work?

kh99 09-28-2011 11:59 AM

Edit your includes/config.sys (if you haven't already) and make sure all the settings are for your new server. Then on the new site go to the options in the adminCP, and under "Site Name / URL / Contact Details" make sure the Forum URL and home page URL are set to your new site.

Fready 09-28-2011 12:27 PM

This is the problem kh99, I put in the data base name, urser name and password in the config.php but when going to the new URL it takes me to the Admin panel but when I try to log in it redirects me to the existing URL/other domain.

So i am unable to change the Site URL in the Admin panel.

The reason I am doing this is that I had modified and edited so much on the other site I though instead of starting from scratch again I could just use the data base and files from one to the other.

But this one has got me, on how to do it.

kh99 09-28-2011 12:31 PM

Oh, right, you're trying to log in. Did you try (after logging in and getting redirected) just going to http://www. yoursite.com/admincp ?

Fready 09-28-2011 01:01 PM

Yes, and it was the new URL, but as soon as i logged in it sent me to the other URL.

There must be a way of doing what I want to do but it's just knowing what to do.
Probably something very simple I'm missing doing,

kh99 09-28-2011 01:10 PM

You could try editing the database directly, the record in the datastore table where title = "options", and change the forum url (it's in serialized format so you either need to leave the field the same length or fix the length value).

I don't know anything about tranfering a site, but I think I remember reading a post saying that there's some reason you shouldn't do what you're trying to do. (That's not much help, I know).

Fready 09-28-2011 01:24 PM

Been looking in the files in the data base but i can't find the options fro changing the URL

nhawk 09-28-2011 01:42 PM

I just finished doing this exact thing for a client of mine. (moved forum from one URL to a new URL but kept exisiting forums, users, etc.).

When you backed up the database, did you disable all hooks and plugins in AdminCP on the original site before backing up the database? (ACP->Settings->Options->Plugin/Hook System)

To be double sure, I also disable all products except the ones included in a default vBulletin install.

Fready 09-28-2011 02:07 PM

I didn't disable them no.

So how would that make the problem I got?

What do I need to do?
How did you do what i am wanting to do without the new Forum redirecting to the other Forum when trying to get into the Admin CP?

nhawk 09-28-2011 02:18 PM

I'm not sure if it would cause the problem you're having or not. But, that is the first thing that should be done when moving a database for vB.

So far as I know, vB should not redirect you away from the ACP you're on to the original one. It's never happened to me.

I'm not 100% certain, but I think it might have to do with the cookies for your old site. I would suggest opening a support ticket at the vbulletin.com site and ask how to reset the cookie info with tools.php. And include info on what is happening to you so they can verify the problem. I'm sure they've run across this before.

kh99 09-28-2011 02:42 PM

Are you sure it's not a DNS issue?

nhawk 09-28-2011 02:49 PM

I can't say for sure that's not his issue, but both sites (original and new) were resolving properly for the site I just moved. vB was running, but was closed on the original site as I configured the new site. Once the new site was configured, vB was removed from the old site.

So, both sites being active shouldn't be a problem.

Fready 09-28-2011 02:51 PM

I just had a crazy thought.
I will re-do everything i did today tomorrow (as I deleted the data base and files for the new one when it didn't work) and try again.

I'm not 100% sure, but I think i might have added some wrong info in the config.hp today for the new one.
I thought that would have given me a data base error when trying to connect to the new URL myself, instead of redirecting me to the other URL, but it's worth a go.

I'll report back tomorrow.

nhawk 09-28-2011 03:05 PM

Fready...

If you still have access to the original install of vB, backup the database again. But before you do, do these three things..

1) Turn vBulletin OFF.
2) Disable the Plugin/Hook system
3) Go to ACP->Settings->Options->Cookie and HTTP Header Options. Be sure the Cookie Domain is set to Blank and Use Custom Setting is not checked.

preemz10314 09-28-2011 03:55 PM

I had this same problem. i opened a ticket and it was corrected.

Try uploading tools.php and reset the cookies / domain. you may also have to edit the config.php bburl setting.

And you may or may not have to go to stylevars> search imagepaths and edit the image paths to point to your new domain.

Opening up a ticket at vbulletin.com if you cant do it and they will help you thru it. just explain it to them. They do this all the time, however when I asked excatly what they did to fix it they wouldnt tell me ;/

Fready 09-29-2011 01:34 AM

Ok, I got everything to work fine.
I must have made a mistake in the conig.php yesterday.

--------------- Added [DATE]1317272741[/DATE] at [TIME]1317272741[/TIME] ---------------

Thanks to you guys who posted on this Thread, it helped me work out what I'd done wrong..


All times are GMT. The time now is 03:02 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01518 seconds
  • Memory Usage 1,743KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (16)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete