Answers.Body: <p>Fixed by changing all the classes to be in the CRM namespace. e.g. </p>
  
  <pre><code>class CJT_Page_EmrJournaltracking_JournalControls
  </code></pre>
  
  <p>Becomes</p>
  
  <pre><code>class CRM_Page_EmrJournaltracking_JournalControls
  </code></pre>
  
  <p>Disable and re-enable the extension to load the changes.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-26T21:50:29.347Z
Answers.LastActivityDate: 2016-03-26T23:05:10.873Z
Answers.LastEditDate: 2016-03-26T23:05:10.873Z
Answers.UserDisplayName: Interlated
Body: <p>I have just upgraded civicrm to 4.6.11 and am getting a Class Not Found error. </p>
  
  <pre><code>Fatal error: Class 'CJT_Page_EmrJournaltracking_JournalControls' not found in ... CRM/Core/Invoke.php
  </code></pre>
  
  <p>The class is in the system   </p>
  
  <pre><code> web/sites/all/modules/custom/civicrm/extensions/net.interlated.emrjournaltracking/CJT/Page/EmrJournaltracking/JournalControls.php
  </code></pre>
  
  <p>and defined as follows</p>
  
  <pre><code>require_once 'CRM/Core/Page/Basic.php';
  
  class CJT_Page_EmrJournaltracking_JournalControls extends CRM_Core_Page_Basic {
  </code></pre>
  
  <p>The source for this extension is available at <a href="https://github.com/jrobens/civicrm-extension-emrjournaltracking" rel="nofollow">https://github.com/jrobens/civicrm-extension-emrjournaltracking</a> </p>
  
Tags: <drupal><extension>
Title: How do I fix class not found in custom extension after upgrade?
ThreadText: # How do I fix class not found in custom extension after upgrade?
  
  (Asked by: username_0 on 2016-03-26)
  
  I have just upgraded civicrm to 4.6.11 and am getting a Class Not Found error. 
  Fatal error: Class 'CJT_Page_EmrJournaltracking_JournalControls' not found in ... CRM/Core/Invoke.php
  
  The class is in the system   
   web/sites/all/modules/custom/civicrm/extensions/net.interlated.emrjournaltracking/CJT/Page/EmrJournaltracking/JournalControls.php
  
  and defined as follows
  require_once 'CRM/Core/Page/Basic.php';
  
  class CJT_Page_EmrJournaltracking_JournalControls extends CRM_Core_Page_Basic {
  
  The source for this extension is available at https://github.com/jrobens/civicrm-extension-emrjournaltracking
  
  **Tags:** drupal, extension
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2016-03-26. Score: 4 | Accepted answer
  
  Fixed by changing all the classes to be in the CRM namespace. e.g. 
  class CJT_Page_EmrJournaltracking_JournalControls
  
  Becomes
  class CRM_Page_EmrJournaltracking_JournalControls
  
  Disable and re-enable the extension to load the changes.
  
  
  ---
  
  