Drupal 9 deprecated code report

Created on 6 April 2020, over 4 years ago
Updated 29 April 2023, over 1 year ago
Shakti-Kumar:spammaster shakti.kumar$ ../../../../vendor/bin/drupal-check -ad .
 21/21 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

 ------ -------------------------------------------------------------------------
  Line   spammaster.install
 ------ -------------------------------------------------------------------------
  193    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,
  214    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   spammaster.module
 ------ -----------------------------------------------------------------------------------------------------------------------------------------------
  54     Call to deprecated constant REQUEST_TIME: Deprecated in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal::time()->getRequestTime();
  55     Call to deprecated constant REQUEST_TIME: Deprecated in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal::time()->getRequestTime();
  65     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,
  73     Call to deprecated constant REQUEST_TIME: Deprecated in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal::time()->getRequestTime();
  74     Call to deprecated constant REQUEST_TIME: Deprecated in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal::time()->getRequestTime();
  84     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,
  308    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.
  311    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.
  314    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.
  317    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.
  322    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.
  325    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.
  740    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,
  833    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,
 ------ -----------------------------------------------------------------------------------------------------------------------------------------------

 ------ -------------------------------------------------------------------------
  Line   src/Controller/SpamMasterCleanUpController.php
 ------ -------------------------------------------------------------------------
  29     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,
  38     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,
  41     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,
  53     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,
  62     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,
  65     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,
  77     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,
  86     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,
  89     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,
  101    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,
  110    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,
  113    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,
  125    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,
  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,
  137    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,
  149    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,
  158    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,
  161    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,
  173    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,
  182    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,
  185    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,
  197    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,
  206    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,
  209    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,
  221    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,
  230    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,
  233    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,
  245    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,
  254    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,
  257    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,
  267    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,
  268    Undefined variable: $spammaster_date
  290    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,
  294    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,
  303    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,
  304    Undefined variable: $time
 ------ -------------------------------------------------------------------------

 ------ -----------------------------------------------------------------------------------------------------------------------------------------------------
  Line   src/Controller/SpamMasterCommentController.php
 ------ -----------------------------------------------------------------------------------------------------------------------------------------------------
  17     Property Drupal\spammaster\Controller\SpamMasterCommentController::$form (Drupal\Core\Form\FormInterface) does not accept default value of type
         null.
  24     Property Drupal\spammaster\Controller\SpamMasterCommentController::$formstate (Drupal\Core\Form\FormInterface) does not accept default value of
         type null.
  31     Property Drupal\spammaster\Controller\SpamMasterCommentController::$spammasterip (Drupal\spammmaster\spammastercommentcheck) does not accept
         default value of type null.
  31     Property Drupal\spammaster\Controller\SpamMasterCommentController::$spammasterip has unknown class Drupal\spammmaster\spammastercommentcheck as its
         type.
  38     Property Drupal\spammaster\Controller\SpamMasterCommentController::$spammasteremail (Drupal\spammmaster\spammastercommentcheck) does not accept
         default value of type null.
  38     Property Drupal\spammaster\Controller\SpamMasterCommentController::$spammasteremail has unknown class Drupal\spammmaster\spammastercommentcheck as
         its type.
  45     Property Drupal\spammaster\Controller\SpamMasterCommentController::$spammastercomment (Drupal\spammmaster\spammastercommentcheck) does not accept
         default value of type null.
  45     Property Drupal\spammaster\Controller\SpamMasterCommentController::$spammastercomment has unknown class Drupal\spammmaster\spammastercommentcheck
         as its type.
  73     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,
  102    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,
  113    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,
  158    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,
  173    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,
  183    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,
  196    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,
 ------ -----------------------------------------------------------------------------------------------------------------------------------------------------

 ------ -----------------------------------------------------------------------------------------------------------------------------------------------------
  Line   src/Controller/SpamMasterContactController.php
 ------ -----------------------------------------------------------------------------------------------------------------------------------------------------
  17     Property Drupal\spammaster\Controller\SpamMasterContactController::$form (Drupal\Core\Form\FormInterface) does not accept default value of type
         null.
  24     Property Drupal\spammaster\Controller\SpamMasterContactController::$formstate (Drupal\Core\Form\FormInterface) does not accept default value of
         type null.
  31     Property Drupal\spammaster\Controller\SpamMasterContactController::$spammasterip (Drupal\spammmaster\spammastercontactcheck) does not accept
         default value of type null.
  31     Property Drupal\spammaster\Controller\SpamMasterContactController::$spammasterip has unknown class Drupal\spammmaster\spammastercontactcheck as its
         type.
  38     Property Drupal\spammaster\Controller\SpamMasterContactController::$spammasteremail (Drupal\spammmaster\spammastercontactcheck) does not accept
         default value of type null.
  38     Property Drupal\spammaster\Controller\SpamMasterContactController::$spammasteremail has unknown class Drupal\spammmaster\spammastercontactcheck as
         its type.
  45     Property Drupal\spammaster\Controller\SpamMasterContactController::$spammastermessage (Drupal\spammmaster\spammastercontactcheck) does not accept
         default value of type null.
  45     Property Drupal\spammaster\Controller\SpamMasterContactController::$spammastermessage has unknown class Drupal\spammmaster\spammastercontactcheck
         as its type.
  72     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,
  101    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,
  114    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,
  125    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,
  170    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,
  185    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,
  195    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,
  208    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,
 ------ -----------------------------------------------------------------------------------------------------------------------------------------------------

 ------ -------------------------------------------------------------------------
  Line   src/Controller/SpamMasterCronController.php
 ------ -------------------------------------------------------------------------
  42     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,
  78     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,
 ------ -------------------------------------------------------------------------

 ------ -------------------------------------------------------------------------
  Line   src/Controller/SpamMasterLicController.php
 ------ -------------------------------------------------------------------------
  105    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.
  110    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,
  121    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,
  232    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,
  246    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,
  260    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,
  271    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,
 ------ -------------------------------------------------------------------------

 ------ -------------------------------------------------------------------------
  Line   src/Controller/SpamMasterMailController.php
 ------ -------------------------------------------------------------------------
  54     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.
  60     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,
  66     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,
  73     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.
  79     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,
  85     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,
  136    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,
  142    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,
  176    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,
  182    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,
  232    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,
  238    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,
  288    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,
  294    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,
  380    Variable $spam_master_warning might not be defined.
  383    Variable $spam_master_alert_level_deconstructed might not be defined.
  389    Variable $spam_master_total_block_count_result might not be defined.
  394    Variable $spam_master_warning_signature might not be defined.
  412    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,
  508    Undefined variable: $spammaster_white__size
  509    Undefined variable: $spammaster_white__size
  592    Variable $spam_master_warning might not be defined.
  594    Variable $spam_master_alert_level_deconstructed might not be defined.
  604    Variable $spam_master_total_block_count_result might not be defined.
  621    Variable $spam_master_warning_signature might not be defined.
  642    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,
  740    Undefined variable: $spammaster_white__size
  741    Undefined variable: $spammaster_white__size
  827    Variable $spam_master_alert_level_deconstructed might not be defined.
  837    Variable $spam_master_total_block_count_result might not be defined.
  866    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,
 ------ -------------------------------------------------------------------------

 ------ ----------------------------------------------------------------------------------------------------------------------------------------------------
  Line   src/Controller/SpamMasterRegistrationController.php
 ------ ----------------------------------------------------------------------------------------------------------------------------------------------------
  17     Property Drupal\spammaster\Controller\SpamMasterRegistrationController::$form (Drupal\Core\Form\FormInterface) does not accept default value of
         type null.
  24     Property Drupal\spammaster\Controller\SpamMasterRegistrationController::$formstate (Drupal\Core\Form\FormInterface) does not accept default value
         of type null.
  31     Property Drupal\spammaster\Controller\SpamMasterRegistrationController::$spammasterip (Drupal\spammmaster\spammasterregistrationcheck) does not
         accept default value of type null.
  31     Property Drupal\spammaster\Controller\SpamMasterRegistrationController::$spammasterip has unknown class
         Drupal\spammmaster\spammasterregistrationcheck as its type.
  38     Property Drupal\spammaster\Controller\SpamMasterRegistrationController::$spammasteremail (Drupal\spammmaster\spammasterregistrationcheck) does not
         accept default value of type null.
  38     Property Drupal\spammaster\Controller\SpamMasterRegistrationController::$spammasteremail has unknown class
         Drupal\spammmaster\spammasterregistrationcheck as its type.
  65     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,
  89     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,
  107    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,
  118    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,
  169    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,
  184    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,
  194    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,
  207    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,
 ------ ----------------------------------------------------------------------------------------------------------------------------------------------------

 ------ -------------------------------------------------------------------------
  Line   src/EventSubscriber/SpamMasterFirewallSubscriber.php
 ------ -------------------------------------------------------------------------
  29     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,
  46     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,
 ------ -------------------------------------------------------------------------

 ------ ----------------------------------------------------------------------------------------------
  Line   src/Form/SpamMasterBufferForm.php
 ------ ----------------------------------------------------------------------------------------------
  64     Call to an undefined method Drupal\Core\Database\Query\ExtendableInterface::orderByHeader().
  75     Call to deprecated method l() of class Drupal:
         in drupal:8.0.0 and is removed from drupal:9.0.0. Use
         \Drupal\Core\Link::fromTextAndUrl() instead.
 ------ ----------------------------------------------------------------------------------------------

 ------ ----------------------------------------------------------------------------------------------
  Line   src/Form/SpamMasterLogForm.php
 ------ ----------------------------------------------------------------------------------------------
  53     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,
  54     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.
  56     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,
  72     Call to deprecated function db_truncate():
         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 truncate() on it. For example,
  73     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.
  295    Call to an undefined method Drupal\Core\Database\Query\ExtendableInterface::orderByHeader().
 ------ ----------------------------------------------------------------------------------------------

 ------ -------------------------------------------------------------------------
  Line   src/Form/SpamMasterProtectionForm.php
 ------ -------------------------------------------------------------------------
  541    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,
  552    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,
  563    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,
  574    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,
  585    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,
  596    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,
  607    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,
  618    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,
  629    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,
  640    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,
  651    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,
  702    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,
 ------ -------------------------------------------------------------------------

 ------ ----------------------------------------------------------------
  Line   src/Form/SpamMasterSettingsForm.php
 ------ ----------------------------------------------------------------
  157    Variable $license_status might not be defined.
  166    Variable $spammaster_alert_level_label might not be defined.
  166    Variable $spammaster_alert_level_text might not be defined.
  179    Variable $protection_total_number_text might not be defined.
  191    Variable $spammaster_alert_level_p_label might not be defined.
  238    Result of function header (void) is used.
 ------ ----------------------------------------------------------------

 ------ ----------------------------------------------------------------------------------------------
  Line   src/Form/SpamMasterWhiteForm.php
 ------ ----------------------------------------------------------------------------------------------
  28     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,
  29     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.
  31     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,
  93     Call to an undefined method Drupal\Core\Database\Query\ExtendableInterface::orderByHeader().
  164    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,
  186    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,
  192    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,
  203    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,
  206    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,
 ------ ----------------------------------------------------------------------------------------------

 ------ --------------------------------------------------------------------------------------
  Line   src/Plugin/Block/SpamMasterFirewallStatusBlock.php
 ------ --------------------------------------------------------------------------------------
  27     Call to an undefined method Drupal\Core\Database\Query\ExtendableInterface::limit().
 ------ --------------------------------------------------------------------------------------

 ------ --------------------------------------------------------------------------------------
  Line   src/Plugin/Block/SpamMasterHeadsUpBlock.php
 ------ --------------------------------------------------------------------------------------
  27     Call to an undefined method Drupal\Core\Database\Query\ExtendableInterface::limit().
 ------ --------------------------------------------------------------------------------------


 [ERROR] Found 176 errors
🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India shaktik New Delhi

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024