Simple Machines Community Forum

SMF Support => Server Performance and Configuration => Topic started by: petewadey on December 30, 2021, 11:20:06 AM

Title: Test Site
Post by: petewadey on December 30, 2021, 11:20:06 AM
I'm trying to set up a test site with the help of my host, HostPapa. They have created a clone of my forum, and prefixed the URL test.
I can access the test site, but can't login either as admin or a member. I used to have this setup before with no problems. The test site ran exactly as the live site, using the same logins.
Hostpapa have tried to solve the issue without success.
Any ideas what the problem might be?
Title: Re: Test Site
Post by: Aleksi "Lex" Kilpinen on December 30, 2021, 11:24:23 AM
Without knowing how your host set things up, it's a bit difficult to guess where they went wrong.
Basically, the procedure to create a test copy should be exactly the same as moving to a different host, so check this out for clues How do I move my SMF forum to a different host? (https://wiki.simplemachines.org/smf/How_do_I_move_my_SMF_board_to_a_different_host)
Title: Re: Test Site
Post by: petewadey on December 30, 2021, 11:32:30 AM
Quote from: Aleksi "Lex" Kilpinen on December 30, 2021, 11:24:23 AMWithout knowing how your host set things up, it's a bit difficult to guess where they went wrong.
Basically, the procedure to create a test copy should be exactly the same as moving to a different host, so check this out for clues How do I move my SMF forum to a different host? (https://wiki.simplemachines.org/smf/How_do_I_move_my_SMF_board_to_a_different_host)

Thanks. I'll start by suggesting they look at the link.
Title: Re: Test Site
Post by: petewadey on December 30, 2021, 01:11:58 PM
Just a thought. As I can access my test site test.bsac10c11c12.co.uk but can't login, there can't be much wrong with the installation? What might be stopping me from logging in? I'm getting this message
An Error Has Occurred!
Your session timed out while posting. Please go back and try again.
Title: Re: Test Site
Post by: Arantor on December 30, 2021, 02:35:54 PM
I assume no-one changed the name of the cookie for the test site. Change it either directly in Settings.php or with repair_settings.php to something different.
Title: Re: Test Site
Post by: petewadey on December 30, 2021, 02:44:05 PM
Quote from: Arantor on December 30, 2021, 02:35:54 PMI assume no-one changed the name of the cookie for the test site. Change it either directly in Settings.php or with repair_settings.php to something different.

I've asked HostPapa to check this out. Thanks
Title: Re: Test Site
Post by: petewadey on December 30, 2021, 02:57:29 PM
I have this in the Settings.php of the live site and the test site   $cookiename = 'SMFCookie463';
Title: Re: Test Site
Post by: Arantor on December 30, 2021, 03:00:17 PM
And in the main site, what is the equivalent value? If it is also SMFCookie463, you will need to change the test site. You can call it anything you like as long as it is different from the main site, e.g. SMFCookie463_Test
Title: Re: Test Site
Post by: Aleksi "Lex" Kilpinen on December 30, 2021, 03:00:35 PM
For the test site, change The 'SMFCookie463' part to something else - Just changing the number to something else random should do.
Edit: Ninja'd :P
Title: Re: Test Site
Post by: petewadey on December 30, 2021, 03:10:09 PM
Bingo! I'm in. Thank you so much for your help.  :)
Title: Re: Test Site
Post by: Kindred on December 30, 2021, 04:01:26 PM
You may also need to change the paths,  urls and database in settings.php
Title: Re: Test Site
Post by: petewadey on December 30, 2021, 04:03:44 PM
Quote from: Kindred on December 30, 2021, 04:01:26 PMYou may also need to change the paths,  urls and database in settings.php

How would I know if I need to do that? Should I be testing something?
Title: Re: Test Site
Post by: Illori on December 30, 2021, 04:05:51 PM
What is repair_settings.php? (https://wiki.simplemachines.org/smf/Repair_settings.php)

Run this
Title: Re: Test Site
Post by: petewadey on December 30, 2021, 04:25:26 PM
I will certainly do that when I have time to concentrate. Thanks