Closed abetomas closed 1 year ago
@abetomas Which version of PHP are you running? I found the following post on the Drupal issue queue: https://www.drupal.org/project/backup_migrate/issues/3265002
@abetomas Which version of PHP are you running? I found the following post on the Drupal issue queue: https://www.drupal.org/project/backup_migrate/issues/3265002
Thanks for your response. The MAMP PHP version was 5.6.40, I changed the version to PHP version 7.4.21 and the same messages were displayed. However, the backup files were also created.
Can you give us a little more info about your whole local dev setup? (Obviously this is a local install.)
Can you give us a little more info about your whole local dev setup? (Obviously this is a local install.)
Thank you for your response. My local dev setup:
Please let me know if you need more info. Thanks again.
This seems like an oversight when writing the method _writeLongHeader()
. If you check _writeHeader()
and _writeHeaderBlock()
, both define $v_version
and $v_magic
. However, _writeLongHeader()
doesn't - thus the notice. The fix is pretty simple - just define the variables.
Oh, and this is a core bug, BTW!
Core PR submitted https://github.com/backdrop/backdrop/pull/4441
This was previously reported here https://github.com/backdrop/backdrop-issues/issues/3492
I got this message when backing up entire site:
Notice: Undefined variable: v_version in Archive_Tar->_writeLongHeader() (line 1678 of /Applications/MAMP/htdocs/rc-1b/core/modules/system/system.tar.inc).
However, (a) the backup files were actually generated in the Manual Directory, (b) the messages were not flagged as errors in the log messages report! ???