Questions tagged [civix]
The civix tag has no usage guidance.
47
questions
5
votes
1
answer
108
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 ...
4
votes
2
answers
559
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
2
answers
91
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 ...
4
votes
2
answers
117
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
2
answers
90
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
2
answers
117
views
Create new contact sub-type when extension is installed
I'm building a new extension using civix and buildkit. I need to create a new ContactType (sub-type of individual) on install (if it doesn't already exist). I know how I would do it, but I'd prefer ...
3
votes
2
answers
2k
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
1
answer
130
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
2
answers
105
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
...
3
votes
1
answer
104
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
3
answers
146
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
2
answers
783
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
1
answer
112
views
How to create an v4 api using civix tool?
I am using civix tool to create an extension. I created an API using civix tool.I want to create API v4. How to create API v4?
3
votes
1
answer
243
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
1
answer
62
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
2
answers
903
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
1
answer
20
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
2
answers
73
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
2
answers
169
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
1
answer
60
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
2
answers
92
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
2
answers
114
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
2
answers
69
views
Creating extension with civix: How to use CRM dir?
I want to create an extension for CiviCRM that will add an extra column for appended documents inside the activities list of a Case View. That is, when users have appended a document while creating an ...
1
vote
3
answers
274
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
2
answers
112
views
civix civicrm:ping error [Exception] Failed to locate civicrm.settings.php
I just installed CiviCRM BuildKit using the instructions here
After accessing the bash shell of the container with:
docker-compose exec -u buildkit civicrm bash
I try running the command
civix ...
1
vote
3
answers
380
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.
1
vote
2
answers
101
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
2
answers
76
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
1
answer
119
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
2
answers
51
views
Getting error when using civix generate:module or civix generate:entity curly braces no longer supported in phar
Getting this error when using civix to generate a module or an entity:
Fatal error: Array and string offset access syntax with curly braces is no longer supported in phar:///usr/local/bin/civix/vendor/...
1
vote
1
answer
50
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
2
answers
181
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 ...
1
vote
1
answer
39
views
How to upgrade Civix v21.04
I am trying to upgrade the Civix code in one of my extensions but it does not seem to be working. Civix is currently at v21.04.1, and the latest version is 23.08. I am following the directions in ...
1
vote
1
answer
26
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
1
answer
51
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
1
answer
67
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
1
answer
81
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
2
answers
255
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
1
answer
82
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
1
answer
41
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
2
answers
37
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
1
answer
96
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
1
answer
210
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
2
answers
311
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
1
answer
47
views
DDEV, Drupal 9, CiviCRM & Civix Installation
Thanks is advance. I am using DDEV with Drupal 9.5.2 and CiviCRM 5.57.2
I would like to use civix to look at custom reports.
Any advice on how to install it? I've look at the documentation but most of ...
0
votes
0
answers
21
views
Access to the extension created with civix via url
Hi Everyone i've create an extension with civix and i've generated page.Now i want to access to this page a've created. Anybody know how to deal with this or have an exemple of url. My extension is ...
0
votes
2
answers
82
views
Civix: command not found
I have downloaded, then uploaded civix.phar to my www/www directory (where Drupal is installed).
Now, if I run civix civicrm:ping (from this www/www directory), the answer is :
-bash civix: command ...