PHPBB and CodeIgniter

Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Post Reply
Nowne
Registered User
Posts: 5
Joined: Thu Jul 26, 2018 9:02 am

PHPBB and CodeIgniter

Post by Nowne » Thu Jul 26, 2018 9:22 am

Hi,
I'm using the library phpBB3-library https://github.com/bcit-ci/CodeIgniter/ ... B3-library for bind my website in codeigniter with my forum.
It worked when phpbb was on 3.0.x but when I upgraded on 3.2.2 I've had an error Call to a member function getParameter() on null in /phpbb/cache/driver/file.php on line 37 and i don't find any solution.
I wondering if anyone had encountered this problem and how he had solved it.

Thx

User avatar
Ger
Recognised Extension Developer
Posts: 1665
Joined: Wed Jan 02, 2008 7:35 pm
Location: 192.168.1.100
Contact:

Re: PHPBB and CodeIgniter

Post by Ger » Thu Jul 26, 2018 9:42 am

Wow, that library is 9 years old. Designed for both a very old version of CodeIgniter as an old version of phpBB.
It *might* work if you globalize $phpbb_container as well in your constructor. Also, I think you don't need to include your config.php since it already gets included and parsed in common.php.

Those are only hunches though; I think it also depends on what CI version you are and how you use it exactly.
My extensions:
Simple CMS, Feed post bot, Avatar Resize, Modbreak, Magic OGP, Live topic update, Modern Quote, Quoted Where (GDPR) and Autoresponder.
Newest: FAQ manager for 3.2

Like my work? Buy me a coffee to keep it coming. :ugeek:
-Available for custom work-

Nowne
Registered User
Posts: 5
Joined: Thu Jul 26, 2018 9:02 am

Re: PHPBB and CodeIgniter

Post by Nowne » Thu Jul 26, 2018 10:01 am

It's an old project that I bring up to date ^^.When I've updated CodeIgniter to the last version the link between CI and PHPBB worked but when I've updated PHPBB everything exploded ^^.
This library was used to retrieve posts from PHPBB and display them on the CI part and for user login. There is only one connection point for both environments.

User avatar
Ger
Recognised Extension Developer
Posts: 1665
Joined: Wed Jan 02, 2008 7:35 pm
Location: 192.168.1.100
Contact:

Re: PHPBB and CodeIgniter

Post by Ger » Thu Jul 26, 2018 10:15 am

Yeah, phpBB 3.0 and 3.2 are quite different beasts. CI hasn't changed very much in the past couple of years.

Have you tried my suggestions?
My extensions:
Simple CMS, Feed post bot, Avatar Resize, Modbreak, Magic OGP, Live topic update, Modern Quote, Quoted Where (GDPR) and Autoresponder.
Newest: FAQ manager for 3.2

Like my work? Buy me a coffee to keep it coming. :ugeek:
-Available for custom work-

User avatar
GanstaZ
Registered User
Posts: 412
Joined: Wed Oct 11, 2017 10:29 pm
Location: Zverse

Re: PHPBB and CodeIgniter

Post by GanstaZ » Thu Jul 26, 2018 1:51 pm

You should try what was mentioned above by Ger.
"When answer lies in the question,.. question becomes redundant!"

Nowne
Registered User
Posts: 5
Joined: Thu Jul 26, 2018 9:02 am

Re: PHPBB and CodeIgniter

Post by Nowne » Fri Jul 27, 2018 12:04 pm

Yeah, it's solved my problem :). Thx a lot :)

Post Reply

Return to “phpBB Custom Coding”

Who is online

Users browsing this forum: No registered users and 5 guests