Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
..../sites/all/modules/backup_migrate/backup_migrate.module on line 918
backups are incomplete and not following the schedule
drupal 6.10
poormanscron 6.x 1.0
Comments
Comment #1
ronan CreditAttribution: ronan commentedThis should have been fixed by #367897: PHP Fatal error: Call to undefined function file_scan_directory() in modules/backup_migrate/backup_migrate.module on line 122. Please download the latest 6.x-1.x-dev and confirm that it is fixed. If it works for you I'll roll a new stable release with this fix.
Thanks
Ronan
Comment #2
ronan CreditAttribution: ronan commentedforgot to change status. reopen if that fix did not work.
R
Comment #4
kenorb CreditAttribution: kenorb commented#30371: Cannot upload files with PHP safe mode
Comment #5
kenorb CreditAttribution: kenorb commentedI've got the latest and I've got:
Fatal error: Call to undefined function file_directory_temp() in backup_migrate/includes/files.inc on line 35
URL: node/%0
Comment #6
ronan CreditAttribution: ronan commentedI can't reproduce this with any of the configurations I can think of. Can you give me any more clues as to what might be going on in your setup?
Thanks
R
Comment #7
kenorb CreditAttribution: kenorb commentedIt happen for anonymous on pages which has been cached.
Drupal executing: DRUPAL_BOOTSTRAP_LATE_PAGE_CACHE case,
after that getting cache page drupal_page_cache_header($cache);
and then do: bootstrap_invoke_all('exit');
In this case, file.inc is not included, so that function is not defined when Drupal is not fully executed.
Backtrace:
_drupal_bootstrap -> bootstrap_invoke_all('exit') -> backup_migrate_exit -> backup_migrate_cleanup -> _backup_migrate_temp_files_delete -> file_directory_temp!
It happen on each cached page.
Comment #8
ronan CreditAttribution: ronan commentedThat's really helpful debugging info, I'll try and reproduce it now and let you know what I find.
Comment #9
ronan CreditAttribution: ronan commentedOk, I just pulled the hook_exit implementation altogether. I don't think it's needed since the file cleanup happens, on cron, on failure, on success, on system_shutdown, etc, etc etc. Removing that function makes the module compatible with aggressive caching too, so extra bonus there.
If you're still having trouble, try the latest 2.x dev. It's a near-complete rewrite and does not suffer from the same issues as the 1.x branch.