Answers.Body: <p>Not sure which one you used - but this is still one of the best guides out there: </p>
  
  <p><a href="https://alastaira.wordpress.com/2011/03/17/civicrm-creating-a-custom-report/" rel="nofollow">https://alastaira.wordpress.com/2011/03/17/civicrm-creating-a-custom-report/</a></p>
  
  <p>Note: the .php goes into your custom_php and your .tpl goes into your custom_templates (and you must set these paths in the Administer -> System Settings -> Directories: Cutom PHP Path Directory and Custom Templates).</p>
  
  <p>After adding these paths and putting the .tpl and .php into place:</p>
  
  <p>Clear caches: Adminster -> System Settings -> Cleanup Caches and Updates Paths - and hit the Cleanup Caches button.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-05T01:41:49.877Z
Answers.Text: Thanks for the info. Ive followed that tutorial to the letter, save for the filenames to suit my report. In this tutorial he dosnt put in a run once command and in other tutorials they suggest adding one. Anyways it is still throwing errors, so time for me to stick back to law and pay a professional to do it...i know when im outgunned. Many thanks
Answers.UserDisplayName: Gary Martin
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-05T02:16:41.930Z
Answers.Text: If you can post some screenshots - happy ro have another look at it.
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-05T13:32:44.367Z
Answers.Text: Thanks karin but ive now fixed it. found some missing code.
Answers.UserDisplayName: Gary Martin
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-05T13:57:47.107Z
Answers.Text: Excellent! It's definitively not trivial to get into this - don't hesitate to post more Q if you think we can help out some more!
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-04T12:23:13.157Z
Answers.LastActivityDate: 2016-06-04T12:23:13.157Z
Answers.UserDisplayName: KarinG - Semper IT
Body: <p>Keep getting message </p>
  
  <blockquote>
    <p>Template not found. Could not find the report template. Make sure the report template is registered and/or url is correct.</p>
  </blockquote>
  
  <p>I followed a guide in setting up a custom report. I created a new custom PHP path and a custom template path. Within both of those the guide said to recreate the path of the original report. ie: /CRM/Report/Form/Contact/then the .tpl placed in there. The path for custom PHP was also the same with the report PHP placed in there.</p>
  
  <p>In the guide it said copy the existing tpl file (in this case it was called Relationships) and then edit it to include the following line:</p>
  
  <pre><code> *}
  {include file="CRM/Report/Form.tpl"}
  </code></pre>
  
  <p>It then said save it as the new file name. In this case ResidentialCommunities.tpl and refreshed</p>
  
  <p>I then registered the report in Administer>Civireport> Register Report</p>
  
  <p>In the settings under Url it shows /Contact/ResidentialCommunities
  Under Class it shows CRM_Report_Form_Contact_ResidentialCommunities </p>
  
  <p>It registers. Then when going to Contact and Contact Reports then add new report it shows under Contact Reports the clickable link to my custom report. Then I click it and it throws the error. I'm certain that there is an issue with the Url field, but can't see why.  </p>
  
Tags: <custom-templates>
Title: Custom Report Template
ThreadText: # Custom Report Template
  
  (Asked by: username_0 on 2016-06-04)
  
  Keep getting message 
  
  Template not found. Could not find the report template. Make sure the report template is registered and/or url is correct.
  
  I followed a guide in setting up a custom report. I created a new custom PHP path and a custom template path. Within both of those the guide said to recreate the path of the original report. ie: /CRM/Report/Form/Contact/then the .tpl placed in there. The path for custom PHP was also the same with the report PHP placed in there.
  In the guide it said copy the existing tpl file (in this case it was called Relationships) and then edit it to include the following line:
   *}
  {include file="CRM/Report/Form.tpl"}
  
  It then said save it as the new file name. In this case ResidentialCommunities.tpl and refreshed
  I then registered the report in Administer>Civireport> Register Report
  In the settings under Url it shows /Contact/ResidentialCommunities
  Under Class it shows CRM_Report_Form_Contact_ResidentialCommunities 
  It registers. Then when going to Contact and Contact Reports then add new report it shows under Contact Reports the clickable link to my custom report. Then I click it and it throws the error. I'm certain that there is an issue with the Url field, but can't see why.
  
  **Tags:** custom-templates
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-06-04. Score: 2 | Accepted answer
  
  Not sure which one you used - but this is still one of the best guides out there:
  
  <https://alastaira.wordpress.com/2011/03/17/civicrm-creating-a-custom-report/>
  
  Note: the .php goes into your custom\_php and your .tpl goes into your custom\_templates (and you must set these paths in the Administer -> System Settings -> Directories: Cutom PHP Path Directory and Custom Templates).
  
  After adding these paths and putting the .tpl and .php into place:
  
  Clear caches: Adminster -> System Settings -> Cleanup Caches and Updates Paths - and hit the Cleanup Caches button.
  
  > **Comments:**
  > **username_0**: Thanks for the info. Ive followed that tutorial to the letter, save for the filenames to suit my report. In this tutorial he dosnt put in a run once command and in other tutorials they suggest adding one. Anyways it is still throwing errors, so time for me to stick back to law and pay a professional to do it...i know when im outgunned. Many thanks  
  > **username_1**: If you can post some screenshots - happy ro have another look at it.  
  > **username_0**: Thanks karin but ive now fixed it. found some missing code.  
  > **username_1**: Excellent! It's definitively not trivial to get into this - don't hesitate to post more Q if you think we can help out some more!  
  
  ---
  
  