Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8783953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T20:57:34+00:00 2026-06-13T20:57:34+00:00

I have tried to integrate phpBB forum in Codeigniter project. I have placed the

  • 0

I have tried to integrate phpBB forum in Codeigniter project. I have placed the library provided by codeigniter(phpbb library) inside the projectName/application/libraries and placed the forum at the root of the project. The controller looks like this:

<?php
class Library_test extends CI_Controller
{
    function __construct()
    {
        parent::__construct();

        $this->load->database();
        $this->load->library('session');
        $this->load->library('phpbb_library');
    }

    function index()
    {
        if ($this->phpbb_library->isLoggedIn() === TRUE)
        {
            $userId = $this->phpbb_library->getUserInfo('user_id');
            $username = $this->phpbb_library->getUserInfo('username');

            echo "Welcome $username (" . ($this->phpbb_library->isAdministrator() === TRUE ? "administrator" : "user") . "), your ID is $userId and you are member of the following groups";

            foreach ($this->phpbb_library->getUserGroupMembership() as $group)
            {
                echo "$group <br />";
            }
        }
        else
        {
            echo "You are not logged-in.";
        }
    }
}
?>

I have set appropriate permission for the whole project (chmod -R 777 project/) and the files that the error says as “not found” are there and accessible. Please help me out.

Following is the error when I try to access the controller.

A PHP Error was encountered

Severity: Warning

Message: include(localhost/communityCI/community/common.php): failed to open stream: No such file or directory

Filename: libraries/phpbb.php

Line Number: 32

A PHP Error was encountered

Severity: Warning

Message: include(): Failed opening ‘localhost/communityCI/community/common.php’ for inclusion (include_path=’.:/usr/share/php:/usr/share/pear’)

Filename: libraries/phpbb.php

Line Number: 32

A PHP Error was encountered

Severity: Warning

Message: include(localhost/communityCI/community/config.php): failed to open stream: No such file or directory

Filename: libraries/phpbb.php

Line Number: 33

A PHP Error was encountered

Severity: Warning

Message: include(): Failed opening ‘localhost/communityCI/community/config.php’ for inclusion (include_path=’.:/usr/share/php:/usr/share/pear’)

Filename: libraries/phpbb.php

Line Number: 33

A PHP Error was encountered

Severity: Warning

Message: include(localhost/communityCI/community/includes/functions_user.php): failed to open stream: No such file or directory

Filename: libraries/phpbb.php

Line Number: 34

A PHP Error was encountered

Severity: Warning

Message: include(): Failed opening ‘localhost/communityCI/community/includes/functions_user.php’ for inclusion (include_path=’.:/usr/share/php:/usr/share/pear’)

Filename: libraries/phpbb.php

Line Number: 34

A PHP Error was encountered

Severity: Warning

Message: include(localhost/communityCI/community/includes/functions_display.php): failed to open stream: No such file or directory

Filename: libraries/phpbb.php

Line Number: 35

A PHP Error was encountered

Severity: Warning

Message: include(): Failed opening ‘localhost/communityCI/community/includes/functions_display.php’ for inclusion (include_path=’.:/usr/share/php:/usr/share/pear’)

Filename: libraries/phpbb.php

Line Number: 35

A PHP Error was encountered

Severity: Warning

Message: include(localhost/communityCI/community/includes/functions_privmsgs.php): failed to open stream: No such file or directory

Filename: libraries/phpbb.php

Line Number: 36

A PHP Error was encountered

Severity: Warning

Message: include(): Failed opening ‘localhost/communityCI/community/includes/functions_privmsgs.php’ for inclusion (include_path=’.:/usr/share/php:/usr/share/pear’)

Filename: libraries/phpbb.php

Line Number: 36

A PHP Error was encountered

Severity: Warning

Message: include(localhost/communityCI/community/includes/functions_posting.php): failed to open stream: No such file or directory

Filename: libraries/phpbb.php

Line Number: 37

A PHP Error was encountered

Severity: Warning

Message: include(): Failed opening ‘localhost/communityCI/community/includes/functions_posting.php’ for inclusion (include_path=’.:/usr/share/php:/usr/share/pear’)

Filename: libraries/phpbb.php

Line Number: 37

Fatal error: Call to a member function session_begin() on a non-object in /var/www/communityCI/application/libraries/phpbb.php on line 39

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T20:57:34+00:00Added an answer on June 13, 2026 at 8:57 pm

    include(localhost/communityCI/community/common.php)

    /var/www/communityCI/application/libraries/phpbb.php

    You shouldn’t include from a URL; it most likely won’t work (like you see here) and isn’t good practice.

    Do your include‘s with a relative or absolute path to the file:

    include('/var/www/communityCI/community/common.php');
    

    You also shouldn’t chmod 0777 the entire project…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have tried to integrate paypal sandbox with my project in asp.net. Redirection to
I am trying to integrate a tumblr blog into a website. I have tried
I have tried to integrate smile haarcascade (smileD_haarcascade_v0.05) in OpenCV but it only detect
We have to integrate our project with back end Oracle Platform. And this integration
I have tried to integrate the Picasa API on iPhone, compiles fine, but I
I have created an iPhone application. I want to integrate SoundCloud API with my
Have tried to find solutions for this and can't really come up with anything.
I have tried to go through the jungle (really, PayPal, why don't you weed
I have tried searching over the internet about this problem but not able to
I have tried this: #define format(f, ...) \ int size = strlen(f) + (sizeof((int[]){__VA_ARGS__})/sizeof(int))

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.