Call to a member function getParameter() ERROR integration PHPBB with Wordpress

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
aster59
Registered User
Posts: 82
Joined: Sun Jun 26, 2016 1:47 pm
Location: United States

Call to a member function getParameter() ERROR integration PHPBB with Wordpress

Post by aster59 » Sun Mar 05, 2017 7:51 pm

Hi everyone. I am in a mess right now. I will give you the steps of what I did and hopefully its enough because I can't hand over every single piece of code on my site.

Here are the steps I followed. What did I do?

Step 1:
Take this code and paste it into header.php in Wordpress:

Code: Select all

define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : 'My-forum-path-here';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
Step 2:
I got an error where the make_clickable() function was already defined on the WP site. The forum keeps working!
PHPBB and WP must both have this function.
My solution? Just comment out the make_clickable() function in wp-includes/formatting.php. Whatever, I wrap my links anyway in WP.

Step 3:
Get this error when visiting main WP site, forum continues working:

Fatal error: Call to a member function getParameter() on null in /path/to/forum/----/phpbb/cache/driver/file.php on line 37

Is it the make_clickable function causing this ordeal, or did I solve that issue commenting things out and the step 3 is a new issue?
Edit: Step 2 probably isn't it since I commented both of them out and still got that error.

I have no idea what to do, or what other code you may need.
Website and forum worked fine before this,
the forum works fine all through this.
That error is from my WP site as stated - both on the same server.
The WP site still works if I remove the code above.
Thanks!

aster59
Registered User
Posts: 82
Joined: Sun Jun 26, 2016 1:47 pm
Location: United States

Re: Call to a member function getParameter() ERROR integration PHPBB with Wordpress

Post by aster59 » Sun Mar 05, 2017 8:50 pm

Edit: I decided to put it outside the header function and got a 503 error, whole site wouldn't load. What is up with this?

User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 50857
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Call to a member function getParameter() ERROR integration PHPBB with Wordpress

Post by stevemaury » Sun Mar 05, 2017 9:13 pm

We do not provide support for WP/phpBB integration.
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)

aster59
Registered User
Posts: 82
Joined: Sun Jun 26, 2016 1:47 pm
Location: United States

Re: Call to a member function getParameter() ERROR integration PHPBB with Wordpress

Post by aster59 » Sun Mar 05, 2017 9:49 pm

Do you happen to know what forum software makes integration possible?

User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 50857
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Call to a member function getParameter() ERROR integration PHPBB with Wordpress

Post by stevemaury » Sun Mar 05, 2017 11:14 pm

phpBB makes integration possible. It is just that we don't support its implementation. There was a product called WP-United, but I do not know its current status.
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)

phipfel
Registered User
Posts: 1
Joined: Thu Mar 09, 2017 7:36 pm

Re: Call to a member function getParameter() ERROR integration PHPBB with Wordpress

Post by phipfel » Thu Mar 09, 2017 7:42 pm

Hey aster,

did you solve the problem?

Phipfel

User avatar
MichaelTunnell
Registered User
Posts: 211
Joined: Fri Apr 29, 2005 9:46 pm
Location: don't rush me
Name: Michael Tunnell
Contact:

Re: Call to a member function getParameter() ERROR integration PHPBB with Wordpress

Post by MichaelTunnell » Sat Mar 11, 2017 2:54 am

So I believe I solved this problem but I don't use WordPress so you would need to do further testing to find out.

I received the same error on my CMS as you have on yours and I believe it is to do with the fact that you have a $_GET variable called after the loading of the session.

I was loading this:

Code: Select all

$_GET['example']
Once I changed the above to call before the session inclusion and turned it into

Code: Select all

$examplevar = $_GET['example'];
Then I just loaded $examplevar when I needed it and the issue was solved.

Post Reply

Return to “[3.2.x] Support Forum”