Development issueshttps://lab.civicrm.org/groups/dev/-/issues2023-11-03T05:03:19Zhttps://lab.civicrm.org/dev/core/-/issues/3015Undefined Index2023-11-03T05:03:19ZJoeMurrayUndefined IndexOverview
----------------------------------------
_Update multiple participants caused undefined index error on dmaster._
Reproduction steps
----------------------------------------
1. Create custom alphanumeric field for participants,...Overview
----------------------------------------
_Update multiple participants caused undefined index error on dmaster._
Reproduction steps
----------------------------------------
1. Create custom alphanumeric field for participants, eg add Idea to Food Preference custom field set on dmaster.
1. Create profile with just this new field, eg test.
1. Find all participants, select a couple, then choose Update multiple participants search results action.
1. Select profile created above. Click continue.
1. See Notice: Undefined index: size in CRM_Event_Form_Task_Batch->buildQuickForm() (line 108 of /srv/buildkit/build/dmaster/web/sites/all/modules/civicrm/CRM/Event/Form/Task/Batch.php).
1. Note that the Idea field has a column but there is no field provided to enter data.
Current behaviour
----------------------------------------
![2022-01-03_11-51-42](/uploads/3b007e3aa61eb2b3cc00bd3d10e36360/2022-01-03_11-51-42.png)
Expected behaviour
----------------------------------------
No error. Ability to enter / edit data in Idea field.
Environment information
----------------------------------------
dmaster on mac chrome.EdselopezEdselopez2022-01-05https://lab.civicrm.org/dev/core/-/issues/3284APIv4 Query Improvements2022-04-22T15:53:45Zjoshjosh@civicrm.orgAPIv4 Query ImprovementsThis project will expand the query language of APIv4 to increase functionality. Implementing this will enhance the capabilities of APIv4-based Smart Groups; without this their utility will be limited to simple queries. This is also a pre...This project will expand the query language of APIv4 to increase functionality. Implementing this will enhance the capabilities of APIv4-based Smart Groups; without this their utility will be limited to simple queries. This is also a prerequisite to the Search Builder UI project.
Tasks:
- Implement Having, Group By parameters.
- Enable use of SQL Functions like SUM().
- Implement explicit joins.
- Implement a way to add subquery expressions to an API call.
Related pull-requests:
* [#16947 - Support GROUP BY and aggregate functions](https://github.com/civicrm/civicrm-core/pull/16947) (merged)
* [#17047 - Api4 Explorer: Support SQL functions and HAVING clause ](https://github.com/civicrm/civicrm-core/pull/17047) (merged)colemanwcolemanw2020-06-30https://lab.civicrm.org/dev/core/-/issues/3243Search Builder UI2022-04-22T15:52:31Zjoshjosh@civicrm.orgSearch Builder UIThis project will create a unified interface that replaces the current Advanced Search and Search Builder forms. This requires the APIv4 Query Improvements project to be done (or at least underway). This is a prerequisite to the Form-Bui...This project will create a unified interface that replaces the current Advanced Search and Search Builder forms. This requires the APIv4 Query Improvements project to be done (or at least underway). This is a prerequisite to the Form-Builder-based reports and custom searches projects.
The mockup for this interface is available at the bottom of https://lab.civicrm.org/dev/report/-/wikis/Search-Builder-Overhaul
Tasks:
- Selection of base table + joins
- Drag-n-drop nested and/or where clauses supporting all fields and operators
- Controls for grouping and sorting
- Display and paging of search results
- Configurable output columns with drag-n-droppable table headers
- Selection of actions to act upon output rows (e.g. “Add Tags”)
- Button to save query as APIv4-based smart group.colemanwcolemanw2020-06-30https://lab.civicrm.org/dev/core/-/issues/3242APIv4-Based Smart(er) Groups2022-04-22T15:52:29Zjoshjosh@civicrm.orgAPIv4-Based Smart(er) GroupsThis project will allow smart groups to be built from APIv4 criteria. The MVP would include a button in the API Explorer to save an api4 query as a smart group. This will also connect with the new Search Builder UI when that project is c...This project will allow smart groups to be built from APIv4 criteria. The MVP would include a button in the API Explorer to save an api4 query as a smart group. This will also connect with the new Search Builder UI when that project is complete.
Tasks:
- Allow swappable backend to smart groups
- Extend smart group schema to store api4 query parameters
- Add support for saving smart groups to API explorer UI.colemanwcolemanw2020-06-30https://lab.civicrm.org/dev/core/-/issues/1810Can't blank out help_pre2023-03-28T05:03:43ZJoeMurrayCan't blank out help_preOverview
----------------------------------------
_On multilingual site (eg dmaster with ca_FR enabled), it is not possible to blank out help_pre or help_post in the browser for a profile field._
I reported this years ago but never got ...Overview
----------------------------------------
_On multilingual site (eg dmaster with ca_FR enabled), it is not possible to blank out help_pre or help_post in the browser for a profile field._
I reported this years ago but never got around to fixing it.
Reproduction steps
----------------------------------------
1. Enable an additional language.
2. Go to a profile field, edit it, and add some help_pre and help_post text. Save.
3. Re-edit the field, delete the help_pre and help_post text. Save.
4. Re-edit the field, and observe that the help_pre and help_post text has not been deleted.
Current behaviour
----------------------------------------
_help_pre and help_post for profile fields on multilingual sites cannot be set to nothing._
Expected behaviour
----------------------------------------
_help_pre and help_post for profile fields on multilingual sites can be set to nothing._
Comments
----------------------------------------
_Works fine when multilingual not enabled._Monish DebMonish Deb2020-06-13https://lab.civicrm.org/dev/core/-/issues/1775civicrm_financial_trxn.fee_amount reversals mixed up2023-03-22T05:03:26ZJoeMurraycivicrm_financial_trxn.fee_amount reversals mixed upOverview
----------------------------------------
When doing reversal bookkeeping entry as part of changing a financial type, the fee_amount field does not have its sign reversed. This results in an incorrect net_amount field. See bug 1 ...Overview
----------------------------------------
When doing reversal bookkeeping entry as part of changing a financial type, the fee_amount field does not have its sign reversed. This results in an incorrect net_amount field. See bug 1 in https://gist.github.com/JoeMurray/6db6a82ff6c9e593ca5301b5f8708f52
Current behaviour
----------------------------------------
civicrm_financial_trxn.fee_amount has same value as original record in the reversal record. This results in net_amount not being a correct reversal of the original record's net_amount.
Expected behaviour
----------------------------------------
civicrm_financial_trxn.fee_amount has negative of value in original record in the reversal record. This results in net_amount being the negative in the reversal record of that field in the original record.
Comments
----------------------------------------
We should check for this issue wherever the code creates reversal transactions.
Make unit tests for all of the areas in the code where this occurs.seamusleeseamuslee2020-05-26https://lab.civicrm.org/dev/core/-/issues/2020Revert 20202022-10-11T14:54:01ZeileenRevert 2020Entirely. PleaseEntirely. Please2020-01-01https://lab.civicrm.org/dev/financial/-/issues/1On new contribution, when priceset chosen remove 'Alternatively, you can use ...2020-05-27T13:21:37ZJoeMurrayOn new contribution, when priceset chosen remove 'Alternatively, you can use a price set.'On backoffice new contribution screen, there is on screen help text under Total Amount field saying 'Alternatively, you can use a price set.' Clicking button to choose a price set incorrectly leaves the text there after the price set is ...On backoffice new contribution screen, there is on screen help text under Total Amount field saying 'Alternatively, you can use a price set.' Clicking button to choose a price set incorrectly leaves the text there after the price set is displayed. Clicking the Price Set field toggles to make it disappear even if the selection is 'Choose price set' which removes price set.
Fix to display this text when price set is not (yet) selected, and to hide it when a price set is selected.Monish DebMonish Deb2018-02-07https://lab.civicrm.org/dev/core/-/issues/5112Blank custom fields accordion appears on Find XXX search forms2024-03-28T15:06:49ZDaveDBlank custom fields accordion appears on Find XXX search formse.g. Find Activities, Find Cases. An accordion appears, but there's nothing in it. I don't think it ever used to appear. Started maybe in 5.72?e.g. Find Activities, Find Cases. An accordion appears, but there's nothing in it. I don't think it ever used to appear. Started maybe in 5.72?5.72.0https://lab.civicrm.org/dev/core/-/issues/5107Premiums configuration gives a 500 error2024-03-28T20:00:10ZJonGoldPremiums configuration gives a 500 errorOverview
----------------------------------------
In "Manage Contribution Pages", clicking on the "Premiums" page gives a 500 error. This happens in 5.71 and master, not in 5.70.
Reproduction steps
-------------------------------------...Overview
----------------------------------------
In "Manage Contribution Pages", clicking on the "Premiums" page gives a 500 error. This happens in 5.71 and master, not in 5.70.
Reproduction steps
----------------------------------------
See above.
Comments
----------------------------------------
This seems Smarty-related. I tried a `git bisect` but there's a different issue that breaks this page that makes that difficult. However, below is the error and backtrace I get when I set XDebug to pause on error:
```
"Type of SmartyCompilerException:: must be int (as in class Exception)"
include (/home/jon/local/civicrm-buildkit/build/dmaster/web/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smartycompilerexception.php:8)
Composer\Autoload\{closure:/home/jon/local/civicrm-buildkit/build/dmaster/web/sites/all/modules/civicrm/vendor/composer/ClassLoader.php:575-577} (/home/jon/local/civicrm-buildkit/build/dmaster/web/sites/all/modules/civicrm/vendor/composer/ClassLoader.php:576)
Composer\Autoload\ClassLoader->loadClass (/home/jon/local/civicrm-buildkit/build/dmaster/web/sites/all/modules/civicrm/vendor/composer/ClassLoader.php:427)
Smarty_Internal_TemplateCompilerBase->trigger_template_error (/home/jon/local/civicrm-buildkit/build/dmaster/web/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php:1153)
Smarty_Internal_CompileBase->closeTag (/home/jon/local/civicrm-buildkit/build/dmaster/web/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compilebase.php:196)
Smarty_Internal_Compile_Private_Block_Plugin->compile (/home/jon/local/civicrm-buildkit/build/dmaster/web/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_block_plugin.php:77)
Smarty_Internal_TemplateCompilerBase->callTagCompiler (/home/jon/local/civicrm-buildkit/build/dmaster/web/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php:768)
Smarty_Internal_TemplateCompilerBase->compileTag2 (/home/jon/local/civicrm-buildkit/build/dmaster/web/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php:1722)
Smarty_Internal_TemplateCompilerBase->compileTag (/home/jon/local/civicrm-buildkit/build/dmaster/web/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php:565)
Smarty_Internal_Templateparser->yy_r45 (/home/jon/local/civicrm-buildkit/build/dmaster/web/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templateparser.php:2559)
Smarty_Internal_Templateparser->yy_reduce (/home/jon/local/civicrm-buildkit/build/dmaster/web/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templateparser.php:3481)
Smarty_Internal_Templateparser->doParse (/home/jon/local/civicrm-buildkit/build/dmaster/web/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templateparser.php:3573)
Smarty_Internal_SmartyTemplateCompiler->doCompile (/home/jon/local/civicrm-buildkit/build/dmaster/web/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_smartytemplatecompiler.php:128)
Smarty_Internal_TemplateCompilerBase->compileTemplateSource (/home/jon/local/civicrm-buildkit/build/dmaster/web/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php:481)
Smarty_Internal_TemplateCompilerBase->compileTemplate (/home/jon/local/civicrm-buildkit/build/dmaster/web/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php:402)
Smarty_Template_Compiled->compileTemplateSource (/home/jon/local/civicrm-buildkit/build/dmaster/web/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php:184)
Smarty_Template_Compiled->process (/home/jon/local/civicrm-buildkit/build/dmaster/web/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php:141)
Smarty_Template_Compiled->render (/home/jon/local/civicrm-buildkit/build/dmaster/web/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php:105)
Smarty_Internal_Template->render (/home/jon/local/civicrm-buildkit/build/dmaster/web/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php:216)
Smarty_Internal_Template->_subTemplateRender (/home/jon/local/civicrm-buildkit/build/dmaster/web/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php:385)
content_65fa056d841377_41904664 (/home/jon/local/civicrm-buildkit/app/private/dmaster/default/civicrm/templates_c/en_US/3f/b3/c1/3fb3c10824e8bcce0275790f5b54d852eeb8a4d7_0.file.default.tpl.php:53)
Smarty_Template_Resource_Base->getRenderedTemplateCode (/home/jon/local/civicrm-buildkit/build/dmaster/web/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php:123)
Smarty_Template_Compiled->render (/home/jon/local/civicrm-buildkit/build/dmaster/web/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php:114)
Smarty_Internal_Template->render (/home/jon/local/civicrm-buildkit/build/dmaster/web/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php:216)
Smarty_Internal_Template->_subTemplateRender (/home/jon/local/civicrm-buildkit/build/dmaster/web/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php:385)
content_65fc658f02ae61_03133634 (/home/jon/local/civicrm-buildkit/app/private/dmaster/default/civicrm/templates_c/en_US/7e/52/3d/7e523d898add0d1ddbfb9d731ea772b38ca3b855_0.file.snippet.tpl.php:73)
Smarty_Template_Resource_Base->getRenderedTemplateCode (/home/jon/local/civicrm-buildkit/build/dmaster/web/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php:123)
Smarty_Template_Compiled->render (/home/jon/local/civicrm-buildkit/build/dmaster/web/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php:114)
Smarty_Internal_Template->render (/home/jon/local/civicrm-buildkit/build/dmaster/web/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php:216)
Smarty_Internal_TemplateBase->_execute (/home/jon/local/civicrm-buildkit/build/dmaster/web/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php:232)
Smarty_Internal_TemplateBase->fetch (/home/jon/local/civicrm-buildkit/build/dmaster/web/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php:116)
CRM_Core_QuickForm_Action_Display->renderForm (/home/jon/local/civicrm-buildkit/build/dmaster/web/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Display.php:117)
CRM_Core_QuickForm_Action_Display->perform (/home/jon/local/civicrm-buildkit/build/dmaster/web/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Display.php:83)
HTML_QuickForm_Controller->handle (/home/jon/local/civicrm-buildkit/build/dmaster/web/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php:203)
HTML_QuickForm_Page->handle (/home/jon/local/civicrm-buildkit/build/dmaster/web/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php:103)
CRM_Core_Controller->run (/home/jon/local/civicrm-buildkit/build/dmaster/web/sites/all/modules/civicrm/CRM/Core/Controller.php:355)
CRM_Utils_Wrapper->run (/home/jon/local/civicrm-buildkit/build/dmaster/web/sites/all/modules/civicrm/CRM/Utils/Wrapper.php:98)
CRM_Core_Invoke::runItem (/home/jon/local/civicrm-buildkit/build/dmaster/web/sites/all/modules/civicrm/CRM/Core/Invoke.php:298)
CRM_Core_Invoke::_invoke (/home/jon/local/civicrm-buildkit/build/dmaster/web/sites/all/modules/civicrm/CRM/Core/Invoke.php:69)
CRM_Core_Invoke::invoke (/home/jon/local/civicrm-buildkit/build/dmaster/web/sites/all/modules/civicrm/CRM/Core/Invoke.php:36)
civicrm_invoke (/home/jon/local/civicrm-buildkit/build/dmaster/web/sites/all/modules/civicrm/drupal/civicrm.module:471)
menu_execute_active_handler (/home/jon/local/civicrm-buildkit/build/dmaster/web/includes/menu.inc:527)
{main} (/home/jon/local/civicrm-buildkit/build/dmaster/web/index.php:21)https://lab.civicrm.org/dev/core/-/issues/5101Search Builder: Contact not in Tag don't takes contacts without tags into acc...2024-03-19T20:35:27ZglanzelSearch Builder: Contact not in Tag don't takes contacts without tags into accountOverview
----------------------------------------
In Search Generator When searching for not in Tag(s) it don't takes contacts without tags into account.
Reproduction steps
----------------------------------------
Click Search -> Sear...Overview
----------------------------------------
In Search Generator When searching for not in Tag(s) it don't takes contacts without tags into account.
Reproduction steps
----------------------------------------
Click Search -> Search Builder
and there choose
Contact -> Tags -> not in -> TagX.
as Search parameter.
Current behaviour
----------------------------------------
Only Persons with minimum one Tag but without TagX gets displayed.
Expected behaviour
----------------------------------------
Any Contact with Tags other than TagX **and** all Contacts without any Tag should be displayed.
Environment information
----------------------------------------
* CiviCRM:CiviCRM 5.73.alpha1
Comments
----------------------------------------https://lab.civicrm.org/dev/core/-/issues/5100Payment appears as 123 units of $1 rather than one unit of $123 if using othe...2024-03-22T14:38:36ZwmortadaPayment appears as 123 units of $1 rather than one unit of $123 if using other amount fieldOverview
----------------------------------------
This appears to be a regression in CiviCRM 5.69 upwards. If you create a contribution pages that allows other amounts the amount in that field is recorded in the quantity field of the li...Overview
----------------------------------------
This appears to be a regression in CiviCRM 5.69 upwards. If you create a contribution pages that allows other amounts the amount in that field is recorded in the quantity field of the line item rather than the unit price.
It looks like the quantity and the unit price have been swapped.
Reproduction steps
----------------------------------------
1. Create a contribution page with the other amounts section enabled
2. Visit the contribution page and type an amount in 'Other amount' field
3. View the contact record - note that the quantity is the amount and the unit price is 1.00
![image](/uploads/c16ed4be20e97bb2f86d63d5842d481e/image.png)
![image](/uploads/2e27e1f53dfca423a63ef4d98a5f0042/image.png)
![image](/uploads/85840162f1fc088ddcd6de5c7565ea5d/image.png)
Current behaviour
----------------------------------------
The amount is recorded in the quantity field. The unit price is $1.00.
Expected behaviour
----------------------------------------
The quantity is 1. The amount is recorded in the unit price field.
Environment information
----------------------------------------
Tested in CiviCRM 5.69, 5.70 and 5.73alpha1 (current dmaster). It is an issue in all three versions.
I'm not sure when this stopped working, but think it is quite recent.5.71.2https://lab.civicrm.org/dev/core/-/issues/5097Can't set Outbound Mail to use SMTP without a fatal error2024-03-17T08:26:35ZUpperholmeCan't set Outbound Mail to use SMTP without a fatal errorUsing CiviCRM 5.70.1 I want to set up Outbound Mail to send via SMTP. I provide the relevant details and login credentials via the form that would let me send via the mail account that I've set up expressly for this purpose. On testing -...Using CiviCRM 5.70.1 I want to set up Outbound Mail to send via SMTP. I provide the relevant details and login credentials via the form that would let me send via the mail account that I've set up expressly for this purpose. On testing - using the 'Save and send a test' functionality I would expect to see a positive response, along with an email, or an on-screen error message to indicate that the details entered were in some way inaccurate.
However all I get is a fatal error. The log reports this as:
```
Got error 'PHP message: PHP Warning: Undefined property: CRM_Admin_Form_Setting_Smtp::$_id in /home/rp/sites/live/wp-content/plugins/civicrm/civicrm/CRM/Core/Form.php on line 2123
PHP message: PHP Warning: Undefined property: CRM_Admin_Form_Setting_Smtp::$_id in /wp-content/plugins/civicrm/civicrm/CRM/Core/Form.php on line 2123
PHP message: PHP Warning: Undefined property: CRM_Admin_Form_Setting_Smtp::$_id in /wp-content/plugins/civicrm/civicrm/CRM/Core/Form.php on line 2123
PHP message: PHP Warning: Undefined property: CRM_Admin_Form_Setting_Smtp::$_id in /wp-content/plugins/civicrm/civicrm/CRM/Core/Form.php on line 2123
PHP message: PHP Warning: Undefined property: CRM_Admin_Form_Setting_Smtp::$_id in /wp-content/plugins/civicrm/civicrm/CRM/Core/Form.php on line 2123
PHP message: PHP Fatal error: Uncaught Error: Call to undefined function fsockopen() in /wp-content/plugins/civicrm/civicrm/vendor/pear/net_socket/Net/Socket.php:165
```
I tried various settings options, but it didn't matter what I entered into the settings form, I got the same result.
I asked a question about this on StackExchange: https://civicrm.stackexchange.com/questions/47564/what-values-are-required-in-order-to-send-outbound-mail-via-smtp
Seeing that version 5.71 included significant changes to CiviMail, I upgraded my development site and retested. Same result:
```
PHP Warning: Undefined property: CRM_Admin_Form_Setting_Smtp::$_id in /home/rpdev/sites/dev/wp-content/plugins/civicrm/civicrm/CRM/Core/Form.php on line 2140;
PHP Warning: Undefined property: CRM_Admin_Form_Setting_Smtp::$_id in /home/rpdev/sites/dev/wp-content/plugins/civicrm/civicrm/CRM/Core/Form.php on line 2140;
PHP Warning: Undefined property: CRM_Admin_Form_Setting_Smtp::$_id in /home/rpdev/sites/dev/wp-content/plugins/civicrm/civicrm/CRM/Core/Form.php on line 2140;
PHP Warning: Undefined property: CRM_Admin_Form_Setting_Smtp::$_id in /home/rpdev/sites/dev/wp-content/plugins/civicrm/civicrm/CRM/Core/Form.php on line 2140;
PHP Warning: Undefined property: CRM_Admin_Form_Setting_Smtp::$_id in /home/rpdev/sites/dev/wp-content/plugins/civicrm/civicrm/CRM/Core/Form.php on line 2140;
PHP Fatal error: Uncaught Error: Call to undefined function fsockopen() in /home/rpdev/sites/dev/wp-content/plugins/civicrm/civicrm/vendor/pear/net_socket/Net/Socket.php:165
```
Stack trace:
```
#0 /home/rpdev/sites/dev/wp-content/plugins/civicrm/civicrm/vendor/pear/net_smtp/Net/SMTP.php(451): Net_Socket->connect()
#1 /home/rpdev/sites/dev/wp-content/plugins/civicrm/civicrm/vendor/pear/mail/Mail/smtp.php(449): Net_SMTP->connect()
#2 /home/rpdev/sites/dev/wp-content/plugins/civicrm/civicrm/vendor/pear/mail/Mail/smtp.php(332): Mail_smtp->getSMTPObject()
#3 /home/rpdev/sites/dev/wp-content/plugins/civicrm/civicrm/vendor/pear/mail/Mail/smtp.php(319): Mail_smtp->send_or_fail()
#4 /home/rpdev/sites/dev/wp-content/plugins/civicrm/civicrm/CRM/Utils/Mail/FilteredPearMailer.php(77): Mail_smtp->send()
#5 /home/rpdev/sites/dev/wp-content/plugins/civicrm/civicrm/CRM/Admin/Form/Setting/Smtp.php(185): CRM_Utils_Mail_FilteredPearMailer->send()
#6 /home/rpdev/sites/dev/wp-content/plugins/civicrm/civicrm/CRM/...', referer: https://mysite.com/wp-admin/admin.php?page=CiviCRM&q=civicrm%2Fadmin%2Fsetting%2Fsmtp&_qf_Smtp_display=true
```https://lab.civicrm.org/dev/core/-/issues/5090Display of autocomplete multi-select custom fields for events is broken2024-03-18T23:14:49ZDetlev SieberDisplay of autocomplete multi-select custom fields for events is broken## Overview
For events, the display of autocomplete multi-select fields does not work anymore.
## Reproduction steps
1. Create a custom field for events:
1. Data Type Alphanumeric
2. Field Input Type: autocomplete
3. Multi-Se...## Overview
For events, the display of autocomplete multi-select fields does not work anymore.
## Reproduction steps
1. Create a custom field for events:
1. Data Type Alphanumeric
2. Field Input Type: autocomplete
3. Multi-Select: check
4. Add two options (e.g. "value1", "value2")
2. Edit an event, select "value1", Save.
3. Open the event again: the selected value(s) are not displayed (however, they are stored in the database).
## Current behaviour
Stored values of autocomplete multi-select fields for events are not displayed.
(This might create problems, because when you save, then the existing values are overwritten/nulled)
## Expected behaviour
Stored values of autocomplete multi-select fields for events should be displayed.
## Environment information
* This worked well with CiviCRM 5.64.4, but since some time it is broken.
* Tested here with 5.71.1
## Workaround
* Field input type can be changed to "checkbox(es)" - which however might be ugly and un-usable if there are many option.5.71.2https://lab.civicrm.org/dev/core/-/issues/5089WP FormBuilder: u.hoverintent is not a function2024-03-12T23:54:12Zaydunsaidan.saunders@squiffle.ukWP FormBuilder: u.hoverintent is not a function## Overview
On WordPress, going to the FormBuilder page produces the js error `Uncaught TypeError: u.hoverintent is not a function`
## Reproduction steps
1. Log on to https://wpmaster.demo.civicrm.org (or a BuildKit new installation o...## Overview
On WordPress, going to the FormBuilder page produces the js error `Uncaught TypeError: u.hoverintent is not a function`
## Reproduction steps
1. Log on to https://wpmaster.demo.civicrm.org (or a BuildKit new installation of wpmaster)
2. Open your browser's Developer Tools
3. Go to `Administer > Customise Data & Screens > FormBuilder`
4. Observer the console errors:
```
Uncaught TypeError: u.hoverintent is not a function
<anonymous> https://wpmaster.demo.civicrm.org/wp-includes/js/admin-bar.min.js?ver=6.4.3:2
EventListener.handleEvent* https://wpmaster.demo.civicrm.org/wp-includes/js/admin-bar.min.js?ver=6.4.3:2
<anonymous> https://wpmaster.demo.civicrm.org/wp-includes/js/admin-bar.min.js?ver=6.4.3:2
admin-bar.min.js:2:2979
<anonymous> https://wpmaster.demo.civicrm.org/wp-includes/js/admin-bar.min.js?ver=6.4.3:2
(Async: EventListener.handleEvent)
<anonymous> https://wpmaster.demo.civicrm.org/wp-includes/js/admin-bar.min.js?ver=6.4.3:2
<anonymous> https://wpmaster.demo.civicrm.org/wp-includes/js/admin-bar.min.js?ver=6.4.3:2
jQuery.Deferred exception: f.find(...).hoverIntent is not a function @https://wpmaster.demo.civicrm.org/wp-admin/js/common.min.js?ver=6.4.3:2:12296
e@https://wpmaster.demo.civicrm.org/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.4.3:2:27028
Deferred/then/l/</t<@https://wpmaster.demo.civicrm.org/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.4.3:2:27330
setTimeout handler*Deferred/then/l/<@https://wpmaster.demo.civicrm.org/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.4.3:2:27594
c@https://wpmaster.demo.civicrm.org/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.4.3:2:25304
fireWith@https://wpmaster.demo.civicrm.org/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.4.3:2:26053
fire@https://wpmaster.demo.civicrm.org/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.4.3:2:26089
c@https://wpmaster.demo.civicrm.org/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.4.3:2:25304
fireWith@https://wpmaster.demo.civicrm.org/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.4.3:2:26053
ready@https://wpmaster.demo.civicrm.org/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.4.3:2:29112
P@https://wpmaster.demo.civicrm.org/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.4.3:2:28884
EventListener.handleEvent*@https://wpmaster.demo.civicrm.org/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.4.3:2:29264
@https://wpmaster.demo.civicrm.org/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.4.3:2:220
@https://wpmaster.demo.civicrm.org/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.4.3:2:225
undefined load-scripts.php:2:28648
downloadable font: Glyph bbox was incorrect (glyph ids 33 55 62 81 82 83 84 87 88 89 90 112 119 120 123 139 159 162 164 166 178 184 185 217 218 272 273 274 275 279 281 284 290 291 292 309 310 319 321 323 326 329 330 331 332 333 334 339 341 347 349 351 352 353 354 357 358 361 366 367 370 371 414 431 436 444 445 458 460 464 465 483 505 508 511 514 516 517 518 520 521 538 539 546 568 574 579 580 585 586 594 596 599 602 603 616 618 622 627 629 630 633 634 638 643 645 651 654 665 675 685 686 688 691) (font-family: "FontAwesome" style:normal weight:400 stretch:100 src index:1) source: https://wpmaster.demo.civicrm.org/wp-content/plugins/civicrm/civicrm/bower_components/font-awesome/fonts/fontawesome-webfont.woff2?v=4.7.0
Uncaught TypeError: f.find(...).hoverIntent is not a function
<anonymous> https://wpmaster.demo.civicrm.org/wp-admin/js/common.min.js?ver=6.4.3:2
jQuery 13
common.min.js:2:12296
```
## Current behaviour
Errors
## Expected behaviour
No errors!
## Environment information
* **CiviCRM:** _Master_
* **CMS:** _WordPress 6.4.3 - Does not occur on Drupal_
## Comments
_Anything else you would like the reviewer to note._https://lab.civicrm.org/dev/core/-/issues/5088message template "Events - Registration Confirmation and Receipt (on-line)" -...2024-03-14T18:53:32ZDetlev Siebermessage template "Events - Registration Confirmation and Receipt (on-line)" - transaction no. not displayed## Overview
In this message template, the transaction id is not displayed anymore.
Probably, this is due to a recent code refactoring: https://github.com/civicrm/civicrm-core/commit/0242bc9a3f44e9c4a800ba03f3a4e8887d5eceda
## Reproduc...## Overview
In this message template, the transaction id is not displayed anymore.
Probably, this is due to a recent code refactoring: https://github.com/civicrm/civicrm-core/commit/0242bc9a3f44e9c4a800ba03f3a4e8887d5eceda
## Reproduction steps
1. Register for an online event, using a payment processor
2. Look at the registration confirmation mail
## Current behaviour
Instead of the transaction id, "1" is displayed:
![grafik.png](/uploads/b660a14bf7f314fff73ef8600a4db5b3/grafik.png)
## Expected behaviour
![grafik.png](/uploads/08786dc3201bbe926c94dd5439ad2172/grafik.png)
## Environment information
## Comments
A fix is under way.5.71.2Detlev SieberDetlev Sieberhttps://lab.civicrm.org/dev/core/-/issues/5085Incorrect fee level saved when editing event participant2024-03-18T19:23:47Zchrisgaraffachris@aghstrategies.comIncorrect fee level saved when editing event participantOverview
----------------------------------------
Editing an event participant changes the fee level and amount listed, seemingly at random.
Reproduction steps
----------------------------------------
- Register a contact for an event ...Overview
----------------------------------------
Editing an event participant changes the fee level and amount listed, seemingly at random.
Reproduction steps
----------------------------------------
- Register a contact for an event that uses a price set for fees (I'm using Summer Solstice Day Concert from dmaster in this example). Doesn't matter if they register online or an admin adds their registration
- Select Bass - $ 25.00
- Save the event registration
- Edit the event registration
- Change nothing
- Click Save
Current behaviour
----------------------------------------
The Fee level on the participant changes to something else - the specific value seems random on the first save, then doesn't seem to change.
Settings for adding the event registration:
![image](/uploads/04829e0ca7f423daf94a29b56883da07/image.png)
Display after creating the registration:
![image](/uploads/028cb9da80776075397f2df2541ee7a5/image.png)
Display after editing the registration, changing nothing, and saving:
![image](/uploads/5e63e0f24e9de983944a6c0e5873e577/image.png)
Expected behaviour
----------------------------------------
The fee level shouldn't change
Environment information
----------------------------------------
* __CiviCRM:__ Reproduced on 5.70.2, 5.71.0, dmaster (5.73.alpha1)https://lab.civicrm.org/dev/core/-/issues/5084Custom search profile no longer works with quick search2024-03-15T02:43:17ZjamieCustom search profile no longer works with quick searchIf you set a custom default search profile via `Adminster -> Customize Data and Screens -> Search Preferences` and then do a "quick search" (a search via the magnifying glass field in the top left), the results are mis-aligned with the h...If you set a custom default search profile via `Adminster -> Customize Data and Screens -> Search Preferences` and then do a "quick search" (a search via the magnifying glass field in the top left), the results are mis-aligned with the header (and don't actually reflect the fields in the default profile):
![image](/uploads/279e2eed33a67ab12e6e95cf58eafbb5/image.png)
Also, the default profile is not displayed in the "Views for Display Contacts" field if you edit the search criteria, so I think somehow the default search profile is not being communicated between the quick search and the advanced search display.
I tried to figure out what was going on but got a bit lost. I do suspect, however, that is is a regression from [390820a1bd90c9be51ca8f236cecdebfbefc8342](https://github.com/civicrm/civicrm-core/commit/390820a1bd90c9be51ca8f236cecdebfbefc8342). Do you have any thoughs @eileen?
Thank you!https://lab.civicrm.org/dev/core/-/issues/5081Event Online Receipt can yield Smarty error2024-03-12T19:26:34ZJonGoldEvent Online Receipt can yield Smarty errorCurrently, the `selfcancelxfer_time` field in Civi can be `NULL`. But if it's set to `NULL` then submitting an online event registration crashes because you can't compare it to an integer in this template line in `event_reg_online`:
```...Currently, the `selfcancelxfer_time` field in Civi can be `NULL`. But if it's set to `NULL` then submitting an online event registration crashes because you can't compare it to an integer in this template line in `event_reg_online`:
```
{capture assign=selfservice_preposition}{if {event.selfcancelxfer_time|boolean} && {event.selfcancelxfer_time} > 0}{ts}before{/ts}{else}{ts}after{/ts}{/if}{/capture}
```https://lab.civicrm.org/dev/core/-/issues/5079(regression) Submission of non-numeric value on contribution form causes crash2024-03-28T03:51:54ZJonGold(regression) Submission of non-numeric value on contribution form causes crashOverview
----------------------------------------
Putting anything other than a strict numeric value in the "Other Amount" field of a price set results in a crash.
Reproduction steps
----------------------------------------
1. Use a pag...Overview
----------------------------------------
Putting anything other than a strict numeric value in the "Other Amount" field of a price set results in a crash.
Reproduction steps
----------------------------------------
1. Use a page with an "Other Amount" field (Quick Config or not, doesn't matter). This also affects all "Text / Numeric Quantity" price fields.
2. Enter a value that isn't strictly numeric. Like `$5` or `5 dollars`.
3. Submit the page.
Current behaviour
----------------------------------------
Division by zero error, crash.
Expected behaviour
----------------------------------------
Should fail validation with the message "Other Amount must be a number (with or without decimals).".
Comments
----------------------------------------
This is new in 5.70. I traced it to [PR #29275](https://github.com/civicrm/civicrm-core/pull/29275). Our first validation is now `$self->resetOrder($fields);`. The docblock there says we assume the input has been sanitized, but in the backtrace below, it must be happening pre-sanitization.
Backtrace:
```
#0 /var/www/mysite/vendor/civicrm/civicrm-core/CRM/Financial/BAO/Order.php(832): CRM_Financial_BAO_Order->calculateLineItems()
#1 /var/www/mysite/vendor/civicrm/civicrm-core/CRM/Contribute/Form/Contribution/Main.php(1983): CRM_Financial_BAO_Order->recalculateLineItems()
#2 /var/www/mysite/vendor/civicrm/civicrm-core/CRM/Contribute/Form/Contribution/Main.php(819): CRM_Contribute_Form_Contribution_Main->resetOrder(Array)
#3 /var/www/mysite/vendor/civicrm/civicrm-packages/HTML/QuickForm.php(1600): CRM_Contribute_Form_Contribution_Main::formRule(Array, Array, Object(CRM_Contribute_Form_Contribution_Main))
#4 /var/www/mysite/vendor/civicrm/civicrm-core/CRM/Core/Form.php(703): HTML_QuickForm->validate()
#5 /var/www/mysite/vendor/civicrm/civicrm-core/CRM/Core/QuickForm/Action/Upload.php(137): CRM_Core_Form->validate()
#6 /var/www/mysite/vendor/civicrm/civicrm-core/CRM/Core/QuickForm/Action/Upload.php(120): CRM_Core_QuickForm_Action_Upload->realPerform(Object(CRM_Contribute_Form_Contribution_Main), 'upload')
#7 /var/www/mysite/vendor/civicrm/civicrm-packages/HTML/QuickForm/Controller.php(203): CRM_Core_QuickForm_Action_Upload->perform(Object(CRM_Contribute_Form_Contribution_Main), 'upload')
#8 /var/www/mysite/vendor/civicrm/civicrm-packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller->handle(Object(CRM_Contribute_Form_Contribution_Main), 'upload')
#9 /var/www/mysite/vendor/civicrm/civicrm-core/CRM/Core/Controller.php(355): HTML_QuickForm_Page->handle('upload')
#10 /var/www/mysite/vendor/civicrm/civicrm-core/CRM/Core/Invoke.php(322): CRM_Core_Controller->run(Array, NULL)
#11 /var/www/mysite/vendor/civicrm/civicrm-core/CRM/Core/Invoke.php(69): CRM_Core_Invoke::runItem(Array)
#12 /var/www/mysite/vendor/civicrm/civicrm-core/CRM/Core/Invoke.php(36): CRM_Core_Invoke::_invoke(Array)
#13 /var/www/mysite/web/modules/contrib/civicrm/src/Civicrm.php(88): CRM_Core_Invoke::invoke(Array)
#14 /var/www/mysite/web/modules/contrib/civicrm/src/Controller/CivicrmController.php(83): Drupal\civicrm\Civicrm->invoke(Array)
#15 [internal function]: Drupal\civicrm\Controller\CivicrmController->main(Array, '')
#16 /var/www/mysite/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
#17 /var/www/mysite/web/core/lib/Drupal/Core/Render/Renderer.php(627): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#18 /var/www/mysite/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#19 /var/www/mysite/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
#20 /var/www/mysite/vendor/symfony/http-kernel/HttpKernel.php(181): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#21 /var/www/mysite/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#22 /var/www/mysite/web/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#23 /var/www/mysite/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#24 /var/www/mysite/web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#25 /var/www/mysite/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#26 /var/www/mysite/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#27 /var/www/mysite/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#28 /var/www/mysite/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#29 /var/www/mysite/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#30 /var/www/mysite/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#31 /var/www/mysite/web/core/lib/Drupal/Core/DrupalKernel.php(704): Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#32 /var/www/mysite/web/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#33 {main}
```5.71.2