XF 2.1 help making a mirror please

🔥Iggy🔥

Well-known member
hello,
first time doing this bit as well....couple things confusing me...

ive read the xen1 guide, tho im sure some things could have changed...didnt see a xen2 guide for this anywhere?

ive cloned files and db....then tried to access admincp.php by the test url...

"An unexpected error occurred. Please try again later."

looked into the DB to see if i could change the url in there but its these blob.bin whatever entries i dont know anything about...

is there perhaps a simple step im missing for xen2?

thank you
 
This guide is still the same for XF1 and XF2 installations:


There should be no need to change any URL in the database to access admin.php. Look through the steps again in the guide to check if you have done everything correctly. If you still have issues, post in more detail about exactly what you did, what your test site environment setup is etc.
 
ok, ive looked it over again.....the last 4/5 steps do not seem to apply to xen2 unfortunately but i hadnt added the code to config.php so i did that....

for one difference to note, i am doing this @ a subdomain instead of a subdirectory.....not sure if there is any special changes i would need to make for that...

still getting the same result....

steps to here its been pretty simple....made a file zip and db backup.....unzipped and restored those in the proper places....pasted in the config code from the instructions... pretty standard to the tutorial....

test enviro is arch/nginx/php7.2/mariaDB/memcached

thanks for the help, its a basic one everyone needs to know how to do ;P
 
the last 4/5 steps do not seem to apply to xen2
Which steps don't you think apply to XF2? They all look like they apply to me.

for one difference to note, i am doing this @ a subdomain instead of a subdirectory.....not sure if there is any special changes i would need to make for that...
Nope, I host my test forum on a subdomain.

made a file zip and db backup
How did you make your db backup? Was it mysqldump?

est enviro is arch/nginx/php7.2/mariaDB/memcached
Just a thought but maybe try disabling memcached to see if it all works first before enabling this?
 
these steps i think i was a bit confused if they were referring to the old config.php or admin options, but seems its meant to say about admin options...which i cannot access :(

  • Update Options -> Basic Board Information -> Board Title to something like Test MySite
  • Update Options -> Basic Board Information -> Board URL to match the new test URL
or this last one im still not sure im understanding:

  • If you are using a cache on your live site, update the new /test directory config.php file with a different cache prefix


is that meant to say, to add a custom line to config.php? if so im not sure exactly what that would look like...


for DB backup yes i used mysqldump from cli....

am i supposed to edit any details into that cookie domain path or something? i only pasted the code in config.php as is....unclear if any edits are needed...
 
is that meant to say, to add a custom line to config.php? if so im not sure exactly what that would look like...
That's saying to update the config.php file (in the src folder) on the test site to add a different cache prefix to the one you are using on your live site. If you are using Memcached then on your live site you should have set up as detailed here https://xenforo.com/xf2-docs/manual/cache/#memcached. In addition, you'd add this $config['cache']['namespace'] = 'your_prefix';. This is the prefix you'd change to be different on your test site.

You should add the code about cookies too for your test site (no need for the live site) so that there's no cookie conflict issues. It's fine to leave it as it is.
 
oh ok....so thats not just automatically configured in hahaha ;P

hadnt got around to considering that yet as we havent done any optimization work yet, but i guess being clear memcached is configured on the server but not to xenforo yet....im sure it must be a simple thing, hmm...
 
i guess im still stuck on this.....i disabled listeners in config.php...i re-enabled mail function as i realized 2fa was enabled so perhaps that was the error but no i still cannot get past login....i still kind of think it is 2fa related somehow....considering on the front end a test user can login but not admin...

anything i can try besides toggling 2fa and making clean file/db set?
 
i agree....it should work for sure....

but considering it isnt...and there is oddly no error logs and a generic "server error" message...

what could be done? 2fa isnt even activated on the last try...idk what sense this makes :(
 
is there a way i can verify tfa is fully disabled in the database?

that seems near the root and considering i turned it off i have no idea why its making issue here....

we have even added these lines to config and fail fail

$config['enableTfa'] = false;

$config['enableListeners'] = false;
 
Back
Top Bottom