Problem/Motivation


 ------ ------------------------------------------------------------------------------------------------- 
  Line   /var/www/html/drupal/web/modules/contrib/site_audit/src/Checks/Extensions/Count.php  
 ------ ------------------------------------------------------------------------------------------------- 
         Class Drupal\site_audit\Check not found and could not be autoloaded.                             
 ------ ------------------------------------------------------------------------------------------------- 

 ------ ---------------------------------------------------------------------------------------------------- 
  Line   /var/www/html/drupal/web/modules/contrib/site_audit/src/Commands/SiteAuditCommands.php  
 ------ ---------------------------------------------------------------------------------------------------- 
  63     Call to deprecated method getOutput() of class Drush\Commands\DrushCommands.                        
 ------ ---------------------------------------------------------------------------------------------------- 

 ------ ---------------------------------------------------------------------------------------------------------------------- 
  Line   /var/www/html/drupal/web/modules/contrib/site_audit/src/Plugin/SiteAuditCheck/ContentDuplicateTitles.php  
 ------ ---------------------------------------------------------------------------------------------------------------------- 
  90     Call to deprecated function db_select().                                                                              
  102    Call to deprecated method entityManager() of class Drupal.                                                            
 ------ ---------------------------------------------------------------------------------------------------------------------- 

 ------ ------------------------------------------------------------------------------------------------------------------ 
  Line   /var/www/html/drupal/web/modules/contrib/site_audit/src/Plugin/SiteAuditCheck/ContentEntityTypes.php  
 ------ ------------------------------------------------------------------------------------------------------------------ 
  89     Call to deprecated method entityManager() of class Drupal.                                                        
 ------ ------------------------------------------------------------------------------------------------------------------ 

 ------ ----------------------------------------------------------------------------------------------------------------- 
  Line   /var/www/html/drupal/web/modules/contrib/site_audit/src/Plugin/SiteAuditCheck/ContentFieldCount.php  
 ------ ----------------------------------------------------------------------------------------------------------------- 
  87     Call to deprecated method entityManager() of class Drupal.                                                       
 ------ ----------------------------------------------------------------------------------------------------------------- 

 ------ --------------------------------------------------------------------------------------------------------------------- 
  Line   /var/www/html/drupal/web/modules/contrib/site_audit/src/Plugin/SiteAuditCheck/ContentFieldInstances.php  
 ------ --------------------------------------------------------------------------------------------------------------------- 
  86     Call to deprecated method entityManager() of class Drupal.                                                           
 ------ --------------------------------------------------------------------------------------------------------------------- 

 ------ ------------------------------------------------------------------------------------------------------------------- 
  Line   /var/www/html/drupal/web/modules/contrib/site_audit/src/Plugin/SiteAuditCheck/ContentVocabularies.php  
 ------ ------------------------------------------------------------------------------------------------------------------- 
  93     Call to deprecated method entityManager() of class Drupal.                                                         
  95     Call to deprecated function db_select().                                                                           
 ------ ------------------------------------------------------------------------------------------------------------------- 

 ------ ----------------------------------------------------------------------------------------------------------------- 
  Line   /var/www/html/drupal/web/modules/contrib/site_audit/src/Plugin/SiteAuditCheck/DatabaseCollation.php  
 ------ ----------------------------------------------------------------------------------------------------------------- 
  93     Call to deprecated function db_select().                                                                         
 ------ ----------------------------------------------------------------------------------------------------------------- 

 ------ -------------------------------------------------------------------------------------------------------------- 
  Line   /var/www/html/drupal/web/modules/contrib/site_audit/src/Plugin/SiteAuditCheck/DatabaseEngine.php  
 ------ -------------------------------------------------------------------------------------------------------------- 
  91     Call to deprecated function db_select().                                                                      
 ------ -------------------------------------------------------------------------------------------------------------- 

 ------ --------------------------------------------------------------------------------------------------------------------- 
  Line   /var/www/html/drupal/web/modules/contrib/site_audit/src/Plugin/SiteAuditCheck/DatabaseFragmentation.php  
 ------ --------------------------------------------------------------------------------------------------------------------- 
  75     Call to deprecated function db_select().                                                                             
 ------ --------------------------------------------------------------------------------------------------------------------- 

 ------ ---------------------------------------------------------------------------------------------------------------- 
  Line   /var/www/html/drupal/web/modules/contrib/site_audit/src/Plugin/SiteAuditCheck/DatabaseRowCount.php  
 ------ ---------------------------------------------------------------------------------------------------------------- 
  79     Call to deprecated function db_select().                                                                        
 ------ ---------------------------------------------------------------------------------------------------------------- 

 ------ ------------------------------------------------------------------------------------------------------------ 
  Line   /var/www/html/drupal/web/modules/contrib/site_audit/src/Plugin/SiteAuditCheck/DatabaseSize.php  
 ------ ------------------------------------------------------------------------------------------------------------ 
  61     Call to deprecated function db_select().                                                                    
 ------ ------------------------------------------------------------------------------------------------------------ 

 ------ --------------------------------------------------------------------------------------------------------------------- 
  Line   /var/www/html/drupal/web/modules/contrib/site_audit/src/Plugin/SiteAuditCheck/UsersBlockedNumberOne.php  
 ------ --------------------------------------------------------------------------------------------------------------------- 
  60     Call to deprecated function db_select().                                                                             
 ------ --------------------------------------------------------------------------------------------------------------------- 

 ------ ------------------------------------------------------------------------------------------------------------- 
  Line   /var/www/html/drupal/web/modules/contrib/site_audit/src/Plugin/SiteAuditCheck/UsersCountAll.php  
 ------ ------------------------------------------------------------------------------------------------------------- 
  57     Call to deprecated function db_select().                                                                     
 ------ ------------------------------------------------------------------------------------------------------------- 

 ------ ----------------------------------------------------------------------------------------------------------------- 
  Line   /var/www/html/drupal/web/modules/contrib/site_audit/src/Plugin/SiteAuditCheck/UsersCountBlocked.php  
 ------ ----------------------------------------------------------------------------------------------------------------- 
  61     Call to deprecated function db_select().                                                                         
 ------ ----------------------------------------------------------------------------------------------------------------- 

 ------ -------------------------------------------------------------------------------------------------------------- 
  Line   /var/www/html/drupal/web/modules/contrib/site_audit/src/Plugin/SiteAuditCheck/UsersRolesList.php  
 ------ -------------------------------------------------------------------------------------------------------------- 
  58     Call to deprecated function db_select().                                                                      
 ------ -------------------------------------------------------------------------------------------------------------- 

 ------ ---------------------------------------------------------------------------------------------------------- 
  Line   /var/www/html/drupal/web/modules/contrib/site_audit/src/Plugin/SiteAuditCheck/ViewsCount.php  
 ------ ---------------------------------------------------------------------------------------------------------- 
  69     Call to deprecated method entityManager() of class Drupal.                                                
 ------ ---------------------------------------------------------------------------------------------------------- 

 ------ ----------------------------------------------------------------------------------------------------------- 
  Line   /var/www/html/drupal/web/modules/contrib/site_audit/src/Plugin/SiteAuditCheck/Watchdog404.php  
 ------ ----------------------------------------------------------------------------------------------------------- 
  71     Call to deprecated function db_select().                                                                   
 ------ ----------------------------------------------------------------------------------------------------------- 

 ------ ----------------------------------------------------------------------------------------------------------- 
  Line   /var/www/html/drupal/web/modules/contrib/site_audit/src/Plugin/SiteAuditCheck/WatchdogAge.php  
 ------ ----------------------------------------------------------------------------------------------------------- 
  69     Call to deprecated function db_select().                                                                   
  76     Call to deprecated function db_select().                                                                   
 ------ ----------------------------------------------------------------------------------------------------------- 

 ------ ------------------------------------------------------------------------------------------------------------- 
  Line   /var/www/html/drupal/web/modules/contrib/site_audit/src/Plugin/SiteAuditCheck/WatchdogCount.php  
 ------ ------------------------------------------------------------------------------------------------------------- 
  66     Call to deprecated function db_select().                                                                     
 ------ ------------------------------------------------------------------------------------------------------------- 

 ------ ----------------------------------------------------------------------------------------------------------- 
  Line   /var/www/html/drupal/web/modules/contrib/site_audit/src/Plugin/SiteAuditCheck/WatchdogPhp.php  
 ------ ----------------------------------------------------------------------------------------------------------- 
  74     Call to deprecated function db_select().                                                                   
 ------ ----------------------------------------------------------------------------------------------------------- 

                                                                                                                        
 [ERROR] Found 24 errors                                                                                                
                                                                                                                       

