Answers.Body: <p>This looks like your CiviCRM install has an extension enabled in the DB which is not present, or was moved, on your disk.</p>
  
  <p>Perhaps the extension you're working on was renamed after first being enabled, perhaps other changes were made to info.xml or the core extension files, perhaps it was moved, or perhaps your DB had another extension enabled on the remote server which isn't present locally.</p>
  
  <p>The CiviCRM extensions page might be informative to check, otherwise you can compare extensions listed in the database to the ones which are available locally.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-17T03:17:35.673Z
Answers.LastActivityDate: 2016-04-17T03:17:35.673Z
Answers.UserDisplayName: Chris Burgess
Answers.Body: <p>From the image you are using an extension that has an API with the name FinancialItem and You are trying to add an API that already exists in the extension with the same name in the extension cm.mukwetest.firstextension.</p>
  
  <p>I don't think that is possible.</p>
  
  <p>You the github repo is found here <a href="https://github.com/mercimukwe/cm.mukwetest.firstextension" rel="nofollow">https://github.com/mercimukwe/cm.mukwetest.firstextension</a> to see the content whole extension and the APIs which have been added.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-29T10:05:37.733Z
Answers.LastActivityDate: 2016-04-29T10:05:37.733Z
Answers.UserDisplayName: Merci Mukwe
Body: <p>I have CiviCRM 4.7 installed on drupal 7.38. I Found it necessary to modify the url in civicrm.settings.php file as suggested here:<br><a href="https://forum.civicrm.org/index.php?topic=33303.0" rel="nofollow noreferrer">https://forum.civicrm.org/index.php?topic=33303.0</a><br>After this modification, my extension was successfully created and I enabled it. Also I have added a page and can already pull some data from the database using the CiviCRM api and display it on the page I added. I now intend to add an api function for an already existing entity, FinancialItem.<br>When I run the command(in the terminal):<br></p>
  
  <blockquote>
    <p>civix generate:api FinancialItem Create</p>
  </blockquote>
  
  <p>I get the following error<a href="https://i.sstatic.net/8cUWs.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/8cUWs.png" alt="enter image description here"></a></p>
  
  <p>Any suggestions as to what I should do to fix this?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-04-17T03:14:09.780Z
Comments.Text: Suggestion 1: You shouldn't need to `sudo` to run `civix`. My advice to those who often run sudo is: *stop*, *understand* and *address* the underlying permissions problem, rather than whacking it with a "sudo hammer". Reflexive sudo-ing is a habit worth kicking.
Comments.UserDisplayName: Chris Burgess
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-04-17T03:19:17.603Z
Comments.Text: Suggestion 2: Drupal 7.38 is harmless enough for developing locally, but if you'll be using the same codebase on the internet, you should ensure you're running a recent copy of Drupal with all available security updates applied.
Comments.UserDisplayName: Chris Burgess
Tags: <api><extension><civicrm.settings.php>
Title: Civicrm Integration: Error while adding api function
ThreadText: # Civicrm Integration: Error while adding api function
  
  (Asked by: username_0 on 2016-04-17)
  
  I have CiviCRM 4.7 installed on drupal 7.38. I Found it necessary to modify the url in civicrm.settings.php file as suggested here:  
  <https://forum.civicrm.org/index.php?topic=33303.0>  
  After this modification, my extension was successfully created and I enabled it. Also I have added a page and can already pull some data from the database using the CiviCRM api and display it on the page I added. I now intend to add an api function for an already existing entity, FinancialItem.  
  When I run the command(in the terminal):
  
  > civix generate:api FinancialItem Create
  
  I get the following error[![enter image description here](https://i.sstatic.net/8cUWs.png)](https://i.sstatic.net/8cUWs.png)
  
  Any suggestions as to what I should do to fix this?
  
  **Tags:** api, extension, civicrm.settings.php
  
  > **Comments:**
  > **username_1**: Suggestion 1: You shouldn't need to `sudo` to run `civix`. My advice to those who often run sudo is: *stop*, *understand* and *address* the underlying permissions problem, rather than whacking it with a "sudo hammer". Reflexive sudo-ing is a habit worth kicking.  
  > **username_1**: Suggestion 2: Drupal 7.38 is harmless enough for developing locally, but if you'll be using the same codebase on the internet, you should ensure you're running a recent copy of Drupal with all available security updates applied.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2016-04-17. Score: 1
  
  This looks like your CiviCRM install has an extension enabled in the DB which is not present, or was moved, on your disk.
  
  Perhaps the extension you're working on was renamed after first being enabled, perhaps other changes were made to info.xml or the core extension files, perhaps it was moved, or perhaps your DB had another extension enabled on the remote server which isn't present locally.
  
  The CiviCRM extensions page might be informative to check, otherwise you can compare extensions listed in the database to the ones which are available locally.
  
  
  ---
  
  ### Answer by username_2 on 2016-04-29. Score: 0
  
  From the image you are using an extension that has an API with the name FinancialItem and You are trying to add an API that already exists in the extension with the same name in the extension cm.mukwetest.firstextension.
  
  I don't think that is possible.
  
  You the github repo is found here <https://github.com/username_2/cm.mukwetest.firstextension> to see the content whole extension and the APIs which have been added.
  
  
  ---
  
  