XF 1.3 Rebuild cache fails

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:
"Route admin.php/ could not be found."

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).
 
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
 
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).

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();
 
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.
 
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.
 
Back
Top Bottom