Comments

waverate created an issue. See original summary.

waverate’s picture

Issue summary: View changes
waverate’s picture

Issue tags: +Drupal 9 compatibility
waverate’s picture

Status: Active » Needs review
StatusFileSize
new16.47 KB

Patch attached.

waverate’s picture

StatusFileSize
new12.38 KB

Patch at #4 doesn't work. Here's one that takes care of only db_select().

waverate’s picture

drupal-check after patch at #5.

 ------ ---------------------------------------------------------------------- 
  Line   src/Checks/Extensions/Count.php                                       
 ------ ---------------------------------------------------------------------- 
         Class Drupal\site_audit\Check not found and could not be autoloaded.  
 ------ ---------------------------------------------------------------------- 

 ------ ------------------------------------------------ 
  Line   src/Commands/SiteAuditCommands.php              
 ------ ------------------------------------------------ 
  63     Call to deprecated method getOutput() of class  
         Drush\Commands\DrushCommands.                   
 ------ ------------------------------------------------ 

 ------ ------------------------------------------------------------ 
  Line   src/Plugin/SiteAuditCheck/ContentDuplicateTitles.php        
 ------ ------------------------------------------------------------ 
  102    Call to deprecated method entityManager() of class Drupal.  
 ------ ------------------------------------------------------------ 

 ------ ------------------------------------------------------------ 
  Line   src/Plugin/SiteAuditCheck/ContentEntityTypes.php            
 ------ ------------------------------------------------------------ 
  89     Call to deprecated method entityManager() of class Drupal.  
 ------ ------------------------------------------------------------ 

 ------ ------------------------------------------------------------ 
  Line   src/Plugin/SiteAuditCheck/ContentFieldCount.php             
 ------ ------------------------------------------------------------ 
  87     Call to deprecated method entityManager() of class Drupal.  
 ------ ------------------------------------------------------------ 

 ------ ------------------------------------------------------------ 
  Line   src/Plugin/SiteAuditCheck/ContentFieldInstances.php         
 ------ ------------------------------------------------------------ 
  86     Call to deprecated method entityManager() of class Drupal.  
 ------ ------------------------------------------------------------ 

 ------ ------------------------------------------------------------ 
  Line   src/Plugin/SiteAuditCheck/ContentVocabularies.php           
 ------ ------------------------------------------------------------ 
  93     Call to deprecated method entityManager() of class Drupal.  
 ------ ------------------------------------------------------------ 

 ------ ------------------------------------------------------------ 
  Line   src/Plugin/SiteAuditCheck/ViewsCount.php                    
 ------ ------------------------------------------------------------ 
  69     Call to deprecated method entityManager() of class Drupal.  
 ------ ------------------------------------------------------------ 

                                                                                
 [ERROR] Found 8 errors                                                         
                                                                                
waverate’s picture

StatusFileSize
new18.07 KB

Updated patch at #5 to take care of db_select() and entityManager() depreciations.

waverate’s picture

drupal-check after patch at #7:

 ------ ---------------------------------------------------------------------- 
  Line   src/Checks/Extensions/Count.php                                       
 ------ ---------------------------------------------------------------------- 
         Class Drupal\site_audit\Check not found and could not be autoloaded.  
 ------ ---------------------------------------------------------------------- 

 ------ ------------------------------------------------ 
  Line   src/Commands/SiteAuditCommands.php              
 ------ ------------------------------------------------ 
  63     Call to deprecated method getOutput() of class  
         Drush\Commands\DrushCommands.                   
 ------ ------------------------------------------------ 

                                                                                
 [ERROR] Found 2 errors                                                         
                                                                                

  • jrglasgow committed ffcf2dd on 8.x-3.x authored by waverate
    Issue #3050858 by waverate: Drupal 9 Deprecated Code Report
    
jrglasgow’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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