Check for Drupal 9 compatibility.
Function drupal_set_message() is acceptable till Drupal 8.6 version.

Need to update the code as per Drupal 9 compatibility.
Error: Call to deprecated function drupal_set_message()

Find an attached text file for the lines where function drupal_set_message() exist.

Comments

Rutuj created an issue. See original summary.

rutuj’s picture

i am providing a patch to fix this issue

rudranil29’s picture

Assigned: rutuj » rudranil29

No need to call Drupal global message in formbase.

rudranil29’s picture

Category: Support request » Feature request
StatusFileSize
new2.11 KB

There is lots issue related with Drupal 9 compatibility I found, Need to open new issue mention below. However I am creating patch related to this issue.

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

------ ----------------------------------------------------------------
Line advanced_pwa.install
------ ----------------------------------------------------------------
34 Call to deprecated function file_unmanaged_delete_recursive().
------ ----------------------------------------------------------------

------ ------------------------------------------------------------
Line src/Form/AdvancedpwaForm.php
------ ------------------------------------------------------------
143 Call to deprecated function _file_save_upload_from_form().
163 Call to deprecated function file_unmanaged_copy().
------ ------------------------------------------------------------

------ ------------------------------------------
Line src/Model/SubscriptionsDatastorage.php
------ ------------------------------------------
31 Call to deprecated function db_select().
41 Call to deprecated function db_insert().
70 Call to deprecated function db_select().
80 Call to deprecated function db_delete().
97 Call to deprecated function db_select().
------ ------------------------------------------

------ -------------------------------------------------------------------------
Line tests/src/Functional/LoadTest.php
------ -------------------------------------------------------------------------
Class PHPUnit\Framework\TestCase not found and could not be autoloaded.
------ -------------------------------------------------------------------------

[ERROR] Found 9 errors

shailesh.bhosale’s picture

Status: Needs review » Reviewed & tested by the community
shailesh.bhosale’s picture

Status: Reviewed & tested by the community » Patch (to be ported)
shubham.prakash’s picture

Assigned: rudranil29 » Unassigned
Status: Patch (to be ported) » Fixed

Status: Fixed » Closed (fixed)

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