10/10 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

------ -------------------------------------------------------------------------
Line includes/track_da_files.admin.inc
------ -------------------------------------------------------------------------
524 Call to deprecated function db_select():
as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get
a database connection injected into your service from the container and
call select() on it. For example,
540 Call to deprecated function format_date():
in Drupal 8.0.0, will be removed before Drupal 9.0.0.
Use \Drupal::service('date.formatter')->format().
544 Call to deprecated function node_load():
in Drupal 8.x, will be removed before Drupal 9.0.
Use \Drupal\node\Entity\Node::load().
561 Call to deprecated function user_load():
in Drupal 8.x, will be removed before Drupal 9.0.
Use \Drupal\user\Entity\User::load().
671 Call to deprecated function db_select():
as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get
a database connection injected into your service from the container and
call select() on it. For example,
688 Call to deprecated function format_date():
in Drupal 8.0.0, will be removed before Drupal 9.0.0.
Use \Drupal::service('date.formatter')->format().
692 Call to deprecated function file_load():
in Drupal 8.x, will be removed before Drupal 9.0.
Use \Drupal\file\Entity\File::load().
728 Call to deprecated function file_load():
in Drupal 8.x, will be removed before Drupal 9.0.
Use \Drupal\file\Entity\File::load().
743 Call to deprecated function drupal_render():
as of Drupal 8.0.x, will be removed before Drupal 9.0.0. Use the
756 Call to deprecated function user_load():
in Drupal 8.x, will be removed before Drupal 9.0.
Use \Drupal\user\Entity\User::load().
771 Call to deprecated function drupal_render():
as of Drupal 8.0.x, will be removed before Drupal 9.0.0. Use the
------ -------------------------------------------------------------------------

------ ------------------------------------------------------------------
Line includes/track_da_files_formatter.inc
------ ------------------------------------------------------------------
73 Call to deprecated function drupal_render():
as of Drupal 8.0.x, will be removed before Drupal 9.0.0. Use the
------ ------------------------------------------------------------------

------ ---------------------------------------------------------------------------
Line src/Controller/TrackDaFilesController.php
------ ---------------------------------------------------------------------------
73 Call to deprecated method getUsername() of class Drupal\user\Entity\User:
in Drupal 8.0.0, will be removed before Drupal 9.0.0.
Use \Drupal\Core\Session\AccountInterface::getAccountName() or
\Drupal\user\UserInterface::getDisplayName() instead.
212 Call to deprecated method l() of class Drupal:
in Drupal 8.0.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Link instead.
Example:
218 Call to deprecated function format_date():
in Drupal 8.0.0, will be removed before Drupal 9.0.0.
Use \Drupal::service('date.formatter')->format().
230 Call to deprecated method l() of class Drupal:
in Drupal 8.0.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Link instead.
Example:
370 Call to deprecated function format_date():
in Drupal 8.0.0, will be removed before Drupal 9.0.0.
Use \Drupal::service('date.formatter')->format().
375 Call to deprecated method l() of class Drupal:
in Drupal 8.0.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Link instead.
Example:
379 Call to deprecated method l() of class Drupal:
in Drupal 8.0.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Link instead.
Example:
392 Call to deprecated method getUsername() of class Drupal\user\Entity\User:
in Drupal 8.0.0, will be removed before Drupal 9.0.0.
Use \Drupal\Core\Session\AccountInterface::getAccountName() or
\Drupal\user\UserInterface::getDisplayName() instead.
405 Call to deprecated method l() of class Drupal:
in Drupal 8.0.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Link instead.
Example:
493 Call to deprecated function format_date():
in Drupal 8.0.0, will be removed before Drupal 9.0.0.
Use \Drupal::service('date.formatter')->format().
549 Call to deprecated function file_uri_scheme():
in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0.
Use \Drupal\Core\File\FileSystem::uriScheme().
568 Call to deprecated function db_query():
as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get
a database connection injected into your service from the container and
call query() on it. For example,
628 Call to deprecated function db_query():
as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get
a database connection injected into your service from the container and
call query() on it. For example,
------ ---------------------------------------------------------------------------

------ -----------------------------------------------------------
Line src/Plugin/Field/FieldFormatter/TrackDaFilesFormatter.php
------ -----------------------------------------------------------
53 Call to deprecated method l() of class Drupal:
in Drupal 8.0.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Link instead.
Example:
------ -----------------------------------------------------------

------ -------------------------------------------------------------------------
Line track_da_files.module
------ -------------------------------------------------------------------------
138 Call to deprecated function file_uri_scheme():
in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0.
Use \Drupal\Core\File\FileSystem::uriScheme().
156 Call to deprecated function file_load():
in Drupal 8.x, will be removed before Drupal 9.0.
Use \Drupal\file\Entity\File::load().
174 Call to deprecated function db_query():
as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get
a database connection injected into your service from the container and
call query() on it. For example,
181 Call to deprecated function db_query():
as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get
a database connection injected into your service from the container and
call query() on it. For example,
191 Call to deprecated function db_query():
as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get
a database connection injected into your service from the container and
call query() on it. For example,
212 Call to deprecated function db_insert():
as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get
a database connection injected into your service from the container and
call insert() on it. For example,
224 Call to deprecated function db_query():
as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get
a database connection injected into your service from the container and
call query() on it. For example,
228 Call to deprecated function db_query():
as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get
a database connection injected into your service from the container and
call query() on it. For example,
233 Call to deprecated function db_insert():
as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get
a database connection injected into your service from the container and
call insert() on it. For example,
315 Call to deprecated method l() of class Drupal:
in Drupal 8.0.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Link instead.
Example:
------ -------------------------------------------------------------------------

[ERROR] Found 36 errors

Comments

joy29 created an issue. See original summary.

rudranil29’s picture

StatusFileSize
new16.28 KB

patch for drupal 9 compatibility

rudranil29’s picture

Assigned: rudranil29 » Unassigned
Status: Active » Needs review
Sudeepthi Peteti’s picture

StatusFileSize
new316.44 KB
new17 KB
new35.17 KB

Hi
after applying patch in commment #2, there are still deprecated warnings.
Attached image of upgrade status after applying patch number #1.

  • 9745a4ba committed on 8.x-1.x
    Issue #3072910 by Sudeepthi Peteti, joy29: Drupal 9 Deprecated Code...
akashkumar07’s picture

Status: Needs review » Needs work

#4 looks good. But I see some commented use statement in

src/Controller/TrackDaFilesController.php

It will be better if we remove all unused commented code.
Thanks!

neslee canil pinto’s picture

Status: Needs work » Reviewed & tested by the community
neslee canil pinto’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.