vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Test Environment Behaving Strangely (https://vborg.vbsupport.ru/showthread.php?t=303235)

findingpeace 10-10-2013 09:05 PM

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!

Disco_Dave 10-10-2013 09:16 PM

Have you changed your site URL in your ACP? This is the first thing I do when making a dev.

findingpeace 10-10-2013 09:46 PM

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.

Digital Jedi 10-10-2013 09:49 PM

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. (?)

findingpeace 10-10-2013 09:58 PM

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?

TheLastSuperman 10-10-2013 10:10 PM

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.

findingpeace 10-10-2013 10:11 PM

Hi TheLastSuperman, thanks! Cookie prefix was already changed to bbqa :( So I'm not sure what the heck else could be causing this

ozzy47 10-10-2013 10:21 PM

Maybe your config.php file?

findingpeace 10-10-2013 11:22 PM

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

RedTurtle 10-10-2013 11:29 PM

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.


All times are GMT. The time now is 05:24 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.01130 seconds
  • Memory Usage 1,728KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete