Dolphin crashed - Error Database connect failed

Hello,

 

I just took over a site which uses Dolphin.  The host transferred it to my VPS (same host), and the following now shows on all the pages:

 

 

 

Debug backtrace:

Array

(

    [1] => Array

        (

            [file] => /home/domain/public_html/inc/classes/BxDolDb.php

            [line] => 68

            [function] => error

            [class] => BxDolDb

            [object] => BxDolDb Object

                (

                    [error_checking] => 1

                    [error_message] => 

                    [host] => localhost

                    [port] => 

                    [socket] => 

                    [dbname] => domain_daily

                    [user] => *****

                    [password] => *****

                    [link] => 

                    [current_res] => 

                    [current_arr_type] => 1

                    [oParams] => 

                    [oDbCacheObject] => 

                )

 

            [type] => ->

            [args] => Array

                (

                    [0] => Database connect failed

                    [1] => 1

                )

 

        )

 

    [2] => Array

        (

            [file] => /home/domain/public_html/inc/classes/BxDolDb.php

            [line] => 44

            [function] => connect

            [class] => BxDolDb

            [object] => BxDolDb Object

                (

                    [error_checking] => 1

                    [error_message] => 

                    [host] => localhost

                    [port] => 

                    [socket] => 

                    [dbname] => domain_daily

                    [user] => *****

                    [password] => *****

                    [link] => 

                    [current_res] => 

                    [current_arr_type] => 1

                    [oParams] => 

                    [oDbCacheObject] => 

                )

 

            [type] => ->

            [args] => Array

                (

                )

 

        )

 

    [3] => Array

        (

            [file] => /home/domain/public_html/inc/db.inc.php

            [line] => 12

            [function] => BxDolDb

            [class] => BxDolDb

            [object] => BxDolDb Object

                (

                    [error_checking] => 1

                    [error_message] => 

                    [host] => localhost

                    [port] => 

                    [socket] => 

                    [dbname] => domain_daily

                    [user] => *****

                    [password] => *****

                    [link] => 

                    [current_res] => 

                    [current_arr_type] => 1

                    [oParams] => 

                    [oDbCacheObject] => 

                )

 

            [type] => ->

            [args] => Array

                (

                )

 

        )

 

    [4] => Array

        (

            [file] => /home/domain/public_html/inc/classes/BxDolAlerts.php

            [line] => 7

            [args] => Array

                (

                    [0] => /home/domain/public_html/inc/db.inc.php

                )

 

            [function] => require_once

        )

 

    [5] => Array

        (

            [file] => /home/domain/public_html/inc/header.inc.php

            [line] => 167

            [args] => Array

                (

                    [0] => /home/domain/public_html/inc/classes/BxDolAlerts.php

                )

 

            [function] => require_once

        )

 

    [6] => Array

        (

            [file] => /home/domain/public_html/index.php

            [line] => 24

            [args] => Array

                (

                    [0] => /home/domain/public_html/inc/header.inc.php

                )

 

            [function] => require_once

        )

 

)

Called script: /index.php

Request parameters:

Array

(

)

 

Fatal error: Call to a member function getRow() on a non-object in /home/domain/public_html/inc/utils.inc.php on line 437

 

 

Can someone tell me how to fix?  The host is asking me for the database username and password, however, I do not know where that is located.  I checked the header php file, and it is not listed there either.  

Please help!

Quote · 3 Jan 2014

It is suppose to be in inc/header.inc.php

Look for something like this.

$db['host']                = 'localhost';
$db['sock']                = '';
$db['port']                = '';
$db['user']                = '******';
$db['passwd']              = '******';
$db['db']                  = '********';


If it's not in there, than that is why your getting the error.

https://www.deanbassett.com
Quote · 3 Jan 2014

I was able to get the login information, so it is listed there.  However, I still cannot load the site.  All I get is that error, database connection failed, Fatal error: Call to a member function getRow() on a non-object in /home/site/public_html/inc/utils.inc.php on line 437

Quote · 3 Jan 2014

In the error log, it also shows this:

 

