php drupal-check.phar modules/contrib/plupload/
7/7 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
------ -----------------------------------------------------
Line plupload.module
------ -----------------------------------------------------
17 Call to deprecated function file_upload_max_size().
------ -----------------------------------------------------
------ -------------------------------------------------------
Line plupload_test/src/PluploadTestForm.php
------ -------------------------------------------------------
58 Call to deprecated function file_prepare_directory().
67 Call to deprecated function file_unmanaged_move().
74 Call to deprecated function drupal_set_message().
------ -------------------------------------------------------
------ ---------------------------------------------------
Line src/Element/PlUploadFile.php
------ ---------------------------------------------------
110 Call to deprecated function drupal_basename().
120 Call to deprecated function drupal_set_message().
268 Call to deprecated function entity_create().
272 Call to deprecated function drupal_basename().
------ ---------------------------------------------------
------ -------------------------------------------------------
Line src/UploadController.php
------ -------------------------------------------------------
93 Call to deprecated function file_prepare_directory().
172 Call to deprecated function drupal_unlink().
------ -------------------------------------------------------
[ERROR] Found 10 errors | Comment | File | Size | Author |
|---|---|---|---|
| #6 | 3093844-6.patch | 8.4 KB | stijncr |
| #4 | plupload-deprecation-report.png | 24.3 KB | neslee canil pinto |
| #3 | 3093844-3.patch | 8.22 KB | lisa.rae |
| #2 | deprecated-3093844-2.patch | 6.28 KB | sergiu stici |
Comments
Comment #2
sergiu stici commentedHere's the patch, please review.
Comment #3
lisa.rae commentedRerolling patch for additional deprecations with Drupal 8.8.
Comment #4
neslee canil pinto#3 removes all the deprecation and makes drupal 9 compatiable. Attached Screeshot
Comment #5
budalokko commentedGreat work !! But module does not work due to following issues:
1. UploadController: There's a case typo around htaccessWriter class property.
2. PlUploadFile: $this->loadStreamWrapper() is used in a static method.
Are you willing to fix them?
Thank you !!
Comment #6
stijncr commentedGreat work!!
Had the same issues when installing this module in Drupal 9. Made modifications to the patch, and this should work now.
Please review
Comment #7
vensiresComment #8
paulocsLooks good to me!
Thanks.
Comment #10
paulocsComment #11
neslee canil pinto+1