XF 2.1 Redirection to root domain attempting to update from ACP (NOT .HTACCESS).

RallyFan

Well-known member
Hi all,

Wondering if someone has observed this behaviour before.

Kinda stems from this thread (https://xenforo.com/community/threa...-1-9-installed-but-acp-says-otherwise.179926/) but after spending about 2 hours scratching my head on the issue, I'm opening it to greater minds!

MY SETUP:
It's a test site at the moment. Wordpress frontend with Xenforo installed under it. Xenforo functions perfectly in everything else.
Wordpress is at https://mydomain.com
Xenforo is at https://mydomain.com/testforum/

MY PROBLEM:
When I attempt to "Upgrade Now" via Admin CP, I click that button, then Download and Upgrade at the next screen.
It sits there with "Waiting https://mydomain.com" in lower left, then says "Starting Upgrade" on screen.
It then diverts to the root of my site (https://mydomain.com).

TROUBLESHOOTING:
I have disabled .HTACCESS completely to avoid issues with Referrer Policy (which caused me redirect issues in the past), but the issue still remains.

Just wondering if others have seen this issue before and if so how they solved it. Ideally I'd prefer to be upgrading from inside ACP rather than manually (in particular for larger updates).

Thank you!
 
For those wondering I managed to get it resolved.

Ironically it WAS .htaccess, but not the .htaccess I expected.

Without going indepth into my server config publically, I renamed Xenforos .htaccess file and that was showing a 403 trying to update from a specific install directory.

Traced that back and noticed another .htaccess file in that directory, renamed it, and the upgrade went through fine.

So what was the issue you ask?
The issue appears to be due to security software and scripting restrictions on my server to prevent code execution in some directories. It was blocking access to that directory where Xenforo was trying to initiate an update from.

So my workaround is to manally rename that file before upgrading in future. Tis just doing exactly what it's meant to, which is nice. :)
 
Back
Top Bottom