It is currently 20 Feb 2018, 22:54

Anything Goesphpbb and Ezoic can't log in to forum (Showcase | Slideshow)

Anything, almost anything at all
(even advertisement if it's decent, spammers will be banned)
Post Reply
User avatar

View: Showcase | Slideshow
Topic Posts: 1/1
Posts: 2162
Joined: 26 Sep 2016, 00:16
Cash on hand: 7,946.37 GLP
Bank: 51,356.25 GLP
Gender: Guy
Location: Victoria, BC
Operating System: Windows
GIMP Version: 2.8.22
My Personal Blog
My FineArtAmerica
x 1207
x 258

phpbb and Ezoic can't log in to forum

Post#1 by tim » 16 Nov 2016, 18:17

After using's DNS integration by changing DNS to point to Ezoic's DNS'es, I couldn't log in to phpbb forum hosted on Hostpapa.
Ezoic helped me by mentioning about the X forwarded header.
But I didn't know how to use the X forwarded header.
So I did some research on the Internet and I was able to get everything working as normal on phpBB forum again.
Here's the change that i did.
Inside /includes/startup.php
find the code

Code: Select all

if (!defined('IN_PHPBB'))
Right after that, add this code to overwrite $_SERVER['REMOTE_ADDR'] with $_SERVER['HTTP_X_FORWARDED_FOR']
so if X_FORWARDED_FOR is defined, use it.

Code: Select all

     $_SERVER['REMOTE_ADDR'] = htmlspecialchars((string) $_SERVER['HTTP_X_FORWARDED_FOR']);
And now my phpBB forum works as usual, I tested by logging in, posted a message, logging out, logging in, deleted a test user of mine, re-registered the test user and everything seems to work as usual. Thanks for Ezoic for mentioning about the X_FORWARDED_FOR otherwise I wouldn't have a clue as how to fix my phpBB forum as it prevented any user from logging in.
0 x

aka Tin

Registered members enjoy ads-free content
Post Reply

Last 20 Members Who Visited This Topic

  • Similar Topics
    Last post
• Featuring Members' Works (Image Attachments Only) •
1: dinasset
2: animicule
3: Ella
5: tim
6: gnerd
7: Issabella

Who is online

Users browsing this forum: No registered users and 1 guest