20 votes
Accepted

How do I set up an API key for a user?

Hopefully a new release will be made for the API Key extension soon. Here are detailed instructions for creating one manually without needing to get access to your database through phpMyAdmin, mysql ...
Joe Murray's user avatar
  • 6,731
10 votes

Do CiviCRM Extensions Cost Anything?

Like CiviCRM, its extensions are currently without any upfront or ongoing licensing fees. People are free to offer paid extensions, but I am not aware of them. You are free to use, modify and share ...
Sanjay Jain's user avatar
  • 2,826
10 votes

Upgrade to 5.47.x fails with error: Exception: "API error: DB Error: constraint violation on ReportTemplate.create"

The problem here was the Extension Extended Reports - however it's possible that you have a different extension causing the problem. In 5.47.0 CiviGrant component was transferred to an extension. You ...
Luke Stewart's user avatar
  • 1,835
9 votes
Accepted

How to develop extension that relies on libs brought in by composer

Approaches There are a few different patterns one could follow in connecting Civi extensions with composer: (Broad scope) Site build via composer: The entire web site is defined with a custom ...
Tim Otten's user avatar
  • 5,664
8 votes
Accepted

Find CiviCRM version programmatically?

Agree with Chris that System.get is a great API for inspecting the system -- with a trade-off of breadth vs speed. If you need something more performant, use CRM_Utils_System::version(), e.g. $ cv ...
Tim Otten's user avatar
  • 5,664
8 votes
Accepted

Where is extension data stored?

Its a bad idea of upgrading as uninstall and install new version of extension. You can upgrade the extension either one of the following two ways: If the extension is listed under CiviCRM extension ...
Pradeep Nayak's user avatar
7 votes
Accepted

Can numeric version naming conventions for CiviCRM extensions use the Drupal module naming conventions?

It's hard to apply the Drupal model to CiviCRM because the release cycles are so very different. Drupal releases a complete overhaul every 3-5 years, with nothing but bugfixes in-between. Civi's ...
Coleman's user avatar
  • 17.5k
7 votes

Find CiviCRM version programmatically?

