16/16 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
------ -----------------------------------------------------------------------------------
Line hacked.report.inc
------ -----------------------------------------------------------------------------------
167 Call to deprecated method strtolower() of class Drupal\Component\Utility\Unicode:
in Drupal 8.6.0, will be removed before Drupal 9.0.0. Use
mb_strtolower() instead.
167 Call to deprecated method strtolower() of class Drupal\Component\Utility\Unicode:
in Drupal 8.6.0, will be removed before Drupal 9.0.0. Use
mb_strtolower() instead.
------ -----------------------------------------------------------------------------------
------ ----------------------------------------------------------------
Line src/hackedProjectWebDevDownloader.php
------ ----------------------------------------------------------------
109 Call to deprecated function file_prepare_directory():
in Drupal 8.7.0, will be removed before Drupal 9.0.0.
Use \Drupal\Core\File\FileSystemInterface::prepareDirectory().
110 Call to deprecated function file_prepare_directory():
in Drupal 8.7.0, will be removed before Drupal 9.0.0.
Use \Drupal\Core\File\FileSystemInterface::prepareDirectory().
------ ----------------------------------------------------------------
------ ----------------------------------------------------------------
Line src/hackedProjectWebDownloader.php
------ ----------------------------------------------------------------
40 Call to deprecated function file_prepare_directory():
in Drupal 8.7.0, will be removed before Drupal 9.0.0.
Use \Drupal\Core\File\FileSystemInterface::prepareDirectory().
58 Call to deprecated function file_prepare_directory():
in Drupal 8.7.0, will be removed before Drupal 9.0.0.
Use \Drupal\Core\File\FileSystemInterface::prepareDirectory().
------ ----------------------------------------------------------------
------ -------------------------------------------------------------------------------
Line src/hackedProjectWebFilesDownloader.php
------ -------------------------------------------------------------------------------
38 Call to deprecated function file_prepare_directory():
in Drupal 8.7.0, will be removed before Drupal 9.0.0.
Use \Drupal\Core\File\FileSystemInterface::prepareDirectory().
119 Call to deprecated method substr() of class Drupal\Component\Utility\Unicode:
in Drupal 8.6.0, will be removed before Drupal 9.0.0. Use
mb_substr() instead.
122 Call to deprecated function file_unmanaged_delete_recursive():
in Drupal 8.7.0, will be removed before Drupal 9.0.0.
Use \Drupal\Core\File\FileSystemInterface::deleteRecursive().
------ -------------------------------------------------------------------------------
[ERROR] Found 9 errors
| Comment | File | Size | Author |
|---|---|---|---|
| #16 | hacked-interdiff-3075667-13-16.txt | 732 bytes | star-szr |
| #16 | hacked-3075667-16.patch | 3.49 KB | star-szr |
| #13 | hacked-3075667-D9-13.patch | 3.46 KB | eric_a |
| #13 | interdiff-3075667-10-13.txt | 640 bytes | eric_a |
| #7 | after-patch.png | 315.26 KB | swatichouhan012 |
Comments
Comment #2
rudranil29 commentedpatch for drupal 9 compatibility
Comment #3
rudranil29 commentedComment #4
damienmckennaComment #5
driverok commentedAfter applying #2 there are still several errors:
Drupal check results
Comment #6
driverok commentedPlease check the combined patch with fixes for all Drupal 9 compatibility fixes.
Comment #7
swatichouhan012 commented@driverok patch looks good, now there is no deprecated code.
Comment #8
smrutha commentedPatch #6 looks good.
drupal-check -d web/modules/contrib/hacked
16/16 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
[OK] No errors
Comment #9
ivnishdriverok, please fix patch to last dev version
Comment #10
joestewart commentedRerolled with core_version_requirement addition.
Comment #11
eric_a commented@joestewart, thanks a lot for the reroll.
Did a quick review of the file system stuff:
- non-static method 'deleteRecursive' should not be called statically. Given that @ivnsih choose to use the
\Drupal::service('file_system')pattern when fixing #3147733: Automated Drupal 9 compatibility fixes, that would be just fine here. (See commit 40b974b)Comment #12
eric_a commentedI'll upload a patch to address #11 in a minute.
In the meantime here's my plain dumb reroll of #6, without any fix for
file_unmanaged_delete_recursive(). Not very useful but I needed it because reasons. :-)Comment #13
eric_a commentedThis is #10 with #11 addressed.
Comment #14
nathaniel commentedThanks @Eric_A patch applies cleanly. Upgrade status is happy with it. Will test on D9 soon.
Comment #15
nathaniel commentedLooks like something changed. Drupal 9.2.1 error running the report.
https://www.drupal.org/node/2999951/revisions/view/11422137/11767365
1. hackedProjectWebFilesDownloader.php line 110
2. Same file. Looks like this can be removed now:
Comment #16
star-szr@Nathaniel, I ran into the same thing. It looks like there was a draft change record that didn't get the necessary revisions before publishing.
Here's a new patch. IMO removing the unused
useis out of scope here so not including that.Comment #17
nathaniel commentedYep, that works! The patch applies. The report runs without any issues. I can view the file diff.
Comment #19
ivnish