Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [civix]

The tag has no usage guidance.

4
votes
2answers
214 views

How can I locate my extension directory?

This question surprised me a bit - but I have no clue about where to locate my extension directory!! Is there a simple way to reliably locate it (either programatically or via the UI)?
4
votes
2answers
97 views

civix generate:module org.civicrm.angularex error

lteI have installed a civicrm buildkit with vagrantbox and vagrant up correctly on windows, ubuntu server run and at d7-master.dev I am listening drupal civicrm all done ok. as I try to generate ...
3
votes
2answers
601 views

Does class autoloading not work in standalone phpunit testing?

I'm following civix's upgrade instructions to enable unit tests to be executed with standalone phpunit. I've got my code in a work-in-progress git branch. The first commit captures the civix-...
3
votes
2answers
37 views

How to reset the headless test db?

I'm using headless phpunit tests. I noticed that the first time I do this it pauses and says about installing schema for xxxx - a test database. If you break stuff enough, you can end up with a ...
3
votes
1answer
61 views

What are `*.mgd.php` files for?

Browsing through a civix generated file I see it globbing for *.mgd.php files? What are these files all about then??
3
votes
1answer
86 views

Display menu and pages of a newly created extension

I am working a new extension that i created throough civix. i have added some pages and some forms, how do i display the menu on the home page of the extension and navigate to the different pages and ...
3
votes
1answer
49 views

“Unknown path” when viewing a newly generated angular page

I'm trying to get started learning how to make Angular pages within a CiviCRM extension so I ran civix help generate:angular-page and read some help text about an example. Cool. Then I ran civix ...
3
votes
3answers
121 views

civix civicrm:ping not printing any output

I am running CiviCRM on Mac OSX 10.11.3, using the latest Bitnami CiviCRM/Drupal stack (bitnami-civicrm-4.6.11-0-osx-x86_64). I have civix-15.04.1 installed as instructed (under $HOME/civix), and ...
3
votes
2answers
572 views

Civix: Install error: API error: DB Error: already exists

According documentation I created a skeleton module with civix and answered yes to install it. It then gives an error response as in the Title. Afterwards is listed active in the extensions page. ...
3
votes
2answers
39 views

How do I write the _spec function for my custom API?

When I run... civix generate:api foo bar ...civix generates the following code: function _civicrm_api3_foo_Bar_spec(&$spec) { $spec['magicword']['api.required'] = 1; } From this example, I ...
3
votes
1answer
208 views

How to add a new entity in CiviCRM extension

As I am new to CiviCRM. I am trying to create a new entity for my extension to add some new data in database schema. The documentation I am following to create a new entity is: https://docs.civicrm....
3
votes
1answer
58 views

What domain name should I use for my extension's fully qualified name?

I'm getting started with creating extensions and I see that each extension needs a "full name" or "fully qualified name" or "key", which often serves as the name of the git repository too. I see that ...
2
votes
2answers
48 views

How to Add Menu Item to Parent Using Civix

I'm trying to add a menu item for my extension to the existing "Memberships" menu. The documentation suggests the following: Use the Civix implementation Civix comes with helper functions ...
2
votes
2answers
442 views

Civix reports “Failed to locate civicrm.settings.php”

I used the command civix generate:api Civicrmzapier submit to an API function to an extension i am working on, but got the following error as on the screenshot and the api function is not added. ...
2
votes
1answer
17 views

Development on a plugin - How to transfer values

I have created a new plugin structure using civix. It has created the elements I wanted in the database. I have used dogregistry_civicrm_tabset to add a tab to my contacts pages. I used civix to ...
2
votes
2answers
47 views

How to install civix and build an extension in drupal

Please I don't know how to install civix and build an extension using civicrm. I already installed drupal and civicrm module. but I have no clue how to write an extension or how to run anything here. ...
2
votes
2answers
106 views

Difficulties generating an entity's DAO and SQL for a new extension

I have been trying to generate DAO and SQL files for an entity I created with civix generate:entity ... according to the documentation ("Add a new entity" - 4.d.). Using the latest civicrm-core clone ...
2
votes
1answer
49 views

Unable to locate folder xml under the civicrm root directory

I am new to civicrm and trying to build extension. The extension is build and activated. The stage where I got stocked is when I trying to add entity for my civicrm extension. I am following the ...
2
votes
2answers
85 views

How to get over 'Failed to locate CMS…' exception on civix?

I was working to create skeletal extension module through civix but unfortunately I am getting this exception "Failed to locate CMS. Please call civix from somewhere under the CMS root."
2
votes
2answers
33 views

Development - Refresh of parent page

Wordpress with CiviCRM 5.3.2 Hi guys, I'm struggling with a small problem. I've added a tab (using tabset) to create a new tab while viewing a contact. That tab lists any dogs registered to that ...
1
vote
3answers
187 views

Civicrm:ping INI file not found

I have installed civicrm and want to develop an extension. I installed civix for creating this extension but when i run civix civicrm:ping command in my civicrm folder, I get the following error: C:\...
1
vote
2answers
87 views

How can I make a custom report that displays info for three contacts based on relationships?

I've used Civix to make a duplicate of the default Relationship report, and I'd like to extend it to show basic information for a third contact. So we have Contact A and can specify criteria about the ...
1
vote
1answer
51 views

Add new smarty template to an existing page

I want to add a new template part to the activity edit & view page, I have been trying number of hooks to do it but could not figure out which one best to use. I am trying to do something similar ...
1
vote
1answer
47 views

Civix not working Joomla! 3.9.3

Civix doesn't seem to work with Joomla! 3.9.3. According to this, Joomla! 3.9.3 doesn't allow loading of phar packed files. When I try to run civix, I get the following exception error in a red panel: ...
1
vote
1answer
27 views

how to import extension to civicrm

I would like to create an extension with civicrm. But I have a problem, although I could install civicrm and civix, I can not have where is the source code of the civicrm platform. I go to the ...
1
vote
1answer
14 views

How to change the default license selection in `civix generate:module`?

By default civix generate:module will create an extension licensed with AGPL-3.0. How would one go about changing that default to something else, say, GPL-3.0? Edit: I'm aware of the --license ...
1
vote
1answer
44 views

does civix need a mysql install?

I would use civix for coding a scheduled task that updates a customed field. I could generate an extension skeletton with the "civix generate:module" command, but fail to use "civix generate:api" for ...
1
vote
1answer
38 views

civix permission denied errors in /usr/local/bin when generating a skeltal extension

I've been following the instructions to create a new extension and get the following errors when I run the civix generate:module command: civix generate:module org.civicrm.searchbuilderlocation ...
1
vote
1answer
68 views

Runtime Exception Booted CiviCRM, but failed to find 'api/class.api.php'

I created an extension module with civix then cd'd to the module directory and tried to create a custom report based on a copy of an existing report. I used the following command: $ civix generate:...
0
votes
2answers
201 views

Error in civix generate:api “You cannot change the session module's ini settings at this time”

When attempting to run this: civix generate:api Invoice Create It creates an /api/v3/Invoice folder but doesn't create any files. Instead I get the following: Warning: ini_set(): A session is ...
0
votes
1answer
16 views

Creating a custom Form: Action (view vs update)

I'm building my first extension, and have created the sample quickform using civix generate:form. So far, so good, the form shows and works within a modal popup. I've noticed with Core forms (like ...
0
votes
2answers
45 views

Create a extension for civicrm

Please give some reference site for creating a simple extension for civicrm with sample example. Any simple extension on GitHub.
0
votes
1answer
28 views

civix civicrm:ping error [Exception] Failed to locate civicrm.settings.php

I just intstalled CiviCRM buildkit using the instructions here After navigating to the bash with docker-compose exec -u buildkit civicrm bash I try running the command civix civicrm:ping in /src ...
0
votes
1answer
26 views

I am trying to insert custom tab into Activity tab but it is not working

I am creating new extension. I am adding a new custom field into Activity tab but it's not working //Creating a custom group for survey function custom_group_create_survey(){ $survey_custom_group = ...
0
votes
2answers
22 views

Documentation and examples civicrm

I want full documentation of civix tool for creating civicrm extension. I already saw a document on github. I need more information about civix.
0
votes
2answers
97 views

Install error when generating a new extension module

I'm trying to generate a new extension module following instructions from the docs: https://docs.civicrm.org/dev/en/latest/extensions/civix/#generate-module However, when I run the proposed command to ...
0
votes
1answer
40 views

creating scheduled api using civix

I am using civix to create a scheduled task with civix generate:api --schedule Daily chiroContact assignAnimatorCourseResponsibleLabel The files get created correctly, and the new api possibility ...
0
votes
1answer
129 views

How to create entity in CiviCRM

I am trying to create the Entity in CiviCRM with my extension. But I am struck here. Unable to find the XML folder in my CiviCRM installation. After running the below command civix generate:entity ...
0
votes
2answers
181 views

Civix: how to install and generate a skeletal extension (drupal)

I've installed civicrm on drupal site (on remote virtual hosting). And I need to create an extension for civicrm. As far as I know, civix is required for that. I've read https://github.com/totten/...
0
votes
0answers
10 views

CIVIX: Booted CiviCRM, but failed to find 'api/class.api.php'

without apparently making any change to the environment, suddenly, the following creation of a job with civix: php civix.phar generate: api --schedule = Daily Give ImportFromGive fails with error: ...