Template Not Found Errors #
Template errors occur when PetMatchPro can’t locate or access the template file needed to display your search or detail page. There are two main causes: license tier mismatches and actually missing files.
License Tier Mismatch #
Symptom: An upgrade message appears instead of your animal listings, with a link to petmatchpro.com/my-account/.
Cause: You selected a non-default template that requires a higher license tier. PetMatchPro checks your license before looking for the template file. If you’re on the Basic tier and select anything other than a default template, you’ll see this message.
Fix:
- Option 1: Switch to a default template in General Options. Default templates (containing “default” in the name) work on all tiers.
- Option 2: Upgrade to Junior or Preferred to unlock all templates.
- Option 3: If using a shortcode
templateparameter, remove it to use the admin default:[pmp-search]
Template File Missing #
Symptom: Error message saying “Search/Detail template file not found: [filename]”.
Cause: The template file referenced in your settings or shortcode doesn’t exist on disk.
Fix:
- Check the template name — Go to General Options and verify the template selection for your method type. Make sure it matches an available template for your partner.
- Check shortcode override — If using
template="..."in a shortcode, verify the template name is spelled correctly and exists for your partner. - Check for plugin updates — An older version of PetMatchPro may not include newer templates. Update to the latest version.
Theme Template Issues #
Symptom: A template with “(theme)” suffix doesn’t display correctly or shows an error.
Cause: You selected a theme template override, but the template file doesn’t exist in your theme’s override directory.
Fix:
- Verify the file exists at:
wp-content/themes/your-theme/petmatchpro/templates/{partner}/
where{partner}ispp,af, orrg. - Make sure the file name matches exactly (case-sensitive on Linux servers).
- If you haven’t set up theme overrides yet, switch back to a plugin template (one without “(theme)” suffix).
See Theme Template Overrides for setup instructions.
How Template Resolution Works #
When PetMatchPro loads a template, it follows this order:
- License check — Is your tier high enough for this template? If not, show upgrade message.
- Theme check — If the template has a “(theme)” suffix, look in your theme directory first.
- Plugin check — Look for the template in the plugin’s template directory.
- Error — If not found anywhere, display a “template not found” error.
Quick Fix: Reset to Default #
If you’re stuck, the fastest fix is to reset to default templates:
- Go to General Options.
- For each method type, select the template containing “default” in the name.
- Click Apply Changes.
- Remove any
template="..."parameters from your shortcodes.
Next Steps #
- Search Templates Gallery — See all available templates
- Detail Templates Gallery — Browse detail templates
- Understanding License Tiers — Which templates each tier includes