I'd use System.get API call. (source) In the return values, there's a value for version which corresponds to the value in civicrm-version.php $ cv api System.get name=version { "is_error": 0, ...
Chris Burgess's user avatar
7 votes
Accepted

Implementing a support ticket/help desk system?

You could involve CiviCase, but depending on your needs you may get away with just creating custom Activity Type(s) and custom Activity Statuses. And then given you are doing this in Drupal, I would ...
petednz - fuzion's user avatar
  • 28.1k
7 votes

How can I run extension DB updates?

The equivalent would be any of these: Navigate to civicrm/admin/extensions/upgrade?reset=1 Navigate to "System Status" or "Manage Extensions". Those pages will link to the above. On CLI, run cv ext:...
Tim Otten's user avatar
  • 5,664
7 votes
Accepted

Safe to uninstall Mosaico extension?

Mosaico doesn't create any custom data in CiviCRM, so it is safe to Uninstall the extension. However, any template created in Mosaico will be lost. To uninstall the extension you will need to disable ...
Pradeep Nayak's user avatar
7 votes

How to create a hook in an extension?

EDIT This answer is now deprecated, you should use @bgm's answer instead, or for an alternative and possibly cleaner approach, try my other answer All thanks to the code example link in Eric's answer ...
artfulrobot's user avatar
  • 3,910
7 votes
Accepted

ContactLayout extension not working with civicrm 5.10

Short answer: you need to update your extensions. Visit your extension admin page and apply all updates. Longer answer: There are incompatibilities between older and newer versions of the ...
Coleman's user avatar
  • 17.5k
7 votes
Accepted

CiviCRM core now includes Flexmailer: how to remove old flexmailer extension?

Here's how we handled this: From within your extensions directory: cv dis mosaicomsgtpl mosaico flexmailer rm -rf org.civicrm.flexmailer cv flush cv en flexmailer mosaico mosaicomsgtpl cv ext:up We'...
HomoTechsual's user avatar
  • 1,128
6 votes
Accepted

CiviRules and CiviCRM 4.7

I'm in the same boat! Just about to install and enable as we need to trigger email to customer when they submit a profile from WordPress... UPDATE From initial testing it seems to work fine with 4.7....
Darren's user avatar
  • 716
6 votes
Accepted

Civix reports "Failed to locate civicrm.settings.php"

The generate:api subcommand (and a few others) require access to a working copy of CiviCRM. To locate this, it uses a process reminiscent of drush or wp-cli. For example, if the command-line is ...
Tim Otten's user avatar
  • 5,664
6 votes

Should I disable extensions prior to upgrading CiviCRM?

In general, I'd recommend no. Some extensions - literally - may not be reinstallable if they aren't qualified for that version of Civi. My recommendation: TAKE BACKUPS!!! Then don't disable ...
JohnFF's user avatar
  • 2,343
6 votes

What does LExIM stand for?

LExIM is the new overall release and extension strategy: LEAP BY EXTENSION. ITERATE BY MONTH. It basically means that: CiviCRM development will now happen mostly through extensions, ...
ErichBSchulz's user avatar
  • 1,571
6 votes
Accepted

How to install a not listed Extension?

Here is the documentation from the administrator guide: https://docs.civicrm.org/sysadmin/en/latest/customize/extensions/#installing-a-new-extension There are three steps: Upload extension package ...
KilakwaBT's user avatar
  • 2,341
6 votes
Accepted

Extensions for 5.0+

The 4.7 -> 5.0 increment is a normal monthly release. There shouldn't be any reason that extensions should break. The shift from 4.7 to 5.x is about changing how version numbers increment, not a major ...
Luke Stewart's user avatar
  • 1,835
6 votes
Accepted

How to set a id attribute to button?

I believe you cannot set id to a button using php however you can define your own class for the button and use JS to set the id for that class. Here is the snippet to add class for button $this->...
Pradeep Nayak's user avatar
6 votes
Accepted

CiviCRM menu bar corrupted after installing Shoreditch

There has been some work going on to support shoreditch for CiviCRM 5.13. The temporary solution(until a new release is available) is to make the Menu colour to white by navigating to CiviCRM >> ...
Pradeep Nayak's user avatar
6 votes
Accepted

What is the actual status of CiviHR

As far as I know, they had too many issues with the more recent versions of CiviCRM so it's no longer supported. A client of mine had a chat with Jamie @ Compucorp last February (2020) at the ...
Rose Lanigan's user avatar
  • 1,000
5 votes

Do CiviCRM Extensions Cost Anything?

Not a direct answer to your question, but an important thing to remember, is that nothing is completely 'free'. Specifically, every piece of code you add to your installation has a cost to you in ...
Alan Dixon's user avatar
  • 6,644
5 votes
Accepted

Using event listeners in my extensions

I have found why it was not working. I was looking in the user interface whether my tokens showed up in the list with tokens a user can use. But they did not. After digging all the core code I found ...
Jaap Jansma - CiviCooP's user avatar
5 votes

Best practice for dealing with electoral district / constituency?

It sounds like you want to look at the Electoral API extension and at Using CiviCRM for e-advocacy more generally. The Electoral API extension is in beta - we have it in production for a few clients. ...
Jon G - Megaphone Tech's user avatar
5 votes

Is there an extension for adding a custom field type calculated field?

[UPDATED FOR 2023] The closest equivalent is using SearchKit. You can use either Data Segmentation or text rewrites with Smarty. At the bottom of this answer is a screenshot of a Data Segment to ...
Jon G - Megaphone Tech's user avatar
5 votes
Accepted

Has anyone gotten CiviRebux working?

As Chris says, the problem is due to CiviCRM's Data Logging feature having a problem with column names that are MySQL reserved words. As John says, in this case it's the column named desc. I think ...
davejenx's user avatar
  • 2,365
5 votes
Accepted

How to remove "Extended Demographics"?

The easiest would be if you can find it in the CiviCRM custom groups? Using Administer/Customize Data and Screens/Custom Fields. If that does not work, check the table civicrm_custom_group. You will ...
ErikH - CiviCooP's user avatar
5 votes
Accepted

Disabling Stripe extension breaks database

Getting your site back online, in phpmyadmin: In table civicrm_extension, enable stripe (change 0 to 1) In table payment_processor, disable any using stripe (change 1 to 0) This should allow your ...
Eric H's user avatar
  • 1,047

Only top scored, non community-wiki answers of a minimum length are eligible