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

XF 1.1 Must be in debug mode

Discussion in 'Troubleshooting and Problems' started by ChemicalKicks, Oct 6, 2011.

  1. ChemicalKicks

    ChemicalKicks Well-Known Member

    Ran the upgrade on my test install and I'm just getting a blank page when I visit the main URL, when I try to access Admin I get "Must be in debug mode" I'm guessing I've missed something obvious.

  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    That error message is part of the admindav.php file in the forum root. Did you rename that file to admin.php or something? Try uploading the original files.
    ChemicalKicks likes this.
  3. ChemicalKicks

    ChemicalKicks Well-Known Member

    Hey Jake,

    That's a bog standard install, I haven't renamed any files. :)
  4. ChemicalKicks

    ChemicalKicks Well-Known Member

    That file "admindav" is empty though.
  5. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member


    What is in the admin.php file?
    ChemicalKicks likes this.
  6. ChemicalKicks

    ChemicalKicks Well-Known Member


    Right the admindav file being empty seems to have been a failed unzipping, I went back and retrieved the proper one from the zip and replaced it on the test board.

    The contents of the admin.php is


    $fileDir dirname(__FILE__);

    $fileDir '/library/XenForo/Autoloader.php');
    XenForo_Autoloader::getInstance()->setupAutoloader($fileDir '/library');

    XenForo_Application::initialize($fileDir '/library'$fileDir);

    if (!
    'Must be in debug mode.';

    $dependencies = new XenForo_Dependencies_Admin();

    if (!
    // this is a hack to not require the mbstring functions for *1* function call
    function mb_detect_encoding()

    $fileDir '/library/Sabre/Sabre.autoload.php');

    $request = new Zend_Controller_Request_Http();
    $baseUrl $request->getBaseUrl();

    $auth = new Sabre_HTTP_BasicAuth();
    $auth->setRealm('XenForo Admin CP WebDAV');
    $authData $auth->getUserPass();

    /* @var $userModel XenForo_Model_User */
    $userModel XenForo_Model::create('XenForo_Model_User');
    $authValid false;

    $userId $userModel->validateAuthentication($authData[0], $authData[1]);
    if (
    $visitor XenForo_Visitor::setup($userId);
        if (
    $authValid true;

    if (!
    "Authentication required";

    $root = new XenForo_SabreDav_RootDirectory();
    $tree = new Sabre_DAV_ObjectTree($root);

    $server = new Sabre_DAV_Server($tree);
    $server->setBaseUri($baseUrl '/');

    // implement but ignore locking, in attempt to allow finder, etc to do writes
    $lockBackend = new XenForo_SabreDav_LocksNoOp();
    $lockPlugin = new Sabre_DAV_Locks_Plugin($lockBackend);

  7. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Your admin.php file has the contents of admindav.php. This is the default admin.php file in 1.1.0b1:

    $startTime = microtime(true);
    $fileDir = dirname(__FILE__);
    require($fileDir . '/library/XenForo/Autoloader.php');
    XenForo_Autoloader::getInstance()->setupAutoloader($fileDir . '/library');
    XenForo_Application::initialize($fileDir . '/library', $fileDir);
    XenForo_Application::set('page_start_time', $startTime);
    $fc = new XenForo_FrontController(new XenForo_Dependencies_Admin());
    Dodgeboard and ChemicalKicks like this.
  8. ChemicalKicks

    ChemicalKicks Well-Known Member

    ha I think I've discovered the problem.... Windows. I used the built in unzipping thing and not the usual winrar, I've unzipped now using winrar and am overwriting all the files on the server. I'll run through the install again. :)
  9. kkm323

    kkm323 Well-Known Member

    Dodgeboard likes this.
  10. ChemicalKicks

    ChemicalKicks Well-Known Member


    I'm laughing but it's true!

    Cheers Jake

Share This Page