Sudden exception based on IP

Permalink
I installed Concrete5 today after being away from the community for some years.
Installation went well. I could play around.

I then login few hours later (same computer, different IP) and gets the attached error.
Any ideas?

1 Attachment

 
mnakalay replied on at Permalink Reply
mnakalay
Hello. Which version of Concrete5 did you install and on which version of PHP are you?
Tarraq replied on at Permalink Reply
c5 8.3.2 and PHP 7.0.6 CGI
Tarraq replied on at Permalink Reply
Forgot to mention:
I tried accessing from different IP-addresses.
Disabled and enabled cloudflare
Cleared session cookies.

Same error.
mnakalay replied on at Permalink Reply
mnakalay
For some reason, the script is unable to determine your IP address and throwing that error. Is there anything on your server or computer that could do that?

Do you know if you're using IPv6 or IPv4 address?
Tarraq replied on at Permalink Reply
Connecting via wifi, it's IPv4 and via phone hotspot it's IPv6.

I am using cloudflare, but has had no other problems using my hosting as upstream.
I can try to disable it and see if that helps.
Tarraq replied on at Permalink Reply
I have discovered that when turning off CloudFlare, it works.
So I guess it's in the interaction between CloudFlare and the hosting provider something goes wrong. However I have a hard time imagining that no other C5 users are on CloudFlare.
mnakalay replied on at Permalink Reply
mnakalay
The core team has a package to deal with cloudflare related session issue. Apparently the idea is cloudflare has to be set as a trusted proxy for c5.
So i guess you could try to set your proxy from the dashboard or maybe try the package that automates it.
https://github.com/concrete5/cloudflare_proxy...
I haven't tried it so no guarantee
Tarraq replied on at Permalink Reply
Alas that one doesn't seem to work.
I download it and install it.
Same error. :/
Gondwana replied on at Permalink Reply
Gondwana
Perhaps database-based session handling might work.
Gondwana replied on at Permalink Reply
Gondwana
All of my c5 sites use Cloudflare. However, since they're on shared hosting, the hosting company may have done whatever magic is necessary to make it seamless.
mnakalay replied on at Permalink Reply
mnakalay
I'm afraid that's the extent of my experience with CDNs and cloudflare.