The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Cloned forum/database changing bburl of one affects both - what's going on?
Hi, I'd appreciate any help anyone can offer here...
I have duplicated my forum folder and created a copy of the database with a different name. I've also created a new user in the database users with no access given to the original database. I have modified the config.php accordingly also. The point of this exercise was to create a development clone of my live forum, to test a patch upgrade on it rather than the live site... nothing nefarious I can only access one site at a time. If I change the bburl via the admin->options to the new forum then the new clone works fine, but, the original then ceases to work (I get a white page with no content). The admin panels remain functional at this point so if I now change the URL back on the original site, it then works fine but the clone is once again disabled. Any changes to one seem to affect the other, despite the different databases and the user account for the clone being denied access to the original database. I'm a bit stumped here... can anyone offer any advice? I should add that the content displayed on both sites is coming from the correct databases as posts are showing up on the original and not the clone. I have tried clearing the cache table, no joy. xcache is installed but disabled right now. I've restarted lighttpd but nothing changed. The style being displayed is even different (as it should be, it was changed on the original after the data was exported and prior to importing it into the new clone database). |
#2
|
|||
|
|||
Try going to Settings > Options > Site Name / URL / Contact Details and making sure "Forum URL" is correct in each database.
|
#3
|
|||
|
|||
Hey, thanks for replying. I can confirm that the control panels both correctly show the respective URLs, as do both databases from what I can tell (the datastore, settings and options tables - in serialised arrays).
This is vB 4.2.0 (no patches - FYI) |
#4
|
|||
|
|||
Oh, I see now - that's the same setting you're changing to cause one site or the other to work. That is strange that changing one database would affect the other site.
What do you have for cookie path under "Cookies and HTTP Header Options"? If you're using the same domain name but a different path for your test site, you might need to change that to someting other than '/'. |
#5
|
|||
|
|||
Those settings were all at / or blank (on both versions).
I should add that the original forum is being accessed via a domain which points to the server, the other is accessed directly from the IP of the same server. These are set to point to different places on the server and I confirm that this is working as I can load scripts with the same name but different output via both URLs. I have moved the test site into a sub-folder in its original root and updated paths accordingly (including cookie path). The exact same issue happens again however - When I set the cookie path or any setting it seems for one site, despite retaining the correct data, the other site ceases to load. When I came to this setup there was originally the configuration I'm trying to achieve in place but it broke when I tried to run the upgrade scripts on the test site (this was v4.1.1 not 4.2), so it definitely has worked in this scenario before... It feels as though there's some clash somewhere, possibly some oddness with a cache? I'm trying from different browsers with all cache cleared, xcache is off on the server as I said... I'm very confused! --------------- Added [DATE]1354110188[/DATE] at [TIME]1354110188[/TIME] --------------- I've just noticed that when I first log on, both are accessible just fine most of the time. However, when I do, the Forum Name (bbtitle) set on the original site is being used on the cloned site's pages, even when the options and databases show different settings to each other. I can only assume that somehow the data is being mixed up, but it's very strange as it's only some data. I was able to change the text of a notice via the admin panel of the clone site for example, and the message remained as it should on the original site and remained changed on the clone site. Setting this did not cause either site to become unavailable, so it seems to happen when options are set. |
#6
|
||||
|
||||
So you have checked each database and each is pointing to a different URL? Have you checked your config.php files for each site to make sure they are each pointing to a different database?
|
#7
|
|||
|
|||
To be honest Lynne I'm totally confused now about this... When I go to options to change the bburl field, both correctly list the base URL respectively. When you change, it changes and saves on the correct forum (but breaks the other forum until you go and re-save the same field on that one).
I have checked the "options" entry of the "datastore" table for each database and the changes are reflected correctly in just the one place. However if I change the title of a forum it changes in both places and yet the last post date on the clone remains at 1 day old (which is correct as of when I cloned the data from the main database). I think there is something sticking in caches somewhere. To the best of my knowledge I've disabled xcache - I really don't know what else to do! |
#8
|
||||
|
||||
Did you check your config.php files to see if you are using any caching? You may need to set the Datastore prefix is different in both configs and also the cookie prefix.
|
#9
|
|||
|
|||
Strike that, I just did a reboot and it is working now... My guess is that it was indeed xcache not being disabled properly.
Thanks to you both for helping |
#10
|
||||
|
||||
Glad it's working now.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|