Fatal error Call to a member function getParam

help, i having this error at the end of installation:


Error
Database query error

Fatal error: Call to a member function getParam() on a non-object in C:\wamp\www\xxxxx\inc\db.inc.php on line 83

that line is this function :

82    function getParam( $param_name, $use_cache = true ) {
83    return $GLOBALS['MySQL']->getParam($param_name, $use_cache);
84    }

i installed on windows xp, tried both wampserver and xampp but still giving the same error.

tried search google and everything, but still cant help.

please help me, thanks.

Quote · 24 Jan 2010

Hello,

I also yesterday tried to install Dolphin 7 on my server and had exactly the same error. Is there really noone who has an idea what it can be or where we should search?

Thanks,

MAS69

Quote · 25 Jan 2010

Hello weike!


Seems $GLOBALS['MySQL'] wasn't created - seems inc/classes/BxDolDb.php wasn't included properly. Plz specify - what value was placed $dir['root'] directory if inc/header.inc.php file.


Regards

Quote · 25 Jan 2010

Hello LeonidS

$dir['root']               = "/srv/www/htdocs/web0/html/";

This is what I found in inc/header.inc.php file. To my eyes it looks o.k.

You wrote: "Seems $GLOBALS['MySQL'] wasn't created"  - Where can I check this?

Thank you

MAS69

Quote · 25 Jan 2010

I also receive email with:

<font color="red">safe_mode is On, disable it</font> <br /> Please go to the <br /> <a href="http://www.boonex.com/trac/dolphin/wiki/GenDolTShooter">Dolphin Troubleshooter</a> <br /> and solve the problem.

But phpinfo.php confirms the local value: safe_mode OFF

Is it possible that these two points have the same reason?

Thanks and best Regards,

MAS69

Quote · 25 Jan 2010

Hello MAS.

This error was sent from the crons. Crons use standalone version of PHP (so-called CLI mode), but this mode uses a different php.ini file.

To operate your crons correctly, create a php.ini file with all the required parameters in your home directory and specify this directory as an argument for php command in your crons. This way, php standalone will search for php.ini file in that specific directory.

For example your crons can look like this:

* * * * * cd /home/myuser/dolphin/periodic; /usr/local/bin/php -c /home/myuser/php.ini -f /home/myuser/dolphin/periodic/cron.php

The parameter -c indicates the location of the needful php.ini file.

Quote · 25 Jan 2010

You should receive the exact database error to your bug report email, please post full error from email in this thread.

Also you can print full error to the screen if you change the following line in inc\classes\BxDolDb.php file:

define( 'DB_FULL_DEBUG_MODE', false );

to the following:

define( 'DB_FULL_DEBUG_MODE', true );

Rules → http://www.boonex.com/terms
Quote · 9 Feb 2010

I had the same problem that you described.  I'm running XAMPP on my MacBook Pro to test Dolphin.  First, I turned on Full Debug in BxDolDb.php.

define( 'DB_FULL_DEBUG_MODE', true );

Then, I found the problem.  I added some code to BxDolDb.php based on the installation instructions but my XAMPP didn't like it.

/* Added code from installation documentation */

$this->res ("SET @@local.wait_timeout=9000;");
$this->res ("SET @@local.interactive_timeout=9000;");
$this->res ("SET @@local.connect_timeout=9000;");

So, I commented this code and I was able to complete the installation.

/* Added code from installation documentation */
/*
$this->res ("SET @@local.wait_timeout=9000;");
$this->res ("SET @@local.interactive_timeout=9000;");
$this->res ("SET @@local.connect_timeout=9000;");
*/

I hope this helps.

Quote · 11 Feb 2010

came across the same error and actually found out that somebody had edited the database connection string on the BxDoldb.php file, instead of in the header.inc.php file

 

interesting indeed. so you gotta follow the lines. that one took me a bit, because i sure wasnt looking for it. i turned on full_debug_mode, and i was like what the heck is that>

When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
Quote · 11 Nov 2010

Hey Dawg....

This error regarding line 83 "{function getParam( $param_name, $use_cache = true ) {" just started occurring since I upgrade 2 sites to 7.04.

 

Never saw this error from cron before ... what exactly did you find was the fix?

 

Karl

Shared Dolphin Hosting w/RMS
Quote · 12 Dec 2010

I've the same problem:

 

Fatal error: Call to a member function getParam() on a non-object in /home/verynaug/public_html/dolphin7/inc/db.inc.php on line 83

