Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-28-2012, 12:46 AM
SToP_GAP SToP_GAP is offline
 
Join Date: May 2012
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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).
Reply With Quote
  #2  
Old 11-28-2012, 11:22 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try going to Settings > Options > Site Name / URL / Contact Details and making sure "Forum URL" is correct in each database.
Reply With Quote
  #3  
Old 11-28-2012, 11:40 AM
SToP_GAP SToP_GAP is offline
 
Join Date: May 2012
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)
Reply With Quote
  #4  
Old 11-28-2012, 11:51 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 '/'.
Reply With Quote
  #5  
Old 11-28-2012, 12:27 PM
SToP_GAP SToP_GAP is offline
 
Join Date: May 2012
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 11-28-2012, 04:18 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #7  
Old 11-28-2012, 04:40 PM
SToP_GAP SToP_GAP is offline
 
Join Date: May 2012
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #8  
Old 11-28-2012, 04:44 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 11-28-2012, 04:45 PM
SToP_GAP SToP_GAP is offline
 
Join Date: May 2012
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #10  
Old 11-28-2012, 04:46 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Glad it's working now.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:06 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04568 seconds
  • Memory Usage 2,250KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete