backdrop-contrib / backup_migrate

Port of the Drupal backup_migrate module to Backdrop
GNU General Public License v2.0
7 stars 14 forks source link

Deprecated function: preg_match(): Passing null to parameter #2 ($subject) of type string #94

Closed izmeez closed 1 year ago

izmeez commented 1 year ago

When doing a manual backup with php 8.1.17 and backup_migrate 1.x-1.0.23 the following error is displayed: Deprecated function: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in _backup_migrate_to_bytes() (line 1912 of ...backup_migrate.module).

drupix commented 1 year ago

Line 1396 of backup_migrate.module must be $backup_migrate_memory_limit = config_get('backup_migrate.settings', 'backup_migrate_memory_limit');

Note the backup_migrate.settings in the first parameter of config_get

argiepiano commented 1 year ago

Thank you for reporting @izmeez (and sorry I missed this last month!). @drupix, thanks so much for finding the problem. I found two other places with the same issue.

I pushed the fix directly to the main branch by mistake, so no merging needed. I'll do a new release in a minute.