Development issueshttps://lab.civicrm.org/groups/dev/-/issues2019-03-03T00:24:47Zhttps://lab.civicrm.org/dev/drupal/-/issues/51Status page shows EOL for Mulit Domains2019-03-03T00:24:47ZdarrickStatus page shows EOL for Mulit DomainsI have civicrm multi-domain with three websites.
* I just upgraded from 5.7 to 5.10.4.
* I used drush cvup under the primary domain.
* When that finished it only updated the db to 5.9.
* So I finished the db update via the URL ci...I have civicrm multi-domain with three websites.
* I just upgraded from 5.7 to 5.10.4.
* I used drush cvup under the primary domain.
* When that finished it only updated the db to 5.9.
* So I finished the db update via the URL civicrm/upgrade?reset=1.
* There were no error messages.
* I then used drush cc and cleared all cache for all sites.
* The main site looks fine. Status page doesn't show EOL and the footer shows "Powered by Civicrm: 5.10.4
* The other two sites on the status page show the EOL message and that I'm running 5.9.0. But the footer shows "Powered by Civicrm: 5.10.4".
* If I go to civicrm/upgrade?reset=1 under those domains it says the DB is already updated to 5.10.4.
* civicrm_domain table shows the same version (5.10.4) for all three domains.
* I have no clue where the status page is getting it's data so can not debug further.https://lab.civicrm.org/dev/core/-/issues/772Warnings on importing contacts - PHP 7.22019-12-25T22:06:45ZsbyrneWarnings on importing contacts - PHP 7.2While importing contacts from a CSV file, seeing the following on hitting "Continue" immediately following file upload:
```
Warning: count(): Parameter must be an array or an object that implements Countable in HTML_QuickForm_hierselect...While importing contacts from a CSV file, seeing the following on hitting "Continue" immediately following file upload:
```
Warning: count(): Parameter must be an array or an object that implements Countable in HTML_QuickForm_hierselect->setValue() (line 262 of ...civicrm/packages/HTML/QuickForm/hierselect.php).
Warning: count(): Parameter must be an array or an object that implements Countable in HTML_QuickForm_hierselect->setValue() (line 262 of ...civicrm/packages/HTML/QuickForm/hierselect.php).
Warning: count(): Parameter must be an array or an object that implements Countable in HTML_QuickForm_hierselect->setValue() (line 262 of ...civicrm/packages/HTML/QuickForm/hierselect.php).
Warning: count(): Parameter must be an array or an object that implements Countable in HTML_QuickForm_hierselect->setValue() (line 262 of ...civicrm/packages/HTML/QuickForm/hierselect.php).
```
Using the following settings if this helps replicate (everything else set at default:
* First Row Contains Column headers on
* Duplicate contacts set to fill
* Dedupe rule checking name and address
* Geocoding address on import5.18.0eileeneileenhttps://lab.civicrm.org/dev/core/-/issues/773Proposal: Don't allow deleting custom fields that are used in a smart group2022-11-07T05:03:58ZJonGoldProposal: Don't allow deleting custom fields that are used in a smart groupI'm inspired by [this SE question](https://civicrm.stackexchange.com/questions/28713/how-to-troubleshoot-expected-one-customfield-but-found-0-error/28731). I can't think of a reason why we'd allow someone to delete a custom field used i...I'm inspired by [this SE question](https://civicrm.stackexchange.com/questions/28713/how-to-troubleshoot-expected-one-customfield-but-found-0-error/28731). I can't think of a reason why we'd allow someone to delete a custom field used in a smart group. The downside is we'd need to use an unindexed search on `civicrm_saved search` (e.g. `LIKE %"custom_1"%`) but I'm guessing that most folks don't have thousands of smart groups, and this would happen fairly infrequently.https://lab.civicrm.org/dev/core/-/issues/774Changing the LABEL for a relationship type causes an error when creating a ne...2019-11-07T03:35:25ZDaveDChanging the LABEL for a relationship type causes an error when creating a new case that has that relationship/role set as CreatorTo reproduce, and I can reproduce this on dmaster.demo.civicrm.org:
1. Look in a case type definition to see which role is checked as "assign to creator".
2. Under admin - customize data - relationship types, change the label(s) for the ...To reproduce, and I can reproduce this on dmaster.demo.civicrm.org:
1. Look in a case type definition to see which role is checked as "assign to creator".
2. Under admin - customize data - relationship types, change the label(s) for the relationship type to something else.
3. Create a new case with the given case type.
4. Fatal error.
**It seems to ultimately come from here, where it looks up LABEL instead of NAME:
https://github.com/civicrm/civicrm-core/blob/master/CRM/Case/XMLProcessor.php#L114**
The allRelationshipTypes() function seems to only be used in two places, and both seem to be trying to match on label when it should be name, so the fix is probably just change 'label' to 'name'.
But then I'm wondering if any existing configs that depend on label will suddenly break, and taking a step back, this label vs name mismatch has come up a few times over the years in a few places so I'm wondering if fighting it is just postponing the problem. But maybe that should be a separate issue: i.e. if "name" was an integer or goofy string, or the field were named something like "key", a recurrence of the problem would be more obvious.5.20.0https://lab.civicrm.org/dev/core/-/issues/775Event registration being cancelled when IPN notification received2022-10-30T05:03:27Zvakeesan26Event registration being cancelled when IPN notification receivedWhen we use IPN [eg: Sage-pay] payment processor for event, If user click browser back button after reaching payment website and then confirm again CiviCRM creating new contribution for same participant record.
In this case after user co...When we use IPN [eg: Sage-pay] payment processor for event, If user click browser back button after reaching payment website and then confirm again CiviCRM creating new contribution for same participant record.
In this case after user completing the latest contribution successfully, few minutes later payment processor sending the cancelled notification for previous contribution [The Transaction timed-out.]
now the participant record also being cancelled because of that contribution is updated as cancelled.
![image](/uploads/eb57b13e0fdb5ddfdae39697bdd14895/image.png)
CiviCRM 5.10.4
CMS - Drupal - 7
Steps
1) Configure IPN Payment processor
![image](/uploads/3c103603e49d10001296dbfd2229fadc/image.png)
2) Register the event
![image](/uploads/2ac513a52dcba0dbdf5cd097f7f139c7/image.png)
3) Confirm the registration
![image](/uploads/4f25367935bf0c44972981c10bc0101c/image.png)
4) Click browser back button
![image](/uploads/e7bf60903a6ce91b73500ec4c371726e/image.png)
5) Click Go Back button
![image](/uploads/c42e4286e1078ed17a5ca7d2c315c275/image.png)
6) Again continue & confirm the registration
![image](/uploads/1fb4990faffce58bf0e3d8b79475bfb1/image.png)
7) Now we will have 2 contribution against one participant record [ one completed , one pending incomplete]
![image](/uploads/cb5f1873af5f5b84162ce30a74a556fe/image.png)
8) we will receive the "cancelled" notification from payment processor few minutes later [ The Transaction timed-out.]
To reproduce this step we can manually cancel the Pending incomplete transaction contribution
![image](/uploads/85c7bac67c5d4ee6c39d5d85ff8028a9/image.png)
9) Now event registration will be cancelled
![image](/uploads/7a3a52dfc4b400acf09e1be95b9f8bc1/image.png)https://lab.civicrm.org/dev/core/-/issues/776Can't print participant image in name badge2022-10-07T05:03:46ZeileenCan't print participant image in name badgehttps://civicrm.stackexchange.com/questions/28757/cant-print-participant-image-in-name-badgehttps://civicrm.stackexchange.com/questions/28757/cant-print-participant-image-in-name-badgehttps://lab.civicrm.org/dev/core/-/issues/777Contact ID column is not shown in the report Repeat results2023-02-06T07:53:29ZGhost UserContact ID column is not shown in the report Repeat resultsWhen you select the column 'Contact ID' it doesn't show in the report results.
![Contact_ID_doesn_t_show_on_Repeat](/uploads/457e815634fb568aaf005582ae7c932b/Contact_ID_doesn_t_show_on_Repeat.png)When you select the column 'Contact ID' it doesn't show in the report results.
![Contact_ID_doesn_t_show_on_Repeat](/uploads/457e815634fb568aaf005582ae7c932b/Contact_ID_doesn_t_show_on_Repeat.png)https://lab.civicrm.org/dev/translation/-/issues/23Angular asset cache and multi-lingual2024-01-29T10:06:18ZbgmAngular asset cache and multi-lingualAngular extensions, such as CiviMail (classic) or Mosaico, will not always be displayed in the correct language when the Angular asset cache is enabled/auto (Admin > System Settings > Debugging). Tested on Drupal 7 (in case that makes a ...Angular extensions, such as CiviMail (classic) or Mosaico, will not always be displayed in the correct language when the Angular asset cache is enabled/auto (Admin > System Settings > Debugging). Tested on Drupal 7 (in case that makes a different with the "auto" setting of that cache).
How to reproduce on dmaster:
* Make sure you have the civicrm-l10n.tar.gz translation files (it's the case on dmaster.demo.civicrm.org)
* Go to Administer > Localisation, and enable another language, such as French (you don't need to enable multi-lingual).
* Use the CiviCRM Language Switch to set the language to French
* Go to Mailing > New Mailing (classic or mosaico, same bug)
* Now go back to the dashboard, set the language to English
* Go to Mailing > New Mailing, and notice that the UI is still in French.https://lab.civicrm.org/dev/core/-/issues/778Sales tax and Vat issue within memberships - membership fee increases incorre...2021-02-23T00:47:09ZgibsonoliverSales tax and Vat issue within memberships - membership fee increases incorrectly when the membership has an errorWhen sales tax is enabled (as per https://docs.civicrm.org/user/en/latest/contributions/sales-tax-and-vat/) there is an issue.
- Tax and invoicing is enabled
- A sales tax financial account type has been created
- This new financial acco...When sales tax is enabled (as per https://docs.civicrm.org/user/en/latest/contributions/sales-tax-and-vat/) there is an issue.
- Tax and invoicing is enabled
- A sales tax financial account type has been created
- This new financial account type has been assigned to the Member Dues financial type (so all memberships have the sales tax applied).
If you then add a new membership via the CRM member menu.
Then assign it to a contact, choose a membership type (which has a fee) and create an error deliberately (e.g. choose a membership end date before the start date).
The membership fee will then change upwards automatically to an incorrect amount.
And if you try to save the membership again with a deliberate error the membership price increases again. An again etc.
This has been recreated on the CiviCRM sandbox demo and I've attached a screenshot of a $100 membership price increasing.![Capture](/uploads/33f62e932c022d0efa680524e492332b/Capture.PNG)5.36.0https://lab.civicrm.org/dev/core/-/issues/779Support token for participant id in scheduled reminder2021-10-12T02:22:06ZyashodhaSupport token for participant id in scheduled reminderCurrently, the participant id token is not available for scheduled reminder.
This is especially useful if the user need to be sent Self-service Registration Update forms
https://yoursite/civicrm/event/selfsvcupdate?reset=1&pid=xCurrently, the participant id token is not available for scheduled reminder.
This is especially useful if the user need to be sent Self-service Registration Update forms
https://yoursite/civicrm/event/selfsvcupdate?reset=1&pid=x5.43.0yashodhayashodhahttps://lab.civicrm.org/dev/core/-/issues/780Participant tokens are missing for pdf letters2021-10-12T02:43:07ZwdecraeneParticipant tokens are missing for pdf lettersThis was added before, but in the recent versions (don't know which version), it is not possible to select and use them. Patch attached should solve this.
[add-participant-tokens-to-pdf-letters.patch](/uploads/404f69f9224b70ba7be4bcd1b5...This was added before, but in the recent versions (don't know which version), it is not possible to select and use them. Patch attached should solve this.
[add-participant-tokens-to-pdf-letters.patch](/uploads/404f69f9224b70ba7be4bcd1b529e079/add-participant-tokens-to-pdf-letters.patch)5.43.0https://lab.civicrm.org/dev/core/-/issues/781Contact Display Name vs Email Greeting in Workflow templates2019-10-23T20:22:53ZMichael LabriolaContact Display Name vs Email Greeting in Workflow templatesI noticed that some of the workflow templates use contact.display_name in the greeting and some of them use contact.email_greeting. It would make sense to me that they all use contact.email_greeting. From what I can tell these template...I noticed that some of the workflow templates use contact.display_name in the greeting and some of them use contact.email_greeting. It would make sense to me that they all use contact.email_greeting. From what I can tell these templates are part of civicrm_generated.mysql file, which is quite large. I created a fork and updated the several places where display_name is still being used. Is submitting a merge request something a general user can do here?
Thanks!5.20.0https://lab.civicrm.org/dev/core/-/issues/782CiviMail not showing proper groups for multisite2022-03-03T16:30:51ZandyburnsCiviMail not showing proper groups for multisiteBecause groups are not tied to a domain, they are accessible to anyone. This means 1) they see groups that are irrelevant to them and 2) in CiviMail send mailings out to records who are not within their ACL control via this extension: ht...Because groups are not tied to a domain, they are accessible to anyone. This means 1) they see groups that are irrelevant to them and 2) in CiviMail send mailings out to records who are not within their ACL control via this extension: https://civicrm.org/extensions/multisite-permissioning.
This leads to the question, how do we get more entities to be domain specific? There are some listed on the old documentation as desirable here: https://wiki.civicrm.org/confluence/display/CRMDOC/Multisites%2C+Multidomain%2C+and+Multilevel+ACLs#Multisites,Multidomain,andMultilevelACLs-FunctionalSeparationinMultisite, groups is not.https://lab.civicrm.org/dev/core/-/issues/783CiviMail group segementation on multisite2022-03-03T16:22:04ZandyburnsCiviMail group segementation on multisiteOverall, the mailer doesn't take into account the current users ACL. As an example it should look at the group to be mailed to (e.g. Volunteers) and then have an AND clause of the users ACL to limit the contacts it can mail to in the gro...Overall, the mailer doesn't take into account the current users ACL. As an example it should look at the group to be mailed to (e.g. Volunteers) and then have an AND clause of the users ACL to limit the contacts it can mail to in the group. So if the group has 1000 records and my multisite domain group only has 100 records within it, I should be able to select the volunteers group and only be able to send to 100.
I also do not know if Civi can handle lots of regular groups: https://civicrm.stackexchange.com/questions/28790/email-segmentation-with-thousands-of-groups.
For chapter-based orgs, something along this is what is needed. You can see there would be tremendous redundancy if one had to re-create a group at each geographical level.
I wanted to get this down as an issue and start a conversation. I think this could be a candidate for an MIH if it was packaged as making multisite more complete.https://lab.civicrm.org/dev/core/-/issues/784Creating a new relationship type while editing case type definition adds a bl...2019-03-24T20:47:10ZDaveDCreating a new relationship type while editing case type definition adds a blank row in the roles sectionCame across this while working on dev/core#774. Making it a separate child issue (or trying to) since the cause is different and can reproduce separately on the public demo. The cause is that crmCaseType.js accesses data.relationshipType...Came across this while working on dev/core#774. Making it a separate child issue (or trying to) since the cause is different and can reproduce separately on the public demo. The cause is that crmCaseType.js accesses data.relationshipType.label_b_a as if it was an object member but it actually looks like data.relationshipType.19.label_b_a, where 19 is the newly created id.
By "new relationship type" I mean on the case type edit admin screen where you have the dropdown to add a role, if you start typing in the dropdown and it doesn't match an existing relationship type it gives you a "(new)" hint where you can click to create the new relationship type on the fly.5.13.0https://lab.civicrm.org/dev/core/-/issues/785Differentiate smart group from regular group using icon in select2 field2020-07-27T19:47:10ZMonish DebDifferentiate smart group from regular group using icon in select2 fieldCurrently there is no way to tell which group is smart or regular group from UI. It would be ideal to use icon against such smart group options to differentiate them from regular ones.Currently there is no way to tell which group is smart or regular group from UI. It would be ideal to use icon against such smart group options to differentiate them from regular ones.5.29.0Monish DebMonish Debhttps://lab.civicrm.org/dev/drupal/-/issues/52Drupal8: getUrlPath: avoid relying on the deprecated 'q' variable2020-05-27T12:49:03ZbgmDrupal8: getUrlPath: avoid relying on the deprecated 'q' variableContext: Symbiotic has an extension for theming that uses this trick to detect whether it's running in a frontend or backend form (to avoid loading our CSS on the frontend):
```
function adminimore_civicrm_config(&$config) {
$path = C...Context: Symbiotic has an extension for theming that uses this trick to detect whether it's running in a frontend or backend form (to avoid loading our CSS on the frontend):
```
function adminimore_civicrm_config(&$config) {
$path = CRM_Utils_System::getUrlPath();
$item = CRM_Core_Menu::get($path);
$resources = CRM_Core_Resources::singleton();
// if item is not known, assume it's public (e.g. wordpress shortcode)
if ($item && !CRM_Utils_Array::value('is_public', $item)) {
$resources->addStyleFile(ADMINIMORE_RESOURCE, 'css/civicrm-admin.css', 15, 'html-header');
$resources->addStyleFile(ADMINIMORE_RESOURCE, 'css/civicrm-buttons.css', 15, 'html-header');
}
$resources->addStyleFile(ADMINIMORE_RESOURCE, 'css/civicrm-menu.css', 15, 'html-header');
_adminimore_civix_civicrm_config($config);
}
```
In Drupal8, we were having weird problems where the CSS would sometimes not load. If we refreshed, it loaded, but after some time, the bug would appear again and we would stumble on a screen using the default CiviCRM CSS.
After some poking around, it seems that Drupal8 deprecated the 'q' variable, which CiviCRM is still using in `CRM_Utils_System::getUrlPath()`.
I did a quick patch to test a workaround, which so far seems to be working:
```
public static function getUrlPath() {
if (CRM_Core_Config::singleton()->userFramework == 'Drupal8') {
if (class_exists('Drupal') && \Drupal::hasContainer()) {
$path = \Drupal::service('path.current')->getPath();
// Remove '/' prefix. Ex: '/civicrm/contribute' becomes 'civicrm/contribute'.
if ($path) {
$path = substr($path, 1);
// Remove the language prefix, if present
// The URL returned by Drupal randomly includes the language prefix, sometimes not.
if (preg_match('/^\w\w\//', $path)) {
$path = substr($path, 3);
}
return $path;
}
}
}
if (isset($_GET[CRM_Core_Config::singleton()->userFrameworkURLVar])) {
return $_GET[CRM_Core_Config::singleton()->userFrameworkURLVar];
}
return NULL;
}
```
A cleaner solution might be to check if the `$config->userSystem->getUrlPath()` function exists, and if it does, call it?https://lab.civicrm.org/dev/core/-/issues/786Search Builder: Empty Operators create DB Errors; switching to NULL Operators...2023-01-03T05:03:33ZjoeglSearch Builder: Empty Operators create DB Errors; switching to NULL Operators fixesStackOverflow here: https://civicrm.stackexchange.com/questions/28802/search-builder-smart-group-with-latitute-street-address-criteria-1292-truncated
We have upgraded from 4.7.17 to 5.9.1. This was initially a Smart Group DB Error issue...StackOverflow here: https://civicrm.stackexchange.com/questions/28802/search-builder-smart-group-with-latitute-street-address-criteria-1292-truncated
We have upgraded from 4.7.17 to 5.9.1. This was initially a Smart Group DB Error issue, but I believe it has more to do with the Empty vs Null operators. The Smart Group/Contact Group in question is built on two simple search builder criteria:
Contacts Primary Street Address is NOT EMPTY
Contacts Primary Latitude IS EMPTY
The resulting error from trying to update this Smart Group is:
`[nativecode=1292 ** Truncated incorrect DOUBLE value: '']`
Additionally, when I attempt to create a new Search Builder with the same criteria, I wouldn't get a hard DB Error page fail, but I still saw this in the logs:
`Ignoring exception thrown by nullHandler: -1, DB Error: unknown error`
When I switched both the operators from EMPTY to NULL in the criteria, I had no problems with search and was able to successfully update the Smart Group.
One thing which I think is important/pertinent is when I initially loaded the "Edit Search Criteria" page for the existing Smart Group, the Search did not remember the operators and I had to re-select them -- this leads me to believe the field storage methodology for the operator lists changed at some point, and the options we had selected in this search were not carried over properly in an upgrade, but I am not certain.https://lab.civicrm.org/dev/wordpress/-/issues/19Bug with WordPress CiviCRM 5.10.3 Remote Profiles HTML Form Snippet Form Acti...2020-06-17T09:07:23ZjohngehrigBug with WordPress CiviCRM 5.10.3 Remote Profiles HTML Form Snippet Form Action URLVersion: CiviCRM 5.10.3
Type: Bug
CMS: WordPress
With the update to CiviCRM 5.10.3, I noticed the form action URL in the HTML Form Snippet generated for Remote Profile submissions has changed, breaking the form submission functionalit...Version: CiviCRM 5.10.3
Type: Bug
CMS: WordPress
With the update to CiviCRM 5.10.3, I noticed the form action URL in the HTML Form Snippet generated for Remote Profile submissions has changed, breaking the form submission functionality for anonymous users with all newly generated HTML Form Snippets.
**This is the first time I have noticed this bug, which was definitely introduced sometime after version CiviCRM 5.7.2, the last time I generated an HTML Form Snippet that was used with a Remote Profile.**
Previously, the HTML Form Snippet generated code with a form action URL that posted to the "create profile" URL, allowing form submissions from anonymous users:
`<form action="https://wpmaster.demo.civicrm.org/civicrm/?page=CiviCRM&q=civicrm%2Fprofile%2Fcreate" method="post" name="Edit" id="Edit" class="CRM_Profile_Form_Edit" >`
After the update, the code generated by the HTML Form Snippet includes a form action URL that posts to the default "admin group":
`<form action="https://wpmaster.demo.civicrm.org/civicrm/?page=CiviCRM&q=civicrm%2Fadmin%2Fuf%2Fgroup" method="post" name="Edit" id="Edit" class="CRM_Profile_Form_Edit" >`
With the above form action URL, anonymous user see the following error when the user clicks the "Submit" button:
> You do not have permission to access this content.
Manually changing the code in the HTML Form Snippet to use a form action URL with the previous "create profile" version restores the functionality.
This bug is specifically related to the generate HTML Form Snippet code as Profiles work properly for anonymous users when inserted using the "Add CiviCRM Public Pages" button within WordPress, which inserts the code that includes the correct "create profile" form action URL.
I tested both WordPress and Drupal 7 demo sites and was able to replicate the bug with ONLY the WordPress demo site:
https://wpmaster.demo.civicrm.org/
https://dmaster.demo.civicrm.org/
----
Steps to Reproduce Bug with WordPress CiviCRM 5.10.3+:
Login
CiviCRM > Administer > System Settings > Misc (Undelete, PDFs, Limits, Logging, Captcha, etc.)
For the "Accept profile submissions from external sites" option, select "Yes" and then click "Save"
Administer > Custom Data and Screens > Profiles
For any Profile, generate the code by clicking: more > HTML Form Snippet
The code generated by the updated version includes a "post" action URL to the "admin group"https://lab.civicrm.org/dev/core/-/issues/787Auto-complete search results not consistent with other searches2020-03-16T20:27:10ZyashodhaAuto-complete search results not consistent with other searchesAuto-complete (custom data on contacts) search results not consistent with other searches if the searched string has a space.
(check screenshot)![search](/uploads/8047fab578e9e63da65526701a88682d/search.png)
The quick search result is ri...Auto-complete (custom data on contacts) search results not consistent with other searches if the searched string has a space.
(check screenshot)![search](/uploads/8047fab578e9e63da65526701a88682d/search.png)
The quick search result is right and the auto-complete should also show 1 result only.5.25.0yashodhayashodha