/inc/utils.inc.php on line 43[03-Jan-2014 03:06:48 UTC] PHP Warning:  require_once(/home//public_html/templates/tmpl_uni/scripts/BxTemplConfig.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: Permission denied in /home//public_html/inc/params.inc.php on line 73

[03-Jan-2014 03:06:48 UTC] PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required '/home//public_html/templates/tmpl_uni/scripts/BxTemplConfig.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home//public_html/inc/params.inc.php on line 73

[03-Jan-2014 03:06:49 UTC] PHP Warning:  require_once(/home//public_html/templates/tmpl_uni/scripts/BxTemplConfig.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: Permission denied in /home//public_html/inc/params.inc.php on line 73

[03-Jan-2014 03:06:49 UTC] PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required '/home//public_html/templates/tmpl_uni/scripts/BxTemplConfig.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home//public_html/inc/params.inc.php on line 73

[03-Jan-2014 10:06:54 UTC] PHP Fatal error:  Call to a member function getRow() on a non-object in /home//public_html/inc/utils.inc.php on line 437

Quote · 3 Jan 2014

 

I was able to get the login information, so it is listed there.  However, I still cannot load the site.  All I get is that error, database connection failed, Fatal error: Call to a member function getRow() on a non-object in /home/site/public_html/inc/utils.inc.php on line 437


Database connect failed means that it could not connect to the database. So the login information is incorrect.

https://www.deanbassett.com
Quote · 3 Jan 2014

 

In the error log, it also shows this:

 

/inc/utils.inc.php on line 43[03-Jan-2014 03:06:48 UTC] PHP Warning:  require_once(/home//public_html/templates/tmpl_uni/scripts/BxTemplConfig.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: Permission denied in /home//public_html/inc/params.inc.php on line 73

[03-Jan-2014 03:06:48 UTC] PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required '/home//public_html/templates/tmpl_uni/scripts/BxTemplConfig.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home//public_html/inc/params.inc.php on line 73

[03-Jan-2014 03:06:49 UTC] PHP Warning:  require_once(/home//public_html/templates/tmpl_uni/scripts/BxTemplConfig.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: Permission denied in /home//public_html/inc/params.inc.php on line 73

[03-Jan-2014 03:06:49 UTC] PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required '/home//public_html/templates/tmpl_uni/scripts/BxTemplConfig.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home//public_html/inc/params.inc.php on line 73

[03-Jan-2014 10:06:54 UTC] PHP Fatal error:  Call to a member function getRow() on a non-object in /home//public_html/inc/utils.inc.php on line 437

 
Permissions on wrong on the sites folders. You will need to go through them all. When moving a site, permissions need to be re-checked and set properly based on if your running php in cgi mode or not. See document here on setting permissions. http://www.boonex.com/trac/dolphin/wiki/DetailedInstall The permission settings are in that install doc.

https://www.deanbassett.com
Quote · 3 Jan 2014

I reset the db user password in cpanel, it seemed to had fixed the issue.  Weird.

Quote · 3 Jan 2014

I am also thinking they might have moved the site over as root user or a different cpanel user.  So the files and folders might have the wrong ownership as well. 

https://dolphin-techs.com - Skype: Dolphin Techs
Quote · 3 Jan 2014

Do you know how the site was transferred?  There are several ways, tarball, rsync, secure copy, etc.  However, since a site was transferred to you, it is probably not set up for a user:group on your site.  Linux has set ways to handle when files are brought in from other servers as far as user:groups when they don't exist on the destination server but I would have to go out and read first on this. 

Geeks, making the world a better place
Quote · 4 Jan 2014

It was transferred via rsync.  The first time it did not take.  By the third time we were finally able to get it working...  Someone.  Now there is another issue.  I will open a new thread for it.

Quote · 6 Jan 2014

If you had that much trouble with the transfer using rsync I probably would look at redoing the site; tarball the original site making sure to preserve the permissions on the files.  Easy enough to rename the current site directory and then try again using the tarball.  When I moved our site from the VPS, I used secure copy; recently I moved a site using tar.

Geeks, making the world a better place
Quote · 6 Jan 2014
 
 
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.