Answers.Body: <p>I have submitted a <a href="https://github.com/agileware/au.com.agileware.ewayrecurring/pull/42" rel="nofollow noreferrer">PR</a> for the fix, you can apply the <a href="https://github.com/agileware/au.com.agileware.ewayrecurring/pull/42.patch" rel="nofollow noreferrer">patch</a> or wait for the maintainer to merge and release a new version.</p>
  <p>HTH</p>
  <p>Pradeep</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-04-25T09:17:10.823Z
Answers.Text: Implemented fix and tested with success!
Answers.UserDisplayName: Garry Hyman
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-04-25T07:58:29.767Z
Answers.LastActivityDate: 2024-04-25T07:58:29.767Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>Wordpress: 6.5.2
  CiviCRM: 5.72.1 (just upgraded and get the warning below now)
  PHP: 8.1
  MySQL: 8</p>
  <h2>Warning error on any CiviCRM screen:</h2>
  <p>Deprecated: Permission 'view payment tokens' should be declared with 'label' and 'description' keys. See <a href="https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_permission/" rel="nofollow noreferrer">https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_permission/</a> Caller: CRM_Core_Permission::assembleBasicPermissions in mywebsite/wp-content/plugins/civicrm/civicrm/CRM/Core/Error.php on line 1129</p>
  <p>Deprecated: Permission 'edit payment tokens' should be declared with 'label' and 'description' keys. See <a href="https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_permission/" rel="nofollow noreferrer">https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_permission/</a> Caller: CRM_Core_Permission::assembleBasicPermissions in mywebsite/wp-content/plugins/civicrm/civicrm/CRM/Core/Error.php on line 1129</p>
  <p>Can anybody help me with this warning. It leads to 2 x warnings being displayed on every page displayed. Also I noticed that when I went to check the eWay payment processor CiviCRM would NOT display the configured record. Note: Once I commented out the line 1129 as per above it would display the eWay record. Have tested a live donation with the commented out code and it works currently.</p>
  <p>Thanks in advance for your help.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-04-24T14:54:49.937Z
Comments.Text: Can you find in the code file under the extension or module for 'edit payment tokens' is from which extension or module?
Comments.UserDisplayName: Pradeep Nayak
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-04-24T22:55:35.353Z
Comments.Text: Found the following in eWay wp-content/uploads/civicrm/ext/au.com.agileware.ewayrecurring/eWAYRecurring.php as follows:  `                               /**
   * Implements hook_civicrm_permission
   *
   * @param $permissions permissions list to add to
   */
  function ewayrecurring_civicrm_permission(&$permissions) {
    $permissions['view payment tokens'] = E::ts('CiviContribute: view payment tokens');
    $permissions['edit payment tokens'] = E::ts('CiviContribute: edit payment tokens');
  }`
Comments.UserDisplayName: Garry Hyman
Tags: <wordpress><upgrade>
Title: Warning after upgrade to 5.72.1 wordpress re Deprecation Permission 'view payment tokens'
ThreadText: # Warning after upgrade to 5.72.1 wordpress re Deprecation Permission 'view payment tokens'
  
  (Asked by: username_0 on 2024-04-24)
  
  Wordpress: 6.5.2
  CiviCRM: 5.72.1 (just upgraded and get the warning below now)
  PHP: 8.1
  MySQL: 8
  
  ## Warning error on any CiviCRM screen:
  
  Deprecated: Permission 'view payment tokens' should be declared with 'label' and 'description' keys. See <https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_permission/> Caller: CRM\_Core\_Permission::assembleBasicPermissions in mywebsite/wp-content/plugins/civicrm/civicrm/CRM/Core/Error.php on line 1129
  
  Deprecated: Permission 'edit payment tokens' should be declared with 'label' and 'description' keys. See <https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_permission/> Caller: CRM\_Core\_Permission::assembleBasicPermissions in mywebsite/wp-content/plugins/civicrm/civicrm/CRM/Core/Error.php on line 1129
  
  Can anybody help me with this warning. It leads to 2 x warnings being displayed on every page displayed. Also I noticed that when I went to check the eWay payment processor CiviCRM would NOT display the configured record. Note: Once I commented out the line 1129 as per above it would display the eWay record. Have tested a live donation with the commented out code and it works currently.
  
  Thanks in advance for your help.
  
  **Tags:** wordpress, upgrade
  
  > **Comments:**
  > **username_1**: Can you find in the code file under the extension or module for 'edit payment tokens' is from which extension or module?  
  > **username_0**: Found the following in eWay wp-content/uploads/civicrm/ext/au.com.agileware.ewayrecurring/eWAYRecurring.php as follows:  `                               /**  * Implements hook_civicrm_permission  *  * @param $permissions permissions list to add to  */ function ewayrecurring_civicrm_permission(&$permissions) {   $permissions['view payment tokens'] = E::ts('CiviContribute: view payment tokens');   $permissions['edit payment tokens'] = E::ts('CiviContribute: edit payment tokens'); }`  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2024-04-25. Score: 1 | Accepted answer
  
  I have submitted a [PR](https://github.com/agileware/au.com.agileware.ewayrecurring/pull/42) for the fix, you can apply the [patch](https://github.com/agileware/au.com.agileware.ewayrecurring/pull/42.patch) or wait for the maintainer to merge and release a new version.
  
  HTH
  
  Pradeep
  
  > **Comments:**
  > **username_0**: Implemented fix and tested with success!  
  
  ---
  
  