XF 2.2 Error importing a language

soloarquitectura

Well-known member
Tested with Chrome & Edge.

Import a language -> Import from uploaded XML file -> Child of language: (No parent) -> Import:
Oops! We ran into some problems.
This action could not be completed because you are no longer logged in. Please reload the page.

Of course I am still logged in and can continue to do other things in the control panel.

Tested with languages from version 2.1 and even exporting English (US) from version 2.2 and re-importing it as new language.
 

Chris D

XenForo developer
Staff member
I think we've seen issues similar to this if post_max_size is too low, though I suspect it would have to be very low if it's falling over on a language import.
 

soloarquitectura

Well-known member
This is not something I can reproduce so suspect it could be something specific to your install.
That's right.
And... solved!
It's a Cloudflare issue.
In case it happens to someone else, simply add the line in config.php:

if (isset($_SERVER['HTTP_CF_CONNECTING_IP'])) { $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP']; }

Something I forgot to do, as it is a test installation.
 

Chris D

XenForo developer
Staff member
That shouldn't really be happening as XF tries to handle that automatically. Do you have any indication as to what your REMOTE_ADDR was coming out as before you made this change?
 
Top