Depreciated report for Node authorize link
------ ----------------------------------------------------------------------------------
Line node_authlink.module
------ ----------------------------------------------------------------------------------
137 Call to deprecated function db_select():
in drupal:8.0.0 and is removed from drupal:9.0.0. Instead, get
a database connection injected into your service from the container and
call select() on it. For example,
149 Call to deprecated function drupal_set_message():
in drupal:8.5.0 and is removed from drupal:9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
162 Call to deprecated function db_select():
in drupal:8.0.0 and is removed from drupal:9.0.0. Instead, get
a database connection injected into your service from the container and
call select() on it. For example,
173 Call to deprecated function drupal_set_message():
in drupal:8.5.0 and is removed from drupal:9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
194 Call to deprecated function db_query():
in drupal:8.0.0 and is removed from drupal:9.0.0. Instead,
get a database connection injected into your service from the container
and call query() on it. For example,
358 Call to deprecated method randomBytes() of class Drupal\Component\Utility\Crypt:
in drupal:8.8.0 and is removed from drupal:9.0.0.
Use PHP's built-in random_bytes() function instead.
361 Call to deprecated function db_insert():
in drupal:8.0.0 and is removed from drupal:9.0.0. Instead, get
a database connection injected into your service from the container and
call insert() on it. For example,
384 Call to deprecated function db_delete():
in drupal:8.0.0 and is removed from drupal:9.0.0. Instead, get
a database connection injected into your service from the container and
call delete() on it. For example,
393 Call to deprecated function node_type_get_types():
in drupal:8.0.0 and is removed from drupal:9.0.0.
Use \Drupal\node\Entity\NodeType::loadMultiple().
403 Call to deprecated function db_select():
in drupal:8.0.0 and is removed from drupal:9.0.0. Instead, get
a database connection injected into your service from the container and
call select() on it. For example,
412 Call to deprecated function db_delete():
in drupal:8.0.0 and is removed from drupal:9.0.0. Instead, get
a database connection injected into your service from the container and
call delete() on it. For example,
------ ----------------------------------------------------------------------------------
------ --------------------------------------------------------------------------
Line src\Form\NodeAuthlinkNodeForm.php
------ --------------------------------------------------------------------------
77 Call to deprecated method entityManager() of class Drupal:
in drupal:8.0.0 and is removed from drupal:9.0.0.
Use \Drupal::entityTypeManager() instead in most cases. If the needed
method is not on \Drupal\Core\Entity\EntityTypeManagerInterface, see the
deprecated \Drupal\Core\Entity\EntityManager to find the
correct interface or service.
204 Call to deprecated function drupal_set_message():
in drupal:8.5.0 and is removed from drupal:9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
------ --------------------------------------------------------------------------
[ERROR] Found 13 errors
Comment | File | Size | Author |
---|---|---|---|
#15 | node_authlink-drupal_9_upgrade_composer_patches-3108765-15-8.x.patch | 6.12 KB | Eduardo Morales Alberti |
#15 | interdiff_14_15.txt | 245 bytes | Eduardo Morales Alberti |
#15 | interdiff_11_15.txt | 267 bytes | Eduardo Morales Alberti |
#11 | interdiff_7-11.txt | 212 bytes | malaynayak |
#11 | 3108765-11.patch | 6.47 KB | malaynayak |
Comments
Comment #2
malaynayak CreditAttribution: malaynayak as a volunteer and at Acquia for Drupal India Association commentedComment #3
selva.swamy@gmail.com CreditAttribution: selva.swamy@gmail.com as a volunteer and commented@malaynayak Am Looking into this issue
Comment #4
malaynayak CreditAttribution: malaynayak as a volunteer and at Acquia for Drupal India Association commented@kswamy I have created the patch. Please review.
Comment #5
malaynayak CreditAttribution: malaynayak as a volunteer and at Acquia for Drupal India Association commentedComment #6
malaynayak CreditAttribution: malaynayak as a volunteer and at Acquia for Drupal India Association commentedAdded core_version_requirement into .info.yml file.
Comment #7
malaynayak CreditAttribution: malaynayak as a volunteer and at Acquia for Drupal India Association commentedAdded a wrong patch on #6. Adding the correct one with interdiff.
Comment #8
msuthars@malaynayak Thanks for the patch. I applied patch and check manually & with the upgrade status module, The patch is Drupal 9 compatible.
Comment #9
pratik_kamble@malaynayak
$this->messenger->addMessage($key . ': ' . $value); should be $this->messenger()->addMessage($key . ': ' . $value);
Comment #10
pratik_kambleComment #11
malaynayak CreditAttribution: malaynayak as a volunteer and at Acquia for Drupal India Association commentedThanks @pratik_kamble for pointing out the issue.
Adding the modified patch, please review.
Comment #12
ravimane23 CreditAttribution: ravimane23 as a volunteer and at TATA Consultancy Services commentedI applied #11 patch and check manually & with the upgrade status module, The patch worked for me.
Comment #13
selva.swamy@gmail.com CreditAttribution: selva.swamy@gmail.com as a volunteer and commentedComment #14
Eduardo Morales AlbertiAdded patch removing composer compatibility because does not apply using composer patches, (this patch is only for composer patches) based on #11 patch.
Patch reviewed using upgrade status module.
Comment #15
Eduardo Morales AlbertiSorry, I uploaded the wrong patch for composer patches.
Comment #16
hudriDo NOT use patch #14 or #15, it contradicts the core purpose of this issue! Patch #11 is the last correct one.
If you want to install a v8 only module with composer, see this post on Drupal Answers
Comment #18
Honza Pobořil CreditAttribution: Honza Pobořil commentedThank you
Comment #19
hudriHi @malaynayak and @Bobik,
could you please generate a new stable release containing the D9 patch? Even though we now can
composer require
the dev version in a D9 project, I still feel better when I don't have to add a dependency to dev-release in a live project.Thank you very much.
Comment #20
Honza Pobořil CreditAttribution: Honza Pobořil commentedDo you think it is good idea to publish release after one week of testing in dev which probably nobody use?
Comment #21
hudriMalaynayak's patch is already 11 month old, and there is no functional change in this patch, just 1:1 replacements like
drupal_set_message
to\Drupal::messenger()
ordb_select
to\Drupal::database()
. Can't see a lot of risk here.Comment #22
Honza Pobořil CreditAttribution: Honza Pobořil commentedThere were more commits what needs carantine, especially combined.