Please help.

 

Debug backtrace:
Array
(
    [1] => Array
        (
            [file] => /home/verynaug/public_html/dolphin7/inc/classes/BxDolDb.php
            [line] => 82
            [function] => error
            [class] => BxDolDb
            [type] => ->
            [object] => BxDolDb Object
                (
                    [error_checking] => 1
                    [error_message] => 
                    [host] => localhost
                    [port] => 
                    [socket] => 
                    [dbname] => verynaug_dolp7
                    [user] => *****
                    [password] => *****
                    [link] => 
                    [current_res] => 
                    [current_arr_type] => 1
                    [oParams] => 
                    [oDbCacheObject] => 
                    [_error] => 
                )

            [args] => Array
                (
                    [0] => Database connect failed
                    [1] => 1
                )

        )

    [2] => Array
        (
            [file] => /home/verynaug/public_html/dolphin7/inc/classes/BxDolDb.php
            [line] => 58
            [function] => connect
            [class] => BxDolDb
            [type] => ->
            [object] => BxDolDb Object
                (
                    [error_checking] => 1
                    [error_message] => 
                    [host] => localhost
                    [port] => 
                    [socket] => 
                    [dbname] => verynaug_dolp7
                    [user] => *****
                    [password] => *****
                    [link] => 
                    [current_res] => 
                    [current_arr_type] => 1
                    [oParams] => 
                    [oDbCacheObject] => 
                    [_error] => 
                )

            [args] => Array
                (
                )

        )

    [3] => Array
        (
            [file] => /home/verynaug/public_html/dolphin7/inc/db.inc.php
            [line] => 25
            [function] => BxDolDb
            [class] => BxDolDb
            [type] => ->
            [object] => BxDolDb Object
                (
                    [error_checking] => 1
                    [error_message] => 
                    [host] => localhost
                    [port] => 
                    [socket] => 
                    [dbname] => verynaug_dolp7
                    [user] => *****
                    [password] => *****
                    [link] => 
                    [current_res] => 
                    [current_arr_type] => 1
                    [oParams] => 
                    [oDbCacheObject] => 
                    [_error] => 
                )

            [args] => Array
                (
                )

        )

    [4] => Array
        (
            [file] => /home/verynaug/public_html/dolphin7/inc/security.inc.php
            [line] => 120
            [args] => Array
                (
                    [0] => /home/verynaug/public_html/dolphin7/inc/db.inc.php
                )

            [function] => require_once
        )

    [5] => Array
        (
            [file] => /home/verynaug/public_html/dolphin7/inc/security.inc.php
            [line] => 3
            [function] => bx_sys_security_get_impact_threshold
            [args] => Array
                (
                )

        )

    [6] => Array
        (
            [file] => /home/verynaug/public_html/dolphin7/inc/header.inc.php
            [line] => 173
            [args] => Array
                (
                    [0] => /home/verynaug/public_html/dolphin7/inc/security.inc.php
                )

            [function] => require_once
        )

    [7] => Array
        (
            [file] => /home/verynaug/public_html/dolphin7/install/index.php
            [line] => 455
            [args] => Array
                (
                    [0] => /home/verynaug/public_html/dolphin7/inc/header.inc.php
                )

            [function] => require_once
        )

)
Called script: /dolphin7/install/index.php
Request parameters:
Array
(
    [x] => 54
    [y] => 15
    [action] => step6
    [__utma] => 266488465.1350656924.1325518577.1325592932.1325625166.5
    [__utmz] => 266488465.1325518577.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)
    [bb_lastvisit] => 1323688736
    [bb_lastactivity] => 0
    [bb_userid] => 950
    [bb_password] => 7a9ec47246449083c086609b7679ab85
    [__utmb] => 266488465.2.10.1325625166
    [adminID] => misi
    [adminPassword] => a8382566ee20773e743ace0be3e2b6a8
    [__utmc] => 266488465
) 
Quote · 3 Jan 2012

is there a solution to this problem ? I'm having same error

 

got this error

 

<div style="border:2px solid red;padding:4px;width:600px;margin:0px auto;">
<div style="text-align:center;background-color:red;color:white;font-weight:bold;">Error</div>
<div style="text-align:center;">Database connect failed</div>
</div>

Fatal error: Call to a member function getParam() on a non-object in /home/uksc/public_html/club/inc/db.inc.php on line 83

Quote · 19 Jan 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.