vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   [vbcron] Automatic database backup [v1.3] (https://vborg.vbsupport.ru/showthread.php?t=62149)

cLord 04-30-2004 02:07 AM

Quote:

Automatic Database Back-up


Fatal error: Call to a member function on a non-object in /home/website/public_html/includes/functions_cron.php on line 198

Fatal error: Call to undefined function: query() in /home/website/public_html/includes/functions.php on line 500
Can someone please help?
I get this message when I run the script manually, (the backup is made!)
When I try to run the script automated nothing happens! (no backup is made)

cLord :(

Logikos 04-30-2004 08:27 AM

Seems im getting the same error as some others.

Quote:

Automatic Database Back-up (hack)


Fatal error: Call to a member function on a non-object in /home/vbhacks/public_html/forum/includes/functions_cron.php on line 198

Fatal error: Call to undefined function: query() in /home/vbhacks/public_html/forum/includes/functions.php on line 500
I open includes/functions_cron.php on line 198 and this is what i see.

PHP Code:

187: function log_cron_action($description$nextitem)
188: {
189:         global $DB_site;
190:         
191:         if (defined('ECHO_CRON_LOG'))
192:         {
193:                 echo "<p>$description</p>";
194:         }
195
196:         if ($nextitem['loglevel'])
197:         {
198:                 $DB_site->query("
199:                         INSERT INTO " 
TABLE_PREFIX "cronlog 
200:                                 (cronid, dateline, description)
201:                         VALUES
202                                 (
$nextitem[cronid], " TIMENOW ", '" addslashes($description) . "')
203:                "
);
204:         }
205: } 

Then I open includes/functions.php on line 500 and this is what i see.
PHP Code:

493:        if (is_array($shutdownqueries))
494:        {
495:                $DB_site->reporterror 0;
496:                foreach($shutdownqueries AS $query)
497:                {
498:                        if (!empty($query))
499:                        {
500:                                $DB_site->query($query);
501:                        }
502:                }
503:                $DB_site->reporterror 1;
504:        } 

Any ideas?

nektar 05-01-2004 05:37 PM

I have the same problem running 3.0.1

PHP Code:

 Fatal errorCall to a member function on a non-object in /var/www/html/forum/includes/functions_cron.php on line 198

Fatal error
Call to undefined function: query() in /var/www/html/forum/includes/functions.php on line 500 

However, I can see the tar.gz file in the backup folder, which means that sqldump finished successfully? As i undertand it, an sql file is produced and then compressing takes place. Am I right?

Thank you.

nektar 05-01-2004 05:41 PM

Removed the compression option but same error.

How can I check that I have full backup?

nektar 05-01-2004 05:45 PM

GOT IT!!!!

I disabled Log Entries in the Schedule Task and now it works. ;)


Logikos 05-02-2004 02:37 PM

Quote:

Originally Posted by nektar
GOT IT!!!!

I disabled Log Entries in the Schedule Task and now it works. ;)

I would like to be able to have log entries enabled

cLord 05-02-2004 03:43 PM

Quote:

Originally Posted by Live Wire
I would like to be able to have log entries enabled

You're not the only one! ;)

Mr. HillBilly 05-06-2004 02:45 AM

*sigh* This isn't even working. It was before then it just stopped.

All it says is back up done. but it just shows the .tar.gz file in the folder with nothing in it.

Brad 05-06-2004 08:34 AM

Version 1.3.1 was released and fixes all bugs in 1.3, please let me know how it gose for you.

Onkel_Tom 05-06-2004 09:18 AM

Hi Brad.loo,

You forget this line in your script
define('DUMP_DATE', $file_date);


All times are GMT. The time now is 05:48 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02369 seconds
  • Memory Usage 1,761KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete