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

XF 1.3 Redirect problems vb3 in /forums/ to xenforo in root

Discussion in 'Installation, Upgrade, and Import Support' started by Mr Lucky, Jun 27, 2014.

  1. Mr Lucky

    Mr Lucky Well-Known Member

    I have done a test import, but have run into an issue.

    The vb3 forum was installed in the subdirectory /forums/. The new xenforo installation is in the root.

    I have vb3 redirct files in place, but as they are supposed to be in the same directory that the vb3 installation was in, i created a directory /forums/ and put showthread.php etc in that directory, and 301config.php in the root, with uncommented $fileDir = '/home/user/public_html';

    Of course there is a conflict as xenforo by default uses /forums/ in the URL path for forums - so when you click on the forum list you just go to a directory listing of the redirect scripts.

    How do i get around this please?
  2. Chris D

    Chris D XenForo Developer Staff Member

    Use Route Filters.

    Admin CP > Route Filters

    Create New

    Find Route: forums/
    Replace With: forum/
    (or whatever you prefer)


    That should sort it.
    Jake Bunce likes this.
  3. Mr Lucky

    Mr Lucky Well-Known Member

    Thanks, that resolves that issue, however redirects just go to a blank page. Any ideas why that could be
  4. Chris D

    Chris D XenForo Developer Staff Member

    I guess it's possible there might be some sort of clash between the original forums route and the scripts... but if it's just a blank page then that's usually a suppressed error. You'll want to look at your Apache error log for information about what that might be.
  5. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    A blank page is often a suppressed error. Try adding this line to the "301config.php" file to see if that reveals any specific error message on the blank page:

    ini_set('display_errors', true);
  6. Mr Lucky

    Mr Lucky Well-Known Member

    Thanks, but still a blank page
  7. Chris D

    Chris D XenForo Developer Staff Member

    You don't have an empty file by the name of index.html or index.php in that forums directory do you?

    And although I appreciate you answered Jake's question... If it is indeed a suppressed error, my advice of checking your Apache/PHP error logs would be useful. Your host or server person may need to help you with that.
  8. Mr Lucky

    Mr Lucky Well-Known Member

    No, only the vb3 redirect scripts are in there.

    I don't know how to check Apache/PHP error logs, I was going to do that tomorrow when I can ask my host tech support how to do that. (There are no errors showing in the xenforo ACP error log)
  9. Mr Lucky

    Mr Lucky Well-Known Member

    One thing I'm not sure about is whether I need to set anything here:

    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', 'import_log_x');
  10. Chris D

    Chris D XenForo Developer Staff Member

    After your import, did you archive your import data?
  11. Mr Lucky

    Mr Lucky Well-Known Member

    I can't remember, it was months ago. Is there a way to find out now?

    Whatever I think I will do another test import anyway.
  12. Chris D

    Chris D XenForo Developer Staff Member

    You could look in your database to see if you have a table called archived_import_log or similar. You may have given it the default name which is archived_import_log or you may have chosen your own name.

    Or, the xf_import_log table would still have stuff in it if it wasn't archived, in which case then that setting you posted above isn't needed. But if you DO have an import log table that you named yourself and you can identify it then you need to update the code as below (remove the // from the bottom line and change the log table name accordingly):
    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 datayou
    should provide the name of the archive table here
    Remove the
    // 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');
    \* ----------------------------------------------------------- */


Share This Page