vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Administrative and Maintenance Tools - vBulletin Cron Based Database Backup (https://vborg.vbsupport.ru/showthread.php?t=231481)

Disco_Dave 11-26-2013 10:38 AM

Getting this error now after the update:


PHP Code:

Warning: Function set_magic_quotes_runtime() is deprecated in ..../includes/cron/cronbackup.php on line 13

Parse error
syntax errorunexpected T_IF in /home3/nirc/public_html/forums/includes/mysqlbackup.php on line 597 


Paul M 11-26-2013 11:06 AM

Ok. Fixed both.

Magic runtime quotes is another deprecated function I wasnt aware of, added a php version check for that as well.

The syntax error was a semi-colon that mysteriously went missing, which I have now put back.


This version actually contains some experimental code that attempts to do backups via mysqldump (rather than all via php).

If you want to try that feature, you must edit a line in the mysqlbackup.php file.

PHP Code:

    var $DTYPE 'php'// php or mysql 


Disco_Dave 11-26-2013 11:12 AM

Quote:

Originally Posted by Paul M (Post 2463820)
Ok. Fixed both.

Magic runtime quotes is another deprecated function I wasnt aware of, added a php version check for that as well.

The syntax error was a semi-colon that mysteriously went missing, which I have now put back.


This version actually contains some experimental code that attempts to do backups via mysqldump (rather than all via php).

If you want to try that feature, you must edit a line in the mysqlbackup.php file.

PHP Code:

    var $DTYPE 'php'// php or mysql 



I'll give it a shot now, for adding that code.

Cheers


Edit I can confirm that this
PHP Code:

    var $DTYPE 'php'// php or mysql 

works for both php and mysql :D


Best mod on here!

Meestor_X 01-29-2014 06:19 PM

Ok, I know this isn't your problem, but I could use some advice on how to fix an issue with the automatic backups not completing.
Occasionally, the backup completes. If I try it a number of times, it will complete maybe 1 in 10 times. When it doesn't complete, the backup gets as far as the "user" table and then stops.
I've tried all the settings in the options, like locking, block processing, separate vs single table backups, etc. but nothing seems to fix it.

Just looking for some advice on what setting I might need to change in php or MySQL to stop it from timing out? (I assume it's timing out - I have no access to any logs on the shared server)

charlesr 01-30-2014 08:02 AM

There is probably someone who knows what logs to look in to see the problem, but that's not me.... Meanwhile:

Is the user table ok? Try repairing it. You may need to stop mysql first for a successful repair on the user table:

----------
To repair all the tables in the database in centos we stopped it first.
# /etc/init.d/mysqld stop
Then navigated to the database files:
# cd /var/lib/mysql/[databasename]/
Then run the following command:
# myisamchk -r *.MYI
And once complete restart MySQL:
# /etc/init.d/mysqld start
-----------

If it's ok, then do you have a busy forum / is your server powerful enough? I had some odd behaviour until I upgraded and then everything magically worked perfectly.

Meestor_X 01-30-2014 02:12 PM

Thank you for your reply.
As I mentioned, I'm on a shared server. No SSH, logs or anything useful available.
I can add a php.ini file to make changes and that's about it.
I've repaired the tables using the vBulletin admincp, makes no difference.

I'm hoping there would be a timeout setting that affects whether the backup completes as it's pretty random. I just don't know enough about all the php and mySQL settings.

charlesr 01-31-2014 08:02 AM

If you view php info in vbulletin maintenance area, what are all the timeouts set at?

Paul M 02-01-2014 09:30 PM

Most likely php timing out, but really hard to say.

If you use the latest version, you could try the experimental mysql backup method - see post #952

RichieBoy67 04-01-2014 05:43 PM

This has always worked well for me and I've used it on a few sites for a long, long time. Thanks Paul! one of the most useful mods here.

BBNZowner 04-04-2014 10:01 PM

Figured I should install this now, I keep forgetting to do regular back ups :P


All times are GMT. The time now is 01:58 AM.

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.02279 seconds
  • Memory Usage 1,746KB
  • 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
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (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