Skip to content

Volunteer Opportunities on WordPress permissions error #577

@kelizoliva

Description

@kelizoliva

Since the most recent CiviCRM Security Release (5.40.3), though possibly earlier, we have been experiencing the follownig error for a Civi-WordPress implementation:

Sep 09 13:30:00  [error]
$Fatal Error Details = array:3 [
  "message" => "You do not have permission to access this page."
  "code" => null
  "exception" => CRM_Core_Exception {#4059
    -errorData: array:1 [
      "error_code" => 0
    ]
    #cause: null
    -_trace: null
    #message: "You do not have permission to access this page."
    #code: 0
    #file: "/var/www/test/web/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php"
    #line: 605
    trace: {
      /var/www/test/web/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php:605 {
        ›   status_header(403);
        ›   throw new CRM_Core_Exception(ts('You do not have permission to access this page.'));
        › }
      }
      /var/www/test/web/wp-content/plugins/civicrm/civicrm/CRM/Utils/System.php:60 { …}
      /var/www/test/web/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:233 { …}
      /var/www/test/web/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:69 { …}
      /var/www/test/web/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:36 { …}
      /var/www/test/web/wp-content/plugins/civicrm/civicrm.php:1178 { …}
      /var/www/test/web/wp-includes/class-wp-hook.php:303 { …}
      /var/www/test/web/wp-includes/class-wp-hook.php:327 { …}
      /var/www/test/web/wp-includes/plugin.php:518 { …}
      /var/www/test/web/wp-includes/class-wp.php:763 { …}
      /var/www/test/web/wp-includes/functions.php:1291 { …}
      /var/www/test/web/wp-blog-header.php:16 { …}
      /var/www/test/web/index.php:17 { …}
    }
  }
]

This is when attempting to, as an anonymous user, access crm/?page=CiviCRM&q=civicrm/vol/#/volunteer/opportunities

We/the client have not made any changes to permissions since this was last working. We have AJAX API and CiviVolunteer: register to volunteer permissions are granted on anonymous users.

Is anyone else using a WP implementation experiencing this, and if so, does this seem like a bug in CiviVolunteer, or a configuration issue that needs to be addressed?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions