Troubleshooting the Credentium® Integration Plugin for Moodle
This guide helps you diagnose and resolve common issues with the Credentium® Integration plugin.
Quick Diagnostics
Check Plugin Status
Is the plugin enabled?
- Site Administration > Plugins > Local plugins > Credentium® Integration
- Verify "Enable Credentium Integration" is checked
Are API credentials configured?
- Check API URL and API Key are filled in
- Click "Test connection" to verify
Is the course configured?
- Course > More > Credentium Settings
- Verify "Enable Credentium for this course" is checked
- Verify a template is selected
Is course completion tracking enabled?
- Site Administration > Advanced features > Enable completion tracking
- Course settings > Completion tracking = Yes
Issuance Report
Accessing the Report
Location: Site Administration > Reports > Credentium Report
The report shows all credential issuance attempts with:
- User and course information
- Status (Pending, Issued, Failed, Retrying)
- Grade values
- Error messages
- Timestamps
Understanding Status Colors
| Color | Status | Meaning |
|---|---|---|
| Green | Issued | Credential successfully issued |
| Yellow | Pending | Waiting to be processed |
| Yellow | Retrying | Previous attempt failed, trying again |
| Red | Failed | Issuance failed after all retries |
Retry Actions
For failed or pending credentials:
- Click the Retry button on the row
- Or click Process Pending to retry all pending items
- Check the report again after a few minutes
Common Issues
No Credentials Being Issued
Symptoms: Course completions don't trigger credentials
Checklist:
- ✓ Plugin enabled globally (Enable Credentium Integration)
- ✓ Course enabled (Enable Credentium for this course)
- ✓ Template selected for course
- ✓ Course completion tracking enabled
- ✓ Completion criteria set for course
- ✓ Cron running regularly (check Scheduled tasks)
- ✓ Category not paused (if using category mode)
Debug Steps:
- Enable debug logging in plugin settings
- Complete a test course
- Check PHP error log for
[Credentium]entries - Check the issuance report for new entries
Connection Test Fails
Symptoms: "Test connection" shows error
Common Causes:
| Error | Cause | Solution |
|---|---|---|
| "API URL is invalid" | Malformed URL | Use full URL with https:// |
| "Connection refused" | Firewall blocking | Allow outbound HTTPS to Credentium |
| "401 Unauthorized" | Wrong API key | Check API key is correct |
| "404 Not Found" | Wrong API URL | Verify API URL is correct |
| "SSL certificate error" | SSL issues | Update server certificates |
Verify API Credentials:
- Log in to Credentium Issuer
- Go to Organization Settings > API Keys
- Copy the API key and URL
- Paste into Moodle settings
Credentials Stuck in "Pending"
Symptoms: Credentials remain pending for a long time
Common Causes:
Cron not running
- Check: Site Administration > Server > Scheduled tasks
- Find "Process pending credentials"
- Verify last run time is recent
- Run manually:
php admin/cli/scheduled_task.php --execute=\\local_credentium\\task\\process_pending_credentials
Grade not ready
- If "Send grade" is enabled, plugin waits for grade aggregation
- Check gradebook for the student
- Wait up to 45 minutes for retry attempts
Rate limit exceeded
- If category rate limit is set, credentials queue
- Check category settings for rate limit
- Wait for hourly window to reset
Category paused
- Check category settings for "Pause all issuances"
- Uncheck to resume processing
Credentials Failing
Symptoms: Credentials show "Failed" status
Check Error Messages:
- Go to issuance report
- Hover over the red badge to see error
- Click "Debug" button for detailed info
Common Errors:
| Error | Cause | Solution |
|---|---|---|
| "Template not found" | Template deleted or deactivated | Select a different template |
| "Invalid template" | Template has multiple assessments | Use single-assessment template |
| "API error" | API returned error | Check API credentials |
| "Rate limit exceeded" | Too many requests | Wait and retry |
| "Invalid grade" | Grade format issue | Check gradebook configuration |
Grades Not Appearing in Credentials
Symptoms: Credential issued but grade is empty
Checklist:
- ✓ "Send grade" enabled in course settings
- ✓ Course has a grade item
- ✓ Student has a final grade
- ✓ Grade aggregation is complete
Debug:
- Check gradebook: Course > Grades > View gradebook
- Verify student has a course total grade
- Check if gradebook needs recalculation
Templates Not Showing
Symptoms: Template dropdown is empty or missing expected templates
Solutions:
- Click Refresh templates on course settings page
- Check template is "Active" in Credentium
- Verify API credentials are correct
- Check for templates with multiple assessments (shown as unsupported)
Category Settings Not Appearing
Symptoms: Can't find category settings option
Checklist:
- ✓ "Enable category mode" checked in global settings
- ✓ You have
local/credentium:managecategorycapability - ✓ You're in the correct category (not a course)
Debugging Tools
Debug Logging
Enable:
- Site Administration > Plugins > Local plugins > Credentium® Integration
- Check "Enable debug logging"
- Save changes
View Logs:
- Logs written to PHP error log
- Location depends on server config (usually
/var/log/apache2/error.logor/var/log/php-fpm/error.log) - Search for
[Credentium]prefix
Log Information:
- Event processing details
- API requests and responses
- Grade calculations
- Error traces
Important: Disable debug logging in production after troubleshooting.
Debug Page
Access: Click "Debug" on any issuance record in the report
Shows:
- Full issuance record details
- Course configuration
- API connection test results
- Template availability check
Test Connection Page
Access:
- Settings page > Test connection button
- Or:
/local/credentium/testconnection.php?sesskey=...
Tests:
- API URL accessibility
- API key validity
- Template retrieval
Manual Processing
Process Single Credential
- Go to issuance report
- Click "Debug" on the credential
- Click "Process This Credential Now"
Process All Pending
- Go to issuance report
- Click "Process Pending (N)" button at top
- Wait for processing to complete
Via Command Line
# Run the scheduled task manually
php admin/cli/scheduled_task.php \
--execute=\\local_credentium\\task\\process_pending_credentials
# Check task status
php admin/cli/scheduled_task.php --list | grep credentium
Performance Issues
Slow Issuance
Symptoms: Credentials take a long time to issue
Causes:
- Cron running infrequently
- API response slow
- Many pending credentials
Solutions:
- Ensure cron runs at least every 5 minutes
- Check network connectivity to Credentium
- Process pending credentials in smaller batches
High Database Load
Symptoms: Moodle slows down with many credentials
Solutions:
- Ensure database indexes are in place (automatic on install)
- Archive old issuance records if needed
- Monitor table sizes
GDPR Compliance
The plugin implements full GDPR compliance through Moodle's Privacy API.
Key points:
- Automatic data retention with configurable period (default: 365 days)
- User data automatically deleted when users are removed from Moodle
- Support for data export requests via Moodle's privacy tools
- Personal data transmitted to external Credentium® API for credential issuance
For complete details, see the dedicated Privacy and GDPR Compliance article.
Getting Help
Before Contacting Support
Gather this information:
- Moodle version
- Plugin version (Site Administration > Plugins > Plugins overview)
- Error messages (exact text)
- Debug log entries (if available)
- Steps to reproduce the issue
Contact Information
Credentium Support Email: support@credentium.com
GitHub Issues For bug reports: GitHub Issues
Last updated: January 2026
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article