Answers.Body: <p>Thanks to Demerit, we were able to identify the source file using this command in the console:</p>
  <pre><code>grep -r &quot;CRM_Utils_System::getUrlPath&quot; /home/ourserver/sitefolder/wp-content/uploads/civicrm/ext
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-07-07T10:08:17.803Z
Answers.LastActivityDate: 2021-07-07T10:08:17.803Z
Answers.UserDisplayName: Guillaume Sorel
Body: <p>We have thousands of the same warning on a 5.38. What should we do about it. Just not care? It fills up the logs and looking for anything else is not easy.</p>
  <p><code>[warning] Deprecated function CRM_Utils_System::getUrlPath, use CRM_Utils_System::currentPath. Array ( [civi.tag] =&gt; deprecated )</code></p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-07-02T11:12:35.970Z
Comments.Text: This is almost the same question as https://civicrm.stackexchange.com/questions/37917/what-should-i-do-about-deprecated-functions
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-07-03T18:48:54.057Z
Comments.Text: thanks @Demerit I've read the exchanges. I still feel lost to find in core or in a setting where to fix this (except not showing deprecated functions) :-/
Comments.UserDisplayName: Guillaume Sorel
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-07-03T22:29:53.377Z
Comments.Text: At [line 1036](https://github.com/civicrm/civicrm-core/blob/02ef1a69ca22ff6d12b2fef9d856669bce1fed55/CRM/Core/Error.php#L1036) insert a line  `CRM_Core_Error::backtrace('backTrace', TRUE);`. Then it might be easier to see where it's coming from, but my guess would be an extension so you could also `grep -r "CRM_Utils_System::getUrlPath" [your-extensions-folder]`
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-07-05T06:11:57.770Z
Comments.Text: thanks we'll give a try.
Comments.UserDisplayName: Guillaume Sorel
Tags: <logs>
Title: Warning in logs: Deprecated function CRM_Utils_System::getUrlPath
ThreadText: # Warning in logs: Deprecated function CRM_Utils_System::getUrlPath
  
  (Asked by: username_0 on 2021-07-02)
  
  We have thousands of the same warning on a 5.38. What should we do about it. Just not care? It fills up the logs and looking for anything else is not easy.
  
  `[warning] Deprecated function CRM_Utils_System::getUrlPath, use CRM_Utils_System::currentPath. Array ( [civi.tag] => deprecated )`
  
  **Tags:** logs
  
  > **Comments:**
  > **username_1**: This is almost the same question as https://civicrm.stackexchange.com/questions/37917/what-should-i-do-about-deprecated-functions  
  > **username_0**: thanks @username_1 I've read the exchanges. I still feel lost to find in core or in a setting where to fix this (except not showing deprecated functions) :-/  
  > **username_1**: At [line 1036](https://github.com/civicrm/civicrm-core/blob/02ef1a69ca22ff6d12b2fef9d856669bce1fed55/CRM/Core/Error.php#L1036) insert a line  `CRM_Core_Error::backtrace('backTrace', TRUE);`. Then it might be easier to see where it's coming from, but my guess would be an extension so you could also `grep -r "CRM_Utils_System::getUrlPath" [your-extensions-folder]`  
  > **username_0**: thanks we'll give a try.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2021-07-07. Score: 1 | Accepted answer
  
  Thanks to username_1, we were able to identify the source file using this command in the console:
  grep -r "CRM_Utils_System::getUrlPath" /home/ourserver/sitefolder/wp-content/uploads/civicrm/ext
  
  
  ---
  
  