Add core_version_requirement: ^8 || ^9 info.yml to designate that the module is compatible with Drupal 9. See https://www.drupal.org/node/3070687.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

ashutosh.mishra created an issue. See original summary.

ashutosh.mishra’s picture

StatusFileSize
new422 bytes
ashutosh.mishra’s picture

Status: Needs work » Needs review
kristen pol’s picture

naresh_bavaskar’s picture

Status: Needs review » Needs work

i found some deprecation code in module:

web/modules/contrib/backup_migrate_aws_s3/backup_migrate_aws_s3.module	line 14	Instantiation of deprecated class Symfony\Component\ClassLoader\Psr4ClassLoader: since version 3.3, to be removed in 4.0.
kunalgautam’s picture

Assigned: Unassigned » kunalgautam
kunalgautam’s picture

Assigned: kunalgautam » Unassigned
meghasharma’s picture

Assigned: Unassigned » meghasharma
meghasharma’s picture

Assigned: meghasharma » Unassigned
Status: Needs work » Needs review
StatusFileSize
new0 bytes

please ignore this patch

meghasharma’s picture

StatusFileSize
new2.3 KB

some extra spaces errors has fixed..

gauravvvv’s picture

StatusFileSize
new31.8 KB

Patch #10 Works fine for me, Adding a after patch screenshot for reference.
RTBC +1

gauravvvv’s picture

Status: Needs review » Reviewed & tested by the community
markdorison’s picture

Any chance we can get this patch committed and maybe even get a new release cut?

rohnjeynolds’s picture

+1 for getting patch #10 committed.

rohnjeynolds’s picture

StatusFileSize
new6.21 KB

This patch incorporates #10 and makes other updates that, for me, make this module truly functional with Drupal 9.1x. Namely:

  • Replaces use of deprecated Symfony class loader with Composer class loader.
  • Updates namespaces in references to Backup and Migrate classes.
  • Adds helper methods to comply with parent abstract class in AmazonS3Destination.php. (This could probably be done better.)

With `core_version_requirement: ^8 || ^9` still missing from the info file, the module still has to be downloaded and installed manually, instead of properly via Composer, before this patch can even be applied. So chicken-and-egg.

rohnjeynolds’s picture

StatusFileSize
new5.95 KB

One more patch: The #15 patch left some parse errors behind. This patch clears those errors by having the abstract methods AmazonS3Destination::saveFileMetadataArray() and AmazonS3Destination::loadFileMetadataArray() return empty arrays. I trusted the existing code comments and didn't reverse-engineer deeply enough to know if this is the best solution, but the module works and no obvious harm is caused.

timefor’s picture

#16 seems to patch fine and work for me on D9.2. +1 for getting this committed

webrole’s picture

Dependency for this is defined as drupal/backup_migrate 4.1
Where as, backup_migrate is D9 ready from 5.0
Would like this dependency to be changed. Can someone guide me what is the best way to go about it?

damienmckenna’s picture

Status: Reviewed & tested by the community » Needs work

When you update to B&M 5.0.x you'll discover that the custom class namespace doesn't work anymore, you'll have to move the custom classes into the main module directory structure and make them PSR-4 compatible. You'll then be able to remove the autoloader logic from the module file.

webrole’s picture

StatusFileSize
new267 bytes

Dependency is defined to be backup_migrate:4.1 which is not D9 ready.
Should modify the dependency to be backup_migrate:5.0

Also created a merge request
https://git.drupalcode.org/issue/backup_migrate_aws_s3-3136520/-/merge_r...

webrole’s picture

Priority: Normal » Critical
Status: Needs work » Needs review
webrole’s picture

Status: Needs review » Needs work

@DamienMcKenna
Sorry missed your comment. Will look into that too. Thanks

mighty_webber made their first commit to this issue’s fork.

geoanders’s picture

Version: 1.0.x-dev » 5.0.x-dev
Status: Needs work » Fixed

Please see latest branch.

geoanders’s picture

Status: Fixed » Closed (fixed)