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 10-10-2013, 09:05 PM
findingpeace's Avatar
findingpeace findingpeace is offline
 
Join Date: Nov 2011
Posts: 268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Test Environment Behaving Strangely

I made a mirror image of my forum (mysite.com) at mysite.com/test

I followed the instructions here:

http://www.vbulletin.com/vbcms/conte...ng-A-Test-Site

The problem is, every time I change something on mysite.com/test/admincp, the change also reflects on mysite.com - I first noticed this when I changed the cookie path to /test/, and suddenly everyone got kicked out of mysite.com!!

I tried changing the title to TEST, and mysite.com got a changed title to TEST!

What is going on? Fortunately tools.php helped me fix the main site, but I need a working test environment that I'm not afraid of I don't even understand how this is possible, because config.php is literally going to two different databases. So how is one updating settings for another?

Totally different cookie prefix, username, and password in config.php as well.

Thanks!
Reply With Quote
  #2  
Old 10-10-2013, 09:16 PM
Disco_Dave's Avatar
Disco_Dave Disco_Dave is offline
 
Join Date: May 2011
Location: Belfast
Posts: 586
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you changed your site URL in your ACP? This is the first thing I do when making a dev.
Reply With Quote
  #3  
Old 10-10-2013, 09:46 PM
findingpeace's Avatar
findingpeace findingpeace is offline
 
Join Date: Nov 2011
Posts: 268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Disco_Dave, thanks for responding! Yes, I did change the site URL and homepage - anything else that might need tweaking? I'm wondering if maybe my old cookie is still stuck on the test environment, so it still thinks I'm making changes to the real site? I don't know, so confused.
Reply With Quote
  #4  
Old 10-10-2013, 09:49 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've honestly never heard of that happening, and I can't imagine how that could happen. Only thing I can think of of is if, however unlikely, your databases still have the same name. (?)
Reply With Quote
  #5  
Old 10-10-2013, 09:58 PM
findingpeace's Avatar
findingpeace findingpeace is offline
 
Join Date: Nov 2011
Posts: 268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nope, two different ones - just checked in PHPMyAdmin! It makes NO sense with them pointing to different databases - one should not be impacting the other. Could it have anything to do with my .htaccess?
Reply With Quote
  #6  
Old 10-10-2013, 10:10 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try changing the cookie prefix in the config, by default it's bb and I bet the cookie is conflicting with your browser and causing this... I've never heard of it doing this except in cases like DJ mentioned where someone had the same database name and details in the test site config as the live site which of course is how they are showing the changes made on one site on the the other.

Still sounds odd though.
Reply With Quote
  #7  
Old 10-10-2013, 10:11 PM
findingpeace's Avatar
findingpeace findingpeace is offline
 
Join Date: Nov 2011
Posts: 268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi TheLastSuperman, thanks! Cookie prefix was already changed to bbqa So I'm not sure what the heck else could be causing this
Reply With Quote
  #8  
Old 10-10-2013, 10:21 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Maybe your config.php file?
Reply With Quote
  #9  
Old 10-10-2013, 11:22 PM
findingpeace's Avatar
findingpeace findingpeace is offline
 
Join Date: Nov 2011
Posts: 268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi ozzy, thanks! I can't find any other settings in config.php that I could change - I've switch the DB, username, password, and prefix
Reply With Quote
  #10  
Old 10-10-2013, 11:29 PM
RedTurtle's Avatar
RedTurtle RedTurtle is offline
 
Join Date: May 2006
Location: California
Posts: 205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you can do it, I'd recommend making your test site on a subdomain instead of on the same domain but in a sub-directory.

If your site is mysite.com, intead of doing mysite.com/test/ try doing test.mysite.com. You can add a subdomain easily in cPanel and then set it up there.

I've never had any issues doing it that way but I do remember running into some problems before when I would create it as a subdirectory on the main domain.
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 11:22 AM.


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.05114 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
  • (2)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