Questions tagged [civix]
The civix tag has no usage guidance.
46
questions
0
votes
0
answers
8
views
Refresh a popup from a second popup
We have a custom Page (not a form, a page that just displays data) that opens in a popup using the crm-popup class. In that popup's page, we have another crm-poup link to edit a form with child info ...
1
vote
2
answers
49
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
2
answers
38
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/...
3
votes
2
answers
106
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 ...
0
votes
0
answers
19
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
65
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 ...
3
votes
1
answer
50
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?
0
votes
1
answer
61
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 ...
1
vote
2
answers
95
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
2
answers
68
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:
...
2
votes
2
answers
88
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 ...
2
votes
1
answer
19
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 ...
0
votes
1
answer
38
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 = ...
2
votes
2
answers
70
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. ...
0
votes
2
answers
36
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
3
answers
304
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.
3
votes
2
answers
89
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
...
1
vote
1
answer
99
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
1
answer
49
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
171
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
61
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
...
0
votes
1
answer
71
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 ...
4
votes
2
answers
82
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
2
answers
78
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 ...
0
votes
1
answer
195
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 ...
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 ...
3
votes
1
answer
238
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....
2
votes
2
answers
155
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 ...
5
votes
1
answer
95
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 ...
1
vote
3
answers
263
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:\...
3
votes
1
answer
61
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 ...
3
votes
1
answer
107
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??
4
votes
2
answers
509
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)?
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-...
4
votes
2
answers
105
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 ...
0
votes
2
answers
295
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/...
1
vote
1
answer
25
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
76
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:...
1
vote
1
answer
50
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 ...
2
votes
2
answers
765
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.
...
3
votes
3
answers
141
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
726
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.
...
1
vote
2
answers
97
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 ...
3
votes
1
answer
101
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 ...
2
votes
2
answers
90
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."
0
votes
2
answers
249
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 ...