Skip to content

Operations and Troubleshooting

Job van Koeveringe edited this page Nov 3, 2026 · 6 revisions

Operations and Troubleshooting

Use this page after installation to monitor the connection, maintain logs, and recover from common deployment problems.

Site Health

Open Tools > Site Health in WordPress. The plugin adds checks for:

Check What it verifies
Runtime HTTPS and the PHP functions needed for secure sessions and ID token validation.
Configuration Client ID and Client Secret are stored.
Scopes Required scopes exist and enabled profile features have their required scopes.
Provider Discovery, required endpoints, PKCE S256 support, and signing keys are usable.
Login redirect The selected redirect mode and custom URL are valid.
Log storage The log table and expected schema are available.
Log cleanup A daily cleanup job is scheduled and not overdue.

The Info tab provides a redacted Scouting OpenID Connect section for support requests. It intentionally omits the Client Secret, raw user claims, and log messages.

The existing Site Health checks do not replace testing SOL role synchronization, mapping outcomes, or WooCommerce product access. A healthy provider response alone does not prove that the optional role graph is present or up to date. The scope check only validates WordPress settings. Provider discovery cannot confirm which scopes are enabled for your individual managed website connection.

Logging and retention

Open Scouting OIDC > Logging to view, filter, and export plugin log entries. Only administrators with the manage_options capability can access or export these logs.

Logs can contain personal data such as user IDs and SOL IDs. Configure the retention period in Scouting OIDC > Settings and keep it no longer than your operational and privacy requirements need. The default is 30 days; the allowed range is 1 to 3650 days.

The plugin schedules daily cleanup. If WordPress cron is disabled, ensure an external cron runner calls WordPress scheduled tasks. Site Health identifies an overdue cleanup and provides an administrator action to run cleanup immediately.

Login button is missing or login fails

If the Login with Scouts Online button is missing:

  1. Confirm the Client ID and Client Secret are configured.
  2. Confirm the normal wp-login.php form is being used and another plugin or custom login page is not replacing the login_form hook.
  3. For a shortcode button, confirm the shortcode is rendered in content processed by WordPress shortcodes.

If the button is visible but login fails after it is activated:

  1. Confirm WordPress recognizes the request as HTTPS.
  2. For a reverse proxy or container platform, follow HTTPS and reverse proxies.
  3. Check Tools > Site Health for provider, HTTPS, or scope errors.
  4. Review Scouting OIDC > Logging for the timestamp of the failed attempt.

The regular WordPress login form remains available when the Scouting option cannot start a secure session.

Provider rejects the request

Most provider errors result from a mismatch between the managed website connection and WordPress. Check:

  • The redirect URI is the exact public WordPress home URL, including scheme and trailing slash.
  • The post-logout redirect URI is also registered.
  • The Client ID and Client Secret belong to the intended connection.
  • openid, membership, profile, and email are allowed in Scouts Online and configured in WordPress.
  • PKCE is enabled in the managed website connection.
  • The requesting member belongs to an organization allowed by the connection.

Scope errors

An invalid_scope error or a message such as Check the roles scope. means the provider rejected a requested scope. The same recovery applies to address, phone, and the required scopes, not just roles. Updated plugin versions explain the rejection on the login page; older versions may show the terse provider message.

Users should contact the website administrator. Administrators should:

  1. Compare Scouting OIDC > Settings > OpenID Connect Settings > Scopes with the scopes enabled for this website at Managed websites at login.scouting.nl.
  2. Enable each requested scope for that connection, or remove optional scopes that the site does not use from WordPress.
  3. Keep openid, membership, profile, and email enabled in both places. If using SOL role mapping or assignment-based product restrictions, keep roles enabled in both places too.
  4. Save the settings and start a fresh login rather than reusing a callback URL.

A green Site Health result does not verify provider-side connection permissions.

User cannot be created or signed in

Review the error shown on wp-login.php and the administrator log. Common causes include:

Symptom Likely cause and action
SOL ID is missing Add the membership scope at both the provider and WordPress.
Email is missing Add the email scope at both the provider and WordPress.
Account is already linked to another identity Do not change account metadata manually. Investigate the existing binding before granting access.
Email address is already in use Adjust the duplicate-email policy or resolve the existing WordPress account according to your identity policy.
New user is not created Enable Allow new user accounts, or create and correctly bind the intended local account through your controlled process.
Scouts Online role is not permitted Inspect all matching saved rules under SOL Role Mapping using Test a User. Any matching deny blocks login regardless of order.
Access level could not be updated Check that the selected WordPress role still exists and review roles component logs for a mapping failure.

SOL assignments or role decisions look wrong

  1. Confirm roles is configured in both the managed website connection and WordPress scopes.
  2. Complete a fresh OIDC login; opening the Explorer or tester does not refresh provider data.
  3. Select an organization and Filter in the Role Explorer. Unit and role filters are optional; the Explorer includes stored dated assignments, not just active ones.
  4. Use Test a User with an exact WordPress username or user ID to inspect active stored assignments and every matching saved rule.
  5. Check assignment dates, deny conditions, organization ancestry, the site's WordPress default role, and the plugin Settings option to add the default role alongside mapped roles. Rule order does not affect authorization. Role removals occur at successful OIDC login, not in the background.
  6. Review the roles component in Scouting OIDC > Logging. Missing graphs preserve stored records but make assignments unavailable for authorization: configured mapping rules block login, and restricted products fail closed for signed-in users. Without mapping rules, ordinary login still works. Invalid graphs or failed synchronization writes stop OIDC login before role mapping. Enable the optional roles scope in both systems and complete a fresh successful login to restore authorization; this is also required after upgrading to the freshness check.

A default-role preview is not a guarantee of successful login; provider, identity-binding, and new-account checks still apply. See SOL Roles and Mapping.

Date-only SOL start and end dates use Europe/Amsterdam, not the WordPress timezone. End dates are inclusive; stored timestamps and Explorer output are UTC. A UTC start timestamp on the previous date is expected. Complete a fresh OIDC login to replace previously stored dates after a date-normalization update. See Assignment dates and timezone.

WooCommerce ordering is unexpectedly allowed or denied

Check Product data > SOL Access on the product, or on the parent product for a variation. Confirm both allow and deny selections and their independent matching switches:

  • Check the product and global Require SOL sign-in settings first; either blocks guests and non-SOL accounts.
  • With the roles scope disabled, saved organization/role rules are paused; SOL sign-in requirements still apply.
  • Empty allow fields allow customers, including guests, unless a deny matches or SOL sign-in is required. Unavailable assignment data blocks signed-in customers on assignment-restricted products.
  • With both allow fields populated, OR is the default unless Require both organisation and role is enabled.
  • AND matching requires both conditions on the same active assignment.
  • Descendants are included by default; a selected region can match group assignments.
  • Any deny match overrides all allow matches, as it does for login mapping.

Refresh the customer's SOL data through a new OIDC login and retry the cart. See WooCommerce SOL Access for examples and enforcement boundaries.

Log storage or cleanup needs attention

If Site Health reports missing log storage, deactivate and reactivate the plugin to recreate its log table. If cleanup is unscheduled or overdue, use the Site Health action to run cleanup now, then investigate WordPress cron and loopback request health.

Escalation information

When requesting help, provide:

  • The plugin version and WordPress version.
  • The relevant Site Health result, preferably the redacted Info section.
  • The approximate time of the failure and its visible error message.
  • Whether the site is behind a proxy, without sharing secrets or session cookies.
  • A redacted log export when support has asked for it.

Never include a Client Secret, authorization code, access token, ID token, or session cookie in an issue, email, or chat message.

Clone this wiki locally