Skip to content

Error Reference ​

This page documents error codes that appear in the WordPress admin interface and plugin logs. For API error codes returned in REST responses, see the complete Error Messages reference.

Admin-Facing Error Codes ​

These errors appear as WordPress admin notices or in the plugin's log output.

Organization Errors ​

Error CodeMeaningFix
MIDDAG-ORG-NOT_FOUNDThe requested organization does not existVerify the organization ID. It may have been deleted or the ID is from another site
MIDDAG-ORG-CNPJ_INVALIDCNPJ failed validation against the federal APICorrect the CNPJ number. Ensure it passes check-digit validation
MIDDAG-ORG-CNPJ_DUPLICATEAnother organization already uses this CNPJSearch existing organizations for the duplicate. Merge if appropriate
MIDDAG-ORG-DELETE_DENIEDNon-owner attempted to delete an organizationOnly the organization owner can delete it. Contact the owner or a site admin

Collaborator Errors ​

Error CodeMeaningFix
MIDDAG-COLLAB-NOT_FOUNDCollaborator record does not existThe user may not be a member of the organization. Verify the collaborator ID
MIDDAG-COLLAB-INVITE_EXPIREDThe invitation link has expiredSend a new invitation. Default expiry is configured in plugin settings
MIDDAG-COLLAB-INVITE_USEDThe invitation was already accepted or rejectedNo action needed if already accepted. Send a new invite if the user needs re-access
MIDDAG-COLLAB-ALREADY_MEMBERUser is already a collaborator in this organizationThe user already has access. Adjust their role if needed instead of re-inviting
MIDDAG-COLLAB-ROLE_ESCALATIONAttempted to assign a role higher than the assigner'sOnly users with equal or higher roles can assign. Use an admin account

Entitlement Errors ​

Error CodeMeaningFix
MIDDAG-ENT-NOT_FOUNDEntitlement does not existVerify the entitlement code. Check if it was cancelled and purged
MIDDAG-ENT-ALREADY_CANCELLEDEntitlement is already in cancelled stateNo further cancellation needed. To reactivate, create a new entitlement
MIDDAG-ENT-INVALID_TRANSITIONThe requested status change is not allowedCheck the valid transitions: active, suspended, expired, cancelled. Not all paths exist
MIDDAG-ENT-INVALID_CLASSThe entitlement class is not recognizedUse one of the six valid classes: Plugin, Environment, Service, Order, Affiliate, Education

Quote Errors ​

Error CodeMeaningFix
MIDDAG-QUOTE-NOT_FOUNDQuote does not existVerify the quote ID or check if it was deleted
MIDDAG-QUOTE-ALREADY_ACCEPTEDQuote was already acceptedA quote can only be accepted once. Create a new quote if terms changed
MIDDAG-QUOTE-EXPIREDQuote validity period has passedCreate a new quote with updated terms and expiry date
MIDDAG-QUOTE-INVALID_TRANSITIONStatus change not allowedQuotes follow a defined lifecycle. Check valid transitions from current state

License Errors ​

Error CodeMeaningFix
MIDDAG-LIC-NOT_FOUNDLicense does not existVerify the license key or ID
MIDDAG-LIC-UNAVAILABLELicense system is temporarily unavailableRetry after a few minutes. Check server logs for infrastructure issues
MIDDAG-LIC-ACTIVATION_LIMITMaximum site activations reachedDeactivate an existing site or upgrade the license to increase the limit
MIDDAG-LIC-DOMAIN_REQUIREDDomain parameter missing from activation requestInclude the site domain when activating a license
MIDDAG-LIC-DOMAIN_NOT_ACTIVEThe specified domain is not currently activatedActivate the domain first, or check for typos in the domain name

Authentication Errors ​

Error CodeMeaningFix
MIDDAG-AUTH-INVALID_CREDSEmail or password is incorrectVerify credentials. Use the password reset flow if needed
MIDDAG-AUTH-TOKEN_EXPIREDJWT has expiredRequest a new token. Default expiry is configurable in settings
MIDDAG-AUTH-TOKEN_REVOKEDToken was revoked by a logout actionAuthenticate again to obtain a fresh token
MIDDAG-AUTH-EMAIL_UNVERIFIEDUser's email address has not been verifiedCheck the inbox for the verification email. Resend from the admin panel
MIDDAG-AUTH-ACCOUNT_DISABLEDUser account has been disabled by an adminContact a site administrator to re-enable the account
MIDDAG-AUTH-RATE_LIMITEDToo many authentication attemptsWait before retrying. Default rate limit is 5 attempts per minute

Service Errors ​

Error CodeMeaningFix
MIDDAG-SVC-NOT_FOUNDService definition does not existVerify the service ID in the admin panel
MIDDAG-SVC-INVALID_TRANSITIONStatus change not allowed for this serviceCheck valid status transitions for the service type
MIDDAG-SR-NOT_FOUNDService request does not existVerify the service request ID
MIDDAG-SR-INVALID_TRANSITIONStatus change not allowed for this requestCheck valid status transitions from the current state
MIDDAG-SR-ENV_ONLYClients can only create SRs for ENV entitlementsService requests from client portal are restricted to Environment class

API Transport Errors ​

These are generic API-level errors, not specific to a domain:

CodeHTTPWhen It Happens
VALIDATION_ERROR422One or more input fields are invalid
AUTHENTICATION_ERROR401Missing, expired, or invalid token
AUTHORIZATION_ERROR403Insufficient permissions
NOT_FOUND404Resource does not exist
CONFLICT409Conflicting state
RATE_LIMIT429Rate limit exceeded
INTERNAL_ERROR500Unexpected server error

For full details on API error response structure, field-level validation errors, and client-side error handling examples, see the Error Messages reference.