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

XF 1.3 Rebuild cache fails

Discussion in 'Troubleshooting and Problems' started by zadow, Feb 24, 2015.

  1. zadow

    zadow Member

    Ive had a problem recently.
    After i rebuild cache it jump to a page where it says, "ERROR The requested page could not be found".
    No Server Error log and all file are fine with health check.
    I disable all the plugins.

    Then in admin debug mode the error comes a little clearer

    says
    Jump to error page but also displays.
    "Route admin.php/ could not be found."

    So i search this error but cant find much about this.
    Anyone had the same problem.

    im still at xenforo 1.3.3 and i dont wanna update if this error breaks something.
     
    Last edited: Feb 24, 2015
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    What web host? What kind of web server (Apache or nginx)?

    Does "admin.php" exist in your forum directory? It should.

    Also try reverting to the default .htaccess file in the XF zip file (called htaccess.txt, but should be renamed to .htaccess).
     
  3. Mike

    Mike XenForo Developer Staff Member

    This is likely down to you running into a server error and your server triggering a redirect which is masking the real error. Try placing the following in your .htaccess:
    Code:
    ErrorDocument 401 default
    ErrorDocument 403 default
    ErrorDocument 404 default
    ErrorDocument 405 default
    ErrorDocument 406 default
    ErrorDocument 500 default
    ErrorDocument 501 default
    ErrorDocument 503 default
     
  4. zadow

    zadow Member

    yes admin.php is in the root forum folder.
    i took the .htacess from latest update and still same.

    Code:
    The requested page could not be found.
    
    
    [QUOTE="Mike, post: 904036, member: 3"]This is likely down to you running into a server error and your server triggering a redirect which is masking the real error. Try placing the following in your .htaccess:
    [code]
    ErrorDocument 401 default
    ErrorDocument 403 default
    ErrorDocument 404 default
    ErrorDocument 405 default
    ErrorDocument 406 default
    ErrorDocument 500 default
    ErrorDocument 501 default
    ErrorDocument 503 default
    i had most of them before and still the same :(

    could it be that the code it runs inside admin.php just dosent work ?


    Code:
    <?php
    
    $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());
    $fc->run();
     
  5. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  6. zadow

    zadow Member

    i send ticket, ive updated to latest version without trouble, but rebuild of cache fails ones more.
     
  7. Brogan

    Brogan XenForo Moderator Staff Member

    Please check the ticket.

    It appears to be mod_security or some other security mechanism on the server, as the problem is actually due to a forbidden error (You don't have permission to access /admin.php on this server.), which is being masked.
     
  8. zadow

    zadow Member

    The ISP Said they implimented a security messure. and cache triggered it.
    They didnt say specific, what security messure, but now everything is working again.
    thx for quick ticket support.
     

Share This Page