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

  • Home
  • SEARCH
  • 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 8405947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:57:49+00:00 2026-06-09T22:57:49+00:00

I managed to run MongoDB on Codeigniter using Alex Bilbie` library. The operations go

  • 0

I managed to run MongoDB on Codeigniter using Alex Bilbie` library. The operations go well (connection, queries etc. ) but sometimes I get these PHP notices:

Message: Mongo::__construct() [mongo.--construct]: localhost:27017: pool get (0x4bfab20)

Filename: libraries/Mongo_db.php

Line Number: 1274
A PHP Error was encountered

Severity: Notice

Message: Mongo::__construct() [mongo.--construct]: localhost:27017: found in pool (0x4bfab20)

Filename: libraries/Mongo_db.php

Is there a way to get rid of these? or maybe hide them..as they don’t seem to mess up my pages in another way than splashing into the user’s screen.

EDIT

On a few pages though, I use the JQgrid and when the errors show up they mess up my HTTP response and render some messy data.

  • 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-09T22:57:50+00:00Added an answer on June 9, 2026 at 10:57 pm

    The specific notice messages here have been removed in the MongoDB PHP driver 1.2.11 or later (see PHP-431). Upgrading your MongoDB driver to the latest should remove the excessive notice logging.

    General notes on proper settings for Code Igniter logging in production still apply…

    The E_NOTICE level of error reporting is intended to warn you about possible bugs or typos. It is typically only used as a development setting rather than for production messages.

    The default error_reporting setting in PHP4 and PHP5 is actually set to ignore these:

    E_ALL & ~E_NOTICE
    

    The Code Igniter index.php has an application environment setting which normally shows all errors for development and suppresses error reporting for testing and production. You should set this appropriately:

    define('ENVIRONMENT', 'production');
    

    If you actually want to capture these messages for a production environment you should update the production settings in your index.php so that instead of error_reporting(0) you have:

    • error_reporting() set to appropriate level of detail
    • display_errors off
    • log_errors on
    • error_log path set

    For example, in index.php you could have:

    case 'production':
        error_reporting(E_ALL);
        ini_set('display_errors','Off');
        ini_set('log_errors','On');
        ini_set('error_log','/var/log/php5.log');
    break;
    

    That way the messages/notices will still be saved to the error_log if you want to review them, but they will not be shown to the end user.

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

Sidebar

Related Questions

Im using outproc session that is managed by aspnet_state. Sometimes I get run time
I am using sample from https://github.com/liveservices/LiveSDK but it isn't working. I managed to run
I have managed to run a basic rails app1 on App Engine using: http://gist.github.com/268192
I've used regex for ages but somehow I managed to never run into something
I managed to run the JQuery datepicker into JSF page. But as you can
I've managed to run this query using wamp. INSERT INTO guest (guestno,familyname) VALUES(NULL,'Damn'); INSERT
Following the guide mentionned here: Using MSTest with F# I managed to successfully run
I'm using WSO2 WS Framework and I managed to run example in which web
I managed to run cvs2git several months ago and created a git repository for
I have managed to run hadoop examples grep, wordcount... however I am finding some

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.