Development issueshttps://lab.civicrm.org/groups/dev/-/issues2024-02-26T18:57:41Zhttps://lab.civicrm.org/dev/core/-/issues/5032Disabled Event Name Badge Layouts Are Not Disabled2024-02-26T18:57:41ZLKuttnerDisabled Event Name Badge Layouts Are Not DisabledWhen an Event Name Badge Layout is disabled in Administer > CiviEvent > Event Name Badge Layouts, the event name badge layout is marked as Enabled: No.
However when you view the Make Name Badges > Name Badge Format select list, the disab...When an Event Name Badge Layout is disabled in Administer > CiviEvent > Event Name Badge Layouts, the event name badge layout is marked as Enabled: No.
However when you view the Make Name Badges > Name Badge Format select list, the disabled name badge layout still appears in the list and can still be used. This behavior exists in CiviCRM 5.69.5 and has been this way in previous versions for quite a while.5.72.0https://lab.civicrm.org/dev/core/-/issues/5030Columns are misaligned on find participants results2024-02-24T22:10:31ZDaveDColumns are misaligned on find participants resultsI'm not sure if this is recent but seems like something I would have noticed before.
Columns to the right of Amount appear shifted to the right by one.
![untitled3](/uploads/c5254fe4deade1cc45002272980f4a6f/untitled3.png)I'm not sure if this is recent but seems like something I would have noticed before.
Columns to the right of Amount appear shifted to the right by one.
![untitled3](/uploads/c5254fe4deade1cc45002272980f4a6f/untitled3.png)5.72.0https://lab.civicrm.org/dev/core/-/issues/5029sms form missing tokens dropdown and save template section at bottom not hidd...2024-03-08T04:06:42ZDaveDsms form missing tokens dropdown and save template section at bottom not hidden properlyIn a "normal" environment the form isn't borked, but in my environment it seems to come from this change: https://github.com/civicrm/civicrm-core/pull/29429/commits/16b1692e4aebf478f39387ddabc08f1a2c2defae#diff-9a9c24bfd65521aa26fbb9fde3...In a "normal" environment the form isn't borked, but in my environment it seems to come from this change: https://github.com/civicrm/civicrm-core/pull/29429/commits/16b1692e4aebf478f39387ddabc08f1a2c2defae#diff-9a9c24bfd65521aa26fbb9fde3fd54d7a31331abebcb5e8e2a23b1a615bb500eL66
It works again if I put that line back.
The actual error seems to be `Undefined array key "templateSelected" in templates_c\en_US\%%C1\C1C\C1C61753%%InsertTokens.tpl.php on line 34`
This is when you choose the Send Outbound SMS action from the actions dropdown on a contact summary (who has a mobile phone).5.72.0https://lab.civicrm.org/dev/core/-/issues/5026Price Sets: total calculation wrong it decimal separator is different than "."2024-02-26T20:12:20ZmasettoPrice Sets: total calculation wrong it decimal separator is different than "."If I use price sets, when the decimal separator is "," and not "." the calculation of the total does not consider decimals.
Tested on dmaster:
![image](/uploads/beefe52fdfaeb4ff4ec06729528cfd25/image.png)
![image](/uploads/72de7f9df4...If I use price sets, when the decimal separator is "," and not "." the calculation of the total does not consider decimals.
Tested on dmaster:
![image](/uploads/beefe52fdfaeb4ff4ec06729528cfd25/image.png)
![image](/uploads/72de7f9df42afb6097e0e287c817c496/image.png)5.72.0https://lab.civicrm.org/dev/core/-/issues/5025Membership Receipt, online and offline no longer display the "Receipt Message...2024-03-01T00:05:44Zjustinfreeman (Agileware)Membership Receipt, online and offline no longer display the "Receipt Message" which was previously $receipt_text) in the Message Template. The default Message Templates now use $userText which is not being set at allMembership Receipt, online and offline no longer display the "Receipt Message" which was previously $receipt_text) in the Message Template. The default Message Templates now use $userText which is not being set at all.
Looks like the ne...Membership Receipt, online and offline no longer display the "Receipt Message" which was previously $receipt_text) in the Message Template. The default Message Templates now use $userText which is not being set at all.
Looks like the new variable should be $userEnteredText and not $userText from this commit. See https://github.com/civicrm/civicrm-core/commit/40bce8be4f6e64d7b4a3a5c65c361180d5fe197b#diff-a1c8943f991b49e1c885133fad3edc222523542e1ce97b89d7fbba222197000fR1840
I think this problem impacts the following Message Templates:
- membership_offline_receipt_text.tpl
- contribution_invoice_receipt_html.tpl
- contribution_online_receipt_html.tpl
- event_offline_receipt_html.tpl
- membership_online_receipt_html.tpl
Agileware Ref: CIVICRM-2217
Affects CiviCRM 5.69.3 to CiviCRM 5.70.05.71.0https://lab.civicrm.org/dev/core/-/issues/5021Edit message templates permission not working as expected2024-03-15T20:38:58Za.valllloveraEdit message templates permission not working as expected## Overview
Users without the `CiviCRM: edit message templates` permision, can update Templates via the `Print/Merge Document`.
## Reproduction steps
1. Assign a role without the `CiviCRM: edit message templates` permision to an **Use...## Overview
Users without the `CiviCRM: edit message templates` permision, can update Templates via the `Print/Merge Document`.
## Reproduction steps
1. Assign a role without the `CiviCRM: edit message templates` permision to an **User**
2. Log in with that **User** and get to any **Contact**.
3. Create a **Print/Merge Document** Activity.
4. Use an already created **Template**.
5. Modify it in the Document Body
6. It will appear the Check box Update and if the User select it, it will **Update** the Template
![image.png](/uploads/4c57e46478fd7ad9df9de98cd3b4104b/image.png)
## Expected behaviour
The checkbox that let you Update a Template shouldn't appear if the User doesn't have the `CiviCRM: edit message templates` permision.
## Environment information
* **CiviCRM:** _5.69.1_
* **CMS:** _Drupal 10_5.73.0https://lab.civicrm.org/dev/core/-/issues/5019When an event registration is transferred to another contact the Participants...2024-02-23T04:45:41Zjustinfreeman (Agileware)When an event registration is transferred to another contact the Participants Custom Field values are NOT transferred to the new event registration - sometimes this is requuiredWhen an event registration is transferred to another contact the Participants Custom Field values are NOT transferred to the new event registration.
In this case, there is a user expectation that the values entered into the Participants...When an event registration is transferred to another contact the Participants Custom Field values are NOT transferred to the new event registration.
In this case, there is a user expectation that the values entered into the Participants Custom Field values would be transferred, primarily because this person was registering someone else on their behalf.
Appreciate that this may not be applicable in all instances, so would be good to have an option available during the transfer to copy over the field values as part of the transfer process.
As shown below.
This is the original event registration, showing the custom fields entered during registration.
![image](/uploads/58acedae2eb36daa606f120ab616d70a/image.png)
The transferred event registration, showing the custom fields are empty.
![image](/uploads/1ec3df551e089aea0adbd7e0834712b1/image.png)
Agileware Ref: CIVICRM-2214https://lab.civicrm.org/dev/core/-/issues/5018Something messed up with ufgroup.name in 5.71 (aka can't create new contacts ...2024-02-21T04:27:44ZDaveDSomething messed up with ufgroup.name in 5.71 (aka can't create new contacts on the fly in entityref widgets)* For one, there's now two definitions of the name column in the schema xml.
* For two, I think what's happening is when you upgrade it borks the name of reserved groups if they didn't have a frontend_title (which seems likely if your in...* For one, there's now two definitions of the name column in the schema xml.
* For two, I think what's happening is when you upgrade it borks the name of reserved groups if they didn't have a frontend_title (which seems likely if your install is from around 5.63(?) or earlier), and at least one consequence of this is entityref widgets no longer allow creating new contacts on the fly.5.71.0https://lab.civicrm.org/dev/core/-/issues/5016Advanced search with simple criterias returns error2024-02-21T09:25:45ZGuillaumeSorelAdvanced search with simple criterias returns errorOn 5.70.0 the advanced search is not stable. Trying to search contacts returns `Unknown api version`
I discovered this issue after trying to send an e-mail. Actually I was able to send the e-mailing when removing smart groups. This is a ...On 5.70.0 the advanced search is not stable. Trying to search contacts returns `Unknown api version`
I discovered this issue after trying to send an e-mail. Actually I was able to send the e-mailing when removing smart groups. This is a recurring campaign and these groups have been working since years now. So I guess it could be linked to the smart group cache
```
[error]
$Fatal Error Details = array:3 [
"message" => "Unknown api version"
"code" => null
"exception" => Civi\API\Exception\NotImplementedException {#39760
-errorData: array:1 [
"error_code" => "not-found"
]
#cause: null
-_trace: null
#message: "Unknown api version"
#code: 0
#file: "/var/www/vhosts/domain.fr/httpdocs/wp-content/plugins/civicrm/civicrm/Civi/API/Request.php"
#line: 63
trace: {
/var/www/vhosts/domain.fr/httpdocs/wp-content/plugins/civicrm/civicrm/Civi/API/Request.php:63 {
Civi\API\Request::create(string $entity, string $action, array $params)
› default:
› throw new \Civi\API\Exception\NotImplementedException("Unknown api version");
› }
}
/var/www/vhosts/domain.fr/httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Contact/BAO/GroupContactCache.php:542 { …}
/var/www/vhosts/domain.fr/httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Contact/BAO/GroupContactCache.php:787 { …}
/var/www/vhosts/domain.fr/httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Contact/BAO/GroupContactCache.php:632 { …}
/var/www/vhosts/domain.fr/httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Contact/BAO/GroupContactCache.php:374 { …}
/var/www/vhosts/domain.fr/httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Contact/BAO/Query.php:3173 { …}
/var/www/vhosts/domain.fr/httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Contact/BAO/Query.php:3074 { …}
/var/www/vhosts/domain.fr/httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Contact/BAO/Query.php:1836 { …}
/var/www/vhosts/domain.fr/httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Contact/BAO/Query.php:2074 { …}
/var/www/vhosts/domain.fr/httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Contact/BAO/Query.php:575 { …}
/var/www/vhosts/domain.fr/httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Contact/BAO/Query.php:524 { …}
/var/www/vhosts/domain.fr/httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Contact/BAO/GroupContactCache.php:601 { …}
/var/www/vhosts/domain.fr/httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Contact/BAO/GroupContactCache.php:795 { …}
/var/www/vhosts/domain.fr/httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Contact/BAO/GroupContactCache.php:632 { …}
/var/www/vhosts/domain.fr/httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Contact/BAO/GroupContactCache.php:374 { …}
/var/www/vhosts/domain.fr/httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Contact/BAO/Query.php:3173 { …}
/var/www/vhosts/domain.fr/httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Contact/BAO/Query.php:3074 { …}
/var/www/vhosts/domain.fr/httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Contact/BAO/Query.php:1836 { …}
/var/www/vhosts/domain.fr/httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Contact/BAO/Query.php:2074 { …}
/var/www/vhosts/domain.fr/httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Contact/BAO/Query.php:575 { …}
/var/www/vhosts/domain.fr/httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Contact/BAO/Query.php:524 { …}
/var/www/vhosts/domain.fr/httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Contact/Selector.php:224 { …}
/var/www/vhosts/domain.fr/httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Contact/Form/Search.php:704 { …}
/var/www/vhosts/domain.fr/httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Contact/Form/Search/Advanced.php:50 { …}
/var/www/vhosts/domain.fr/httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Core/Form.php:731 { …}
/var/www/vhosts/domain.fr/httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Core/QuickForm/Action/Refresh.php:44 { …}
/var/www/vhosts/domain.fr/httpdocs/wp-content/plugins/civicrm/civicrm/packages/HTML/QuickForm/Controller.php:203 { …}
/var/www/vhosts/domain.fr/httpdocs/wp-content/plugins/civicrm/civicrm/packages/HTML/QuickForm/Page.php:103 { …}
/var/www/vhosts/domain.fr/httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Core/Controller.php:355 { …}
/var/www/vhosts/domain.fr/httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:322 { …}
/var/www/vhosts/domain.fr/httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:69 { …}
/var/www/vhosts/domain.fr/httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:36 { …}
/var/www/vhosts/domain.fr/httpdocs/wp-content/plugins/civicrm/civicrm.php:1231 { …}
/var/www/vhosts/domain.fr/httpdocs/wp-includes/class-wp-hook.php:308 { …}
/var/www/vhosts/domain.fr/httpdocs/wp-includes/class-wp-hook.php:332 { …}
/var/www/vhosts/domain.fr/httpdocs/wp-includes/plugin.php:517 { …}
/var/www/vhosts/domain.fr/httpdocs/wp-admin/admin.php:259 { …}
}
}
]
```https://lab.civicrm.org/dev/drupal/-/issues/194Recent Items block on the non-CiviCRM pages will have a missing CRM JS error2024-02-22T16:59:37ZherbdoolRecent Items block on the non-CiviCRM pages will have a missing CRM JS errorWe've got a site where the Recent Items block is on a non-CiviCRM page. It seems to work but there's a JS error of the `CRM` object is missing. I had put `\CRM_Core_Resources::singleton()->addCoreResources();` in a custom event subscribe...We've got a site where the Recent Items block is on a non-CiviCRM page. It seems to work but there's a JS error of the `CRM` object is missing. I had put `\CRM_Core_Resources::singleton()->addCoreResources();` in a custom event subscriber but that no longer plays nice with CiviCRM core. So perhaps adding it to the `CivicrmBlock` plugin class would be better. It seems that Drupal can't assume that the block will have everything loaded. In my testing, adding it in `__construct()` after `$civicrm->initialize();` works.5.72.0https://lab.civicrm.org/dev/core/-/issues/5013Upgrade to 5.71 deletes status page2024-02-15T21:58:26ZtottenUpgrade to 5.71 deletes status pageOverview
----------------------------------------
Upgrade to 5.71-rc deletes status-page and other files.
Reproduction steps
----------------------------------------
1. Install D7 w/5.63. (I have a case-insensitive filesystem, if it ma...Overview
----------------------------------------
Upgrade to 5.71-rc deletes status-page and other files.
Reproduction steps
----------------------------------------
1. Install D7 w/5.63. (I have a case-insensitive filesystem, if it matters.)
1. Switch code to 5.71. (`givi checkout 5.71; composer install`)
1. Run the upgrade (web UI or CLI)
Current behaviour
----------------------------------------
Deletes these files:
```
$ git status
...
deleted: Civi/Api4/WorldRegion.php
deleted: ang/crmStatusPage/StatusPageCtrl.js
deleted: js/jquery/jquery.crmEditable.js
```
Expected behaviour
----------------------------------------
The `ang/crmStatusPage/StatusPageCtrl.js` seems important. Without that, I can't open the system status page...
I don't know about the others. But those files are clearly in git for `5.71`, so they probably shouldn't be deleted.https://lab.civicrm.org/dev/core/-/issues/5012Php 8.3 Calling get_parent_class() without arguments is deprecated2024-02-23T21:33:57ZsadashivPhp 8.3 Calling get_parent_class() without arguments is deprecatedOverview
----------------------------------------
Using civicrm 5.69.3, php 8.3, smarty 3 (using civicrm.settings.php)
Reproduction steps
----------------------------------------
1. Created a code snippet to send a simple simple email u...Overview
----------------------------------------
Using civicrm 5.69.3, php 8.3, smarty 3 (using civicrm.settings.php)
Reproduction steps
----------------------------------------
1. Created a code snippet to send a simple simple email using CRM_Utils_Mail::Send()
2. The html should have some tokens
3. In the received email I see above error
Current behaviour
----------------------------------------
Email has text as
Deprecated: Calling get_parent_class() without arguments is deprecated in /var/www/html/my_site/vendor/civicrm/civicrm-core/CRM/Core/SmartyCompatibility.php on line 148
Expected behaviour
----------------------------------------
No error should be reported in the email sendout.
Environment information
----------------------------------------
* __CiviCRM:__ 5.69.3
* __PHP:__ 8.3
* __CMS:__ Drupal 10.2.2
* __Database:__ _MySQL 8
* __Web Server:__ _Apache 2.45.70.1https://lab.civicrm.org/dev/core/-/issues/5011PHP 8.3 Deprecated: Creation of dynamic property Smarty_Internal_Template::$c...2024-03-14T02:28:28ZsadashivPHP 8.3 Deprecated: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated in vendor/civicrm/civicrm-packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php on line 719Overview
----------------------------------------
Using civicrm 5.69.3, php 8.3, smarty 3 (using civicrm.settings.php)
Reproduction steps
----------------------------------------
1. Created a code snippet to send a simple simple email u...Overview
----------------------------------------
Using civicrm 5.69.3, php 8.3, smarty 3 (using civicrm.settings.php)
Reproduction steps
----------------------------------------
1. Created a code snippet to send a simple simple email using CRM_Utils_Mail::Send()
2. The html should have some tokens
3. In the received email I see above error
Current behaviour
----------------------------------------
Email has text as
Deprecated: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated in /var/www/html/my_site/vendor/civicrm/civicrm-packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php on line 719
Expected behaviour
----------------------------------------
No error should be reported in the email sendout.
Environment information
----------------------------------------
* __CiviCRM:__ 5.69.3
* __PHP:__ 8.3
* __CMS:__ Drupal 10.2.2
* __Database:__ _MySQL 8
* __Web Server:__ _Apache 2.4https://lab.civicrm.org/dev/core/-/issues/5010Add fields to mailing details report2024-02-15T16:19:18ZyashodhaAdd fields to mailing details reportExpose time stamp fields to mailing details report to show when the mailing was delivered.Expose time stamp fields to mailing details report to show when the mailing was delivered.5.72.0yashodhayashodhahttps://lab.civicrm.org/dev/core/-/issues/5008[Enhancement] ContributionRecur edit activity should include more details2024-03-05T15:29:46ZElliott Eggleston[Enhancement] ContributionRecur edit activity should include more detailsOverview
----------------------------------------
When one edits a recurring contribution an activity is saved saying which user edited it. If the amount or the number of installments has been changed, that is included in the activity de...Overview
----------------------------------------
When one edits a recurring contribution an activity is saved saying which user edited it. If the amount or the number of installments has been changed, that is included in the activity details. However, no other changes are included (and the ContributionRecur row changes from log_contribution_recur are not in the contact change log), so it's impossible to tell in the UI if someone changed e.g. the next scheduled contribution date or the cycle day.
Example use-case
----------------------------------------
1. Edit a ContributionRecur
2. Look at the activity tab, and see all the changes you made
Current behaviour
----------------------------------------
Only changes to number of installments and amount are listed in the activity details
Proposed behaviour
----------------------------------------
Changes to other subscription properties are also listed in the activity details5.72.0https://lab.civicrm.org/dev/core/-/issues/5007Membership renewal page not selecting current membership level, but selecting...2024-02-23T21:33:32ZcomposerjkMembership renewal page not selecting current membership level, but selecting default insteadOverview
----------------------------------------
The membership contribution page for a renewal seems to select the default contribution membership level instead of the existing level for the user.
Mattermost [mention](https://chat.civ...Overview
----------------------------------------
The membership contribution page for a renewal seems to select the default contribution membership level instead of the existing level for the user.
Mattermost [mention](https://chat.civicrm.org/civicrm/pl/hinxqhmjofn3id6bu6cygj7dia) (but only that it happened).
Reproduction steps
----------------------------------------
1. Go to a join/renew Membership Contribution page link for an existing membership that has a level different than the default.
2. See that the default is selected even when the existing membership is at a different level.
Current behaviour
----------------------------------------
Here's an example on our site with a current `Full Membership` but seeing that `Contributing Membership` is selected (the current default when joining without a membership).
![civi-5.70.0-renewal-not-selecting-current-membership](/uploads/cbb84f3652f7ca430cbf4f0da97475eb/civi-5.70.0-renewal-not-selecting-current-membership.png)
Expected behaviour
----------------------------------------
The `Full Membership` radio button (in this case, button) should be selected, as that's the sample user's existing membership level.
Environment information
----------------------------------------
* __CiviCRM:__ 5.70.0 (but may have also started earlier)
* __PHP:__ 8.1.27
* __CMS:__ WordPress 6.4.3
* __Database:__ MariaDB 10.6.x5.70.1https://lab.civicrm.org/dev/core/-/issues/5006Regression - Events - Registration Confirmation and Receipt (on-line)2024-02-28T20:30:07ZsamuelsovRegression - Events - Registration Confirmation and Receipt (on-line)When doing an event receipt, we have this fatal error :
```
Message was not parsed due to invalid smarty syntax : Smarty error: [in evaluated template line 467]: syntax error: invalid attribute name: '=' (Smarty_Compiler.class.php, line ...When doing an event receipt, we have this fatal error :
```
Message was not parsed due to invalid smarty syntax : Smarty error: [in evaluated template line 467]: syntax error: invalid attribute name: '=' (Smarty_Compiler.class.php, line 1549)
```
I was able to track down this piece of template :
```
{if {event.allow_selfcancelxfer|boolean}}
<tr>
<td colspan="2" {$valueStyle}>
{ts 1=$selfcancelxfer_time 2=$selfservice_preposition}You may transfer your registration to another participant or cancel your registration up to %1 hours %2 the event.{/ts} {if !empty($totalAmount)}{ts}Cancellations are not refundable.{/ts}{/if}<br/>
{capture assign=selfservice_preposition}{if {event.selfcancelxfer_time} > 0}{ts}before{/ts}{else}{ts}after{/ts}{/if}{/capture}
{ts 1={event.selfcancelxfer_time} 2=$selfservice_preposition}You may transfer your registration to another participant or cancel your registration up to %1 hours %2 the event.{/ts}
{if {contribution.paid_amount|boolean}}{ts}Cancellations are not refundable.{/ts}{/if}<br/>
```
Recursive `{` is not working, at least on our instances so those are faulty :
- `{if {event.allow_selfcancelxfer|boolean}}`
- `{if {event.selfcancelxfer_time} > 0}`
- `{ts 1={event.selfcancelxfer_time} 2=$selfservice_preposition}`
Problem introduced in https://github.com/civicrm/civicrm-core/pull/276855.70.1https://lab.civicrm.org/dev/core/-/issues/5005Error Saving Custom Field Group with Event Name that's disabled2024-03-17T21:17:39ZsavionleeError Saving Custom Field Group with Event Name that's disabledOverview
----------------------------------------
After disabling an event, an error is raised when trying to reuse a custom field group for a new event. It returns a message
```Supplied Sub type is not valid for the specified entity``...Overview
----------------------------------------
After disabling an event, an error is raised when trying to reuse a custom field group for a new event. It returns a message
```Supplied Sub type is not valid for the specified entity```
When trying to save on Civi 5.70 in Wordpress, this box was raised:
![image](/uploads/7ac617b95a1872ae6753b12c69c449fd/image.png)
The error message is presented after clicking through it in the pop up civi alerts.
Reproduction steps
----------------------------------------
1. Create *Event 1* copy it to *Event 1 Copy*
1. Create a Custom Field Set attach **Participant -> Partipants (Event Name)** Pick Event 1
1. Disable *Event 1*
1. Go back and add *Event 1 Copy* to Custom Field Set
1. Got an error "**message: Supplied Sub type is not valid for the specified entity**".
Current behaviour
----------------------------------------
_What happens currently. Please provide error messages, screenshots or gifs ([LICEcap](http://www.cockos.com/licecap/), [SilentCast](https://github.com/colinkeenan/silentcast)) where appropriate._
```
***ERROR***
message: Supplied Sub type is not valid for the specified entity
code:
exception: CRM_Core_Exception Object
(
[message:protected] => Supplied Sub type is not valid for the specified entity
[string:Exception:private] =>
[code:protected] => 0
[file:protected] => /bitnami/wordpress/wp-content/plugins/civicrm/civicrm/api/api.php
[line:protected] => 138
[trace:Exception:private] => Array
(
[0] => Array
(
[file] => /bitnami/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Custom/Form/Group.php
[line] => 293
[function] => civicrm_api3
)
[1] => Array
(
[file] => /bitnami/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Core/Form.php
[line] => 641
[function] => postProcess
[class] => CRM_Custom_Form_Group
[type] => ->
)
[2] => Array
(
[file] => /bitnami/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Core/StateMachine.php
[line] => 144
[function] => mainProcess
[class] => CRM_Core_Form
[type] => ->
)
[3] => Array
(
[file] => /bitnami/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Core/QuickForm/Action/Next.php
[line] => 43
[function] => perform
[class] => CRM_Core_StateMachine
[type] => ->
)
[4] => Array
(
[file] => /bitnami/wordpress/wp-content/plugins/civicrm/civicrm/packages/HTML/QuickForm/Controller.php
[line] => 203
[function] => perform
[class] => CRM_Core_QuickForm_Action_Next
[type] => ->
)
[5] => Array
(
...
```
Expected behaviour
----------------------------------------
_What should happen._
I should be able to add a new event to the custom field group even though the old event is disabled.
Environment information
----------------------------------------
<!-- Some of the items below may not be relevant for every bug - if in doubt please include more information than you think is neccessary. -->
* __Browser:__ _Firefox 122.0.1_
* __CiviCRM:__ _5.70.0/5.72.0..._ <!-- If this problem relates to an upgrade, then specify both old and new versions -->
* __PHP:__ _8.1.1__
* __CMS:__ _Wordpress 6.4.3_
* __Database:__ _MariaDB..._
* __Web Server:__ _Apache..._
Comments
----------------------------------------
_Anything else you would like the reviewer to note._https://lab.civicrm.org/dev/core/-/issues/5003Event Custom Data - No Data Input Allowed2024-02-12T19:46:11ZtreseroEvent Custom Data - No Data Input AllowedPHP 8.1 Civi 5.69.4
I'm not sure if there is an issue, or a misunderstanding, but following the docs, I can get custom data to show, but it is not editable. BTW, I would like to work on the docs if that is allowed. Some of them are outd...PHP 8.1 Civi 5.69.4
I'm not sure if there is an issue, or a misunderstanding, but following the docs, I can get custom data to show, but it is not editable. BTW, I would like to work on the docs if that is allowed. Some of them are outdated or reference things that don't exist.
Anyway, I have this custom data that I want to add and it shows on the event page, you just can't input any data.
![image.png](/uploads/ea7861dc78a8358a92b57fd1a9274d40/image.png)
It seems I can't upload more than one image, but the Cast Year is a text box and travel is a yes/nohttps://lab.civicrm.org/dev/core/-/issues/5001PHP 8.1 Event Warnings2024-02-12T19:29:56ZtreseroPHP 8.1 Event WarningsThere are many warnings when using PHP 8.1.
They should probably be cleaned up at some point, since they are just clogging up the server logs.
**Environment**: WordPress with CiviCRM
**Description**: Several PHP warnings were encount...There are many warnings when using PHP 8.1.
They should probably be cleaned up at some point, since they are just clogging up the server logs.
**Environment**: WordPress with CiviCRM
**Description**: Several PHP warnings were encountered during the registration process for an event. These warnings suggest issues with undefined array keys and attempts to read properties on null values in the CiviCRM templates and extensions.
**Errors Encountered**:
1. PHP Warning: Attempt to read property "value" on null in **`wp-content/uploads/civicrm/templates_c/en_US/.../Register.tpl.php`** on various lines.
2. PHP Warning: Undefined array key "confirm_footer_text" in **`wp-content/uploads/civicrm/templates_c/en_US/.../Confirm.tpl.php`**.
3. PHP Warning: Undefined array key "showBlocks" in **`wp-content/uploads/civicrm/templates_c/en_US/.../showHide.tpl.php`**.
4. PHP Warning: Undefined array key "hideBlocks" in the same file.
5. PHP Warning: Undefined array key "elemType" in the same file.
6. PHP Warning: Trying to access array offset on value of type null in **`wp-content/uploads/civicrm/ext/ogp-1.4/ogp.php`**.
7. PHP Warning: Undefined array key "lineItem", "pcpBlock", "totalTaxAmount" in **`wp-content/uploads/civicrm/templates_c/en_US/.../Confirm.tpl.php`**.
8. PHP Warning: Undefined array key 1 in **`wp-content/uploads/civicrm/templates_c/en_US/.../EventInfoBlock.tpl.php`**.
**Referer**: All warnings were encountered during the event registration process, with URLs sanitized to **`https://[sanitized_url].org/civicrm/event/register/...`**.
**Note**: The specific template and extension files, along with the exact line numbers for each warning, are available upon request. The warnings suggest missing data handling in the template logic or missing initialization of expected data structures.