• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.2 Redirection Script not working

51463

Well-known member
#1
I imported my forum from vbulletin 3.7 Everything went well. I didn't have any problems.

But one thing i don't remember is weather or not it archived my log. I don't remember this step.

How can i see if it logged. Where do i check and when i find it do i have to put that log file in my directory?

I used this

http://xenforo.com/community/resources/redirection-scripts-for-vbulletin-3-x.264/

Even tho i don't know if i archived it. I tried anyways.


I put those files in my directroy and edited the 1 file


// $fileDir = '/var/www/vhosts/mywebsite.com/public_html/mywebsite';


// define('IMPORT_LOG_TABLE', 'xf_import_log');



What about this? Do i put this to true or false

define('INCLUDE_PAGE_LINKS', false);
 

Jake Bunce

XenForo moderator
Staff member
#2
The import_log table name is usually one of these two. Try both:

xf_import_log
archived_import_log

Or view your db tables using phpmyadmin to look for the table.

You don't need to specify $fileDir if XF is in the same directory where vB was.

INCLUDE_PAGE_LINKS refers to page links in thread URLs. Only enable this if XF is set to show the same number of posts per page as vB:

Admin CP -> Home -> Options -> Messages
 

51463

Well-known member
#3
I looked into my phpmyadmin and i found both
xf_import_log
archived_import_log

I'm not sure if i had it in the same directory. At first i didn't.

My old forum was at www.mywebsite.com

i added installed a fresh copy of Xenforo under www.mywebsite.com/test

I imported and customized it and then after it was ready. I deleted vbulletin and moved all the xenforo files from test folder to www.mywebsite.com
 

51463

Well-known member
#6
I figured out the problem.

I had to remove these 2 little stupid slashes // at the start and left of $fileDir


// $fileDir = '/var/www/vhosts/mywebsite.com/public_html/mywebsite';


And for me it was archived_import_log not xf_import_log



define('IMPORT_LOG_TABLE', 'archived_import_log');



So for future reference mine worked with


# $fileDir = 'C:/inetpub/wwwroot/xenforo';
#
\* ----------------------------------------------------------- */

$fileDir = '/var/www/vhosts/mywebsite.com/public_html/mywebsite';

/* ----------------------------------------------------------- *\
This constant defines the table from which the import redirection
scripts will fetch their data. Normally they will use the table
'xf_import_log', but if you have archived your import data, you
should provide the name of the archive table here. Remove the
leading // and then replace 'import_log_x' with the name of your
archive table, as in the following examples:
#
# define('IMPORT_LOG_TABLE', 'my_import_log');
#
# define('IMPORT_LOG_TABLE', 'import_log_my_forums');
#
\* ----------------------------------------------------------- */

define('IMPORT_LOG_TABLE', 'archived_import_log');

/* ----------------------------------------------------------- *\
This constant controls whether or not to include page number links
in your redirects. In order for this to work, the number of posts
shown per page in vBulletin MUST match the number of posts shown per
page in XenForo, and the number of threads shown per page on