CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Backup Data problem
Pages: [1]

Author Topic: Backup Data problem  (Read 1251 times)

jlhurd

  • Guest
Backup Data problem
July 09, 2007, 01:08:32 pm
I'm having problems backing up my data.  I use the standard "Backup Data" function, however, the file that it outputs gives me 1kb on junk information - nothing is actually backed up.  Has anyone else had this problem / know what is going on?

I have attacked the file, renamed with a .txt extension.

I am running CiviCRM 1.7.9821 on PHP 5.2 with MySQL 5.0.41

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Backup Data problem
July 09, 2007, 03:05:04 pm
1. what are the contents of the junk file? (update: just saw the attacment and it seems like a 1 character file)

2. did u set the MYSQL path in your settings file: (i'm pretty sure u did and it found the file)

define( 'CIVICRM_MYSQL_PATH', '/opt/local/bin/' );

3. You might also want to try debugging the code at:

CRM/Core/BAO/DomainDump.php (function backupData) and seeing what the code does etc. Adding a print statement to see the current output and an exit will probably help you detect and debug the issue quickly

lobo


lobo
« Last Edit: July 09, 2007, 03:14:05 pm by Donald Lobo »
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

htd8097

  • Guest
Re: Backup Data problem
July 11, 2007, 01:40:07 pm
I had a similar problem with civicrm's backup data utility. Whenever I used it, my browser would try to load up this huge file containing weird characters. It never gave me an option to download a .gz file or a .txt file. The error I received was:

Cannot modify header information - headers already sent by (output started at /var/www/sites/all/modules/civicrm/CRM/Core/BAO/DomainDump.php:2) in /var/www/sites/all/modules/civicrm/CRM/Core/BAO/DomainDump.php on line 129.

I resolved this problem by getting rid of the extra blank line before '<?php' and after the ending '?>' inside 'CRM/Core/BAO/DomainDump.php'. After that, all was well. Hope this helps. :)

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Backup Data problem
July 11, 2007, 03:21:48 pm

i've fixed this file in v1.8. The next alpha release will have the fix

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Backup Data problem

This forum was archived on 2017-11-26.