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 6732885
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:42:12+00:00 2026-05-26T10:42:12+00:00

This used to work but after some modifications by the other programmers it just

  • 0

This used to work but after some modifications by the other programmers it just fails to work. I have this code on my Bootstrap:

    protected function _initDatabase ()
{
    $resource = $this->getPluginResource('multidb');
    $resource->init();

    Zend_Registry::set('gtap', $resource->getDb('gtap'));
    Zend_Registry::set('phpbb', $resource->getDb('phpbb'));
}

Upon loading, this error shows up:

Fatal error: Call to a member function init() on a non-object in
/var/www/gamebowl3/application/Bootstrap.php on line 105

My php.ini has this entry on tis include_path:

   .:/usr/share/php:/etc/apache2/libraries

and the i can see that multidb.php is located in:

/etc/apache2/librarties/Zend/Application/Resource

Can somebody tell me what causes the error? Thanks!

  • 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-05-26T10:42:13+00:00Added an answer on May 26, 2026 at 10:42 am

    I just found out that the problem is in application.ini. Added a newly-introduced setting to the usual set of configs. Here it is:

    ;Gtap Database
    resources.multidb.gtap.adapter      = "PDO_MYSQL"
    resources.multidb.gtap.host         = "localhost"
    resources.multidb.gtap.username     = "root"
    resources.multidb.gtap.password     = "letmein1"
    resources.multidb.gtap.dbname       = "gtap"
    resources.multidb.gtap.isDefaultTableAdapter = true
    resources.multidb.gtap.default = true
    ;Forum Database
    resources.multidb.phpbb.adapter     = "PDO_MYSQL"
    resources.multidb.phpbb.host        = "localhost"
    resources.multidb.phpbb.username    = "root"
    resources.multidb.phpbb.password    = "letmein1"
    resources.multidb.phpbb.dbname      = "phpbb"
    resources.multidb.phpbb.isDefaultTableAdapter = false
    

    Also, make sure you have the latest Zend Framework Library and add it to PHP’s include path. That should fix everything up.

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

Sidebar

Related Questions

This code used to work but doesnt any more. i used a breakpoint, and
This piece of code used to work in MVC 1 but it does not
this code in my plugin used to work just fine: jQuery('#embedded_obj', context).get(0).getVersion(); and the
This used to work, but for some reason it doesn't anymore. I use a
I swear this used to work, but it's not in this case. I'm trying
...at least to me. This code used to work fine. I'm pretty sure nothing
This code used to return my local ip address as 192.xxx.x.xxx but now it
I've got some SQL that used to work with an older MySQL version, but
My code used to work, but I recently updated jQuery UI to 1.8 and
I have written some code that used strings to represent time such as 0620,

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.