Cron questions

I´m receiving this email very often, can any tell me what  it means?

Error
Database connect failed

Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /home/xxx/public_html/inc/classes/BxDolDb.php on line 431

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

Can you tell me how can I fix it??

Thanks in advance.

Quote · 11 Feb 2010

something try to connect to your database, but this is not happening.
So look if your settings for the database in your inc/header.inc.php  is correct in first place.

Kids first
Quote · 11 Feb 2010

seemed like problems with connection to DB

open /inc/clases/BxDolDb.php

find line

define( 'DB_FULL_DEBUG_MODE', false );

and replace it with

define( 'DB_FULL_DEBUG_MODE', true );

You will be able to see error in debug mode - it can help to find out a problem

Regards

Artur

Quote · 11 Feb 2010

I would think that if his database settings in /inc/header.inc.php were incorrect, his site would not function at all. There is something you are clicking on your site that is causing this error. If you can. try to narrow down as to "what" you are doing at the time your are receiving this email. It is possible that you could have manually removed something but the database still thinks its there.


You can also clear your /cache (except the .htaccess file) and the /cache_public file in case there is some bad data stuck in there.

Chris

Nothing to see here
Quote · 11 Feb 2010

Thanks all for raplay, I just arrived home right now, so I did not tryed nothing, will do now, but I would like to say that whenever this happens I´m at work, so is not something I do.

Some times this email come with another one not allways, and not allways the same email. In this case is this one:

Database error in

Query:
SELECT `ID` FROM `sys_localization_languages` WHERE `Name`='es' LIMIT 1Mysql error: MySQL server has gone away

Found error in the file '/home/xxx/public_html/inc/classes/BxDolEmailTemplates.php' at line 31.
Called 'getOne' function with erroneous argument #0.


Debug backtrace:
Array
(
    [1] => Array
        (
            [file] => /home/xxx/public_html/inc/classes/BxDolDb.php
            [line] => 236
            [function] => error
            [class] => BxDolDb
            [object] => BxDolDb Object
                (
                    [error_checking] => 1
                    [host] => localhost
                    [port] =>

                    etc, etc, etc.....

Quote · 11 Feb 2010

MySQL has gone away, means your database is dying, its failing, please check with your hosting service provider and find out why your mysql is either being hammered which i presume you are on a shared environment, because a decent VPS or a dedicated of any sort "configured" correctly would not be doing this.

Regards,

DosDawg

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

Thank you every one for your replays, I will contact now with arvixe, becouse today I had received a lot of them, here the last one:

 

<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>
           <br />
<b>Warning</b>:  mysql_error(): supplied argument is not a valid MySQL-Link resource in <b>/home/xxxx/public_html/inc/classes/BxDolDb.php</b> on line <b>407</b><br />
<div><b>Mysql error:</b><br /></div><div style="overflow:scroll;height:300px;border:1px solid gray;"><b>Debug backtrace:</b><br /><pre>Array
(
   [1] => Array
       (
           [file] => /home/xxxx/public_html/inc/classes/BxDolDb.php
           [line] => 80
           [function] => error
           [class] => BxDolDb
           [type] => ->
           [object] => BxDolDb Object
               (
                   [error_checking] => 1
                   [host] => localhost
                   [port] =>
                   [socket] =>
                   [dbname] => xxxx
                   [user] => xxxx
                   [password] => xxxxxx
                   [link] =>
                   [current_res] =>
                   [current_arr_type] => 1
                   [oParams] =>
                   [_error] =>
               )

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

       )

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

           [args] => Array
               (
               )

       )

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

           [args] => Array
               (
               )

       )

   [4] => Array
       (
           [file] => /home/xxxxx/public_html/inc/classes/BxDolAlerts.php
           [line] => 20
           [args] => Array
               (
                   [0] => /home/xxxxxx/public_html/inc/db.inc.php
               )

           [function] => require_once
       )

   [5] => Array
       (
           [file] => /home/xxxxx/public_html/inc/header.inc.php
           [line] => 176
           [args] => Array
               (
                   [0] => /home/xxxxxx/public_html/inc/classes/BxDolAlerts.php
               )

           [function] => require_once
       )

   [6] => Array
       (
           [file] => /home/xxxxx/public_html/periodic/cron.php
           [line] => 23
           [args] => Array
               (
                   [0] => /home/xxxxx/public_html/inc/header.inc.php
               )

           [function] => require_once
       )

)
</pre>
<b>Called script:</b> <br /><b>Request parameters:</b><br /><pre>Array
(
   [/home/xxxxx/public_html/periodic/cron_php] =>
)
</pre>
</div>                </div>
           <br />
<b>Warning</b>:  mysql_error(): supplied argument is not a valid MySQL-Link resource in <b>/home/xxxxx/public_html/inc/classes/BxDolDb.php</b> on line <b>432</b><br />
<br />
<b>Fatal error</b>:  Call to a member function getParam() on a non-object in <b>/home/xxxxx/public_html/inc/db.inc.php</b> on line <b>83</b><br />

Quote · 13 Feb 2010

I still get this in my email daily.. it's really annoying.. I also get it on the site, random times at random points.. :/ I'm glad i'm not the only one.

I've been getting great support from Dolphin Geeks in trying to solve this issue.. but it seems never ending...

Quote · 4 Mar 2010
 
 
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.