Problem/Motivation
As part of making this module ready for Drupal 9, we should add a missing core_version_requirement key to the module-info file.
see https://www.drupal.org/node/3070687
| Comment | File | Size | Author |
|---|---|---|---|
| #18 | drupal_9_rediness-3127754-18.patch | 50.59 KB | gigimaor |
| #13 | single-export-shorten-2020-06-29T16_02_42+0530.txt | 2.65 KB | BalajiDS |
| #12 | 3127754-12.patch | 39.02 KB | suresh prabhu parkala |
| #10 | 3127754-10.patch | 50.63 KB | rahulrasgon |
| #6 | 3127754-6.patch | 17.04 KB | sahana _n |
Comments
Comment #2
ramya balasubramanian commentedHi guys,
Please have a look at this patch
Comment #3
ramya balasubramanian commentedComment #4
abhisekmazumdarThe patch looks and applies well. Thanks, @Ramya Balasubramanian
Comment #5
ashishdalviHi @Ramya Balasubramanian,
I executed drupal-check on 8.x-2.x branch and identified that we still have other drupal 9 compatibility issues. Please refer to the below list. We should fix this as the scope of this ticket.
28/28 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
------ -------------------------------------------------------------------------
Line modules/record_shorten/record_shorten.module
------ -------------------------------------------------------------------------
49 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,
65 Call to deprecated function drupal_render():
in drupal:8.0.0 and is removed from drupal:9.0.0. Use the
68 Call to deprecated function drupal_render():
in drupal:8.0.0 and is removed from drupal:9.0.0. Use the
------ -------------------------------------------------------------------------
------ --------------------------------------------------------------------------------------------------------------------------
Line modules/record_shorten/record_shorten_views_handler_field_hostname.inc
------ --------------------------------------------------------------------------------------------------------------------------
Class record_shorten_views_handler_field_hostname was not found while trying to analyse it - autoloading is probably not
configured properly.
💡 Learn more at https://phpstan.org/user-guide/autoloading
------ --------------------------------------------------------------------------------------------------------------------------
------ ---------------------------------------------------------------------------------------------------------------------------------
Line modules/record_shorten/record_shorten_views_handler_filter_string_service.inc
------ ---------------------------------------------------------------------------------------------------------------------------------
Class record_shorten_views_handler_filter_string_service was not found while trying to analyse it - autoloading is probably not
configured properly.
💡 Learn more at https://phpstan.org/user-guide/autoloading
------ ---------------------------------------------------------------------------------------------------------------------------------
------ -------------------------------------------------------------------------
Line modules/record_shorten/src/Controller/DefaultController.php
------ -------------------------------------------------------------------------
19 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,
------ -------------------------------------------------------------------------
------ -------------------------------------------------------------------------
Line modules/record_shorten/src/Form/RecordshortenClearAll.php
------ -------------------------------------------------------------------------
43 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,
44 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.
------ -------------------------------------------------------------------------
------ ----------------------------------------------------------------------------------------
Line modules/record_shorten/src/record_shorten_views_handler_field_hostname.php
------ ----------------------------------------------------------------------------------------
Class Drupal\record_shorten\views_handler_field not found and could not be autoloaded.
💡 Learn more at https://phpstan.org/user-guide/autoloading
8 Class Drupal\record_shorten\views_handler_field not found and could not be autoloaded.
💡 Learn more at https://phpstan.org/user-guide/autoloading
------ ----------------------------------------------------------------------------------------
------ -----------------------------------------------------------------------------------------------------
Line modules/record_shorten/src/record_shorten_views_handler_filter_string_service.php
------ -----------------------------------------------------------------------------------------------------
Class Drupal\record_shorten\views_handler_filter_many_to_one not found and could not be autoloaded.
💡 Learn more at https://phpstan.org/user-guide/autoloading
7 Class Drupal\record_shorten\views_handler_filter_many_to_one not found and could not be autoloaded.
💡 Learn more at https://phpstan.org/user-guide/autoloading
------ -----------------------------------------------------------------------------------------------------
------ -------------------------------------------------------------------------
Line modules/shorten_cs/shorten_cs.admin.inc
------ -------------------------------------------------------------------------
51 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,
93 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.
------ -------------------------------------------------------------------------
------ -------------------------------------------------------------------------
Line modules/shorten_cs/shorten_cs.module
------ -------------------------------------------------------------------------
44 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,
92 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,
------ -------------------------------------------------------------------------
------ -------------------------------------------------------------------------
Line modules/shorten_cs/src/Form/CustomServicesAddForm.php
------ -------------------------------------------------------------------------
112 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,
134 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,
163 Call to deprecated function drupal_render():
in drupal:8.0.0 and is removed from drupal:9.0.0. Use the
------ -------------------------------------------------------------------------
------ -------------------------------------------------------------------------
Line modules/shorten_cs/src/Form/CustomServicesDeleteForm.php
------ -------------------------------------------------------------------------
65 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,
94 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.
104 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.
107 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,
110 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.
------ -------------------------------------------------------------------------
------ -------------------------------------------------------------------------
Line modules/shorten_cs/src/Form/CustomServicesEditForm.php
------ -------------------------------------------------------------------------
36 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,
80 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.
96 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,
------ -------------------------------------------------------------------------
------ ----------------------------------------------------------------------------
Line modules/shortener/src/Plugin/Filter/UrlShortener.php
------ ----------------------------------------------------------------------------
109 Call to deprecated function check_url():
in drupal:8.0.0 and is removed from drupal:9.0.0.
Use UrlHelper::stripDangerousProtocols() or UrlHelper::filterBadProtocol()
instead. UrlHelper::stripDangerousProtocols() can be used in conjunction
with \Drupal\Component\Render\FormattableMarkup and an @variable
placeholder which will perform the necessary escaping.
UrlHelper::filterBadProtocol() is functionality equivalent to check_url()
apart from the fact it is protected from double escaping bugs. Note that
this method no longer marks its output as safe.
117 Call to deprecated function check_url():
in drupal:8.0.0 and is removed from drupal:9.0.0.
Use UrlHelper::stripDangerousProtocols() or UrlHelper::filterBadProtocol()
instead. UrlHelper::stripDangerousProtocols() can be used in conjunction
with \Drupal\Component\Render\FormattableMarkup and an @variable
placeholder which will perform the necessary escaping.
UrlHelper::filterBadProtocol() is functionality equivalent to check_url()
apart from the fact it is protected from double escaping bugs. Note that
this method no longer marks its output as safe.
------ ----------------------------------------------------------------------------
------ -----------------------------------------------------------------------------------
Line shorten.module
------ -----------------------------------------------------------------------------------
93 Call to deprecated method substr() of class Drupal\Component\Utility\Unicode:
in drupal:8.6.0 and is removed from drupal:9.0.0. Use
mb_substr() instead.
99 Call to deprecated method substr() of class Drupal\Component\Utility\Unicode:
in drupal:8.6.0 and is removed from drupal:9.0.0. Use
mb_substr() instead.
136 Call to deprecated method strtoupper() of class Drupal\Component\Utility\Unicode:
in drupal:8.6.0 and is removed from drupal:9.0.0. Use
mb_strtoupper() instead.
176 Call to deprecated method substr() of class Drupal\Component\Utility\Unicode:
in drupal:8.6.0 and is removed from drupal:9.0.0. Use
mb_substr() instead.
176 Call to deprecated method substr() of class Drupal\Component\Utility\Unicode:
in drupal:8.6.0 and is removed from drupal:9.0.0. Use
mb_substr() instead.
433 Call to deprecated method strlen() of class Drupal\Component\Utility\Unicode:
in drupal:8.6.0 and is removed from drupal:9.0.0. Use
mb_strlen() instead.
435 Call to deprecated method strlen() of class Drupal\Component\Utility\Unicode:
in drupal:8.6.0 and is removed from drupal:9.0.0. Use
mb_strlen() instead.
436 Call to deprecated method substr() of class Drupal\Component\Utility\Unicode:
in drupal:8.6.0 and is removed from drupal:9.0.0. Use
mb_substr() instead.
------ -----------------------------------------------------------------------------------
------ -------------------------------------------------------------------------------
Line src/Form/ShortenShortenForm.php
------ -------------------------------------------------------------------------------
90 Call to deprecated method strlen() of class Drupal\Component\Utility\Unicode:
in drupal:8.6.0 and is removed from drupal:9.0.0. Use
mb_strlen() instead.
115 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 39 errors
Comment #6
sahana _n commentedPlease review the patch.
Comment #7
ramya balasubramanian commentedThis patch is looking good
Comment #8
jaykandariupdated the correct target branch
Ran the drupal-check & it reports lots of errors after applying the patch.
Comment #9
rahulrasgon commentedComment #10
rahulrasgon commentedAdded new patch. Please review!!!
Comment #11
kristen polComment #12
suresh prabhu parkala commentedPatch did not apply. Re-rolled patch. Please review!
Comment #13
BalajiDS commentedpatch #12 works fine. thanks @Suresh Prabhu Parkala
Comment #14
neslee canil pinto+1
Comment #16
neslee canil pintoCommitted. Thanks👍🏻
Comment #18
gigimaorUpdate patch #12 to support new Drupal standard for module info files
Work for me
Comment #19
omar alahmed@Neslee Any plans for creating a new release for 8.2.x?
Thank you,