Development issueshttps://lab.civicrm.org/groups/dev/-/issues2024-01-10T14:07:35Zhttps://lab.civicrm.org/dev/core/-/issues/4894Fatal error when searching a contact2024-01-10T14:07:35ZGuillaumeSorelFatal error when searching a contactOn CiviCRM 5.69.1 when I do a simple contact search I get this error and can't see the contact
```[error]
$Fatal Error Details = array:3 [
"message" => """
Unexpected result from getcountArray\n
(\n
[error_code] => -2...On CiviCRM 5.69.1 when I do a simple contact search I get this error and can't see the contact
```[error]
$Fatal Error Details = array:3 [
"message" => """
Unexpected result from getcountArray\n
(\n
[error_code] => -2\n
[sql] => \n
[debug_info] => SELECT count(*) as c\n
FROM civicrm_activity a\n
LEFT JOIN civicrm_case_activity actjoin_case_id ON (actjoin_case_id.activity_id = a.id)\n
WHERE (((`a`.`activity_type_id` Array)))\n
AND (a.id IN (SELECT activity_id FROM civicrm_activity_contact WHERE contact_id = "27478"))\n
AND (actjoin_case_id.case_id IS NULL)\n
AND (a.is_current_revision = "1")\n
AND (a.activity_type_id IN ("1", "55", "56", "57", "58", "59", "70", "71", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "44", "45", "46", "47", "48", "49", "50", "51", "52", "53", "54", "60", "61", "62", "63", "64", "65", "66", "67", "68", "69", "72", "73", "74", "75", "76", "77", "78", "80", "82", "84", "86", "88", "89"))\n
AND (a.is_test = "0")\n
AND (a.is_deleted = "0")\n
[nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Array)))\n
AND (a.id IN (SELECT activity_id FROM civicrm_activity_contact WHE...' at line 4]\n
[entity] => Activity\n
[action] => get\n
[is_error] => 1\n
[error_message] => case_id is not valid : 1\n
[debug_information] => \n
)\n
"""
"code" => null
"exception" => CRM_Core_Exception {#36862
-errorData: array:5 [
"error_code" => 0
"entity" => "Activity"
"action" => "getcount"
"is_error" => 1
"error_message" => """
Unexpected result from getcountArray\n
(\n
[error_code] => -2\n
[sql] => \n
[debug_info] => SELECT count(*) as c\n
FROM civicrm_activity a\n
LEFT JOIN civicrm_case_activity actjoin_case_id ON (actjoin_case_id.activity_id = a.id)\n
WHERE (((`a`.`activity_type_id` Array)))\n
AND (a.id IN (SELECT activity_id FROM civicrm_activity_contact WHERE contact_id = "27478"))\n
AND (actjoin_case_id.case_id IS NULL)\n
AND (a.is_current_revision = "1")\n
AND (a.activity_type_id IN ("1", "55", "56", "57", "58", "59", "70", "71", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "44", "45", "46", "47", "48", "49", "50", "51", "52", "53", "54", "60", "61", "62", "63", "64", "65", "66", "67", "68", "69", "72", "73", "74", "75", "76", "77", "78", "80", "82", "84", "86", "88", "89"))\n
AND (a.is_test = "0")\n
AND (a.is_deleted = "0")\n
[nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Array)))\n
AND (a.id IN (SELECT activity_id FROM civicrm_activity_contact WHE...' at line 4]\n
[entity] => Activity\n
[action] => get\n
[is_error] => 1\n
[error_message] => case_id is not valid : 1\n
[debug_information] => \n
)\n
"""
]
#cause: null
-_trace: null
#message: """
Unexpected result from getcountArray\n
(\n
[error_code] => -2\n
[sql] => \n
[debug_info] => SELECT count(*) as c\n
FROM civicrm_activity a\n
LEFT JOIN civicrm_case_activity actjoin_case_id ON (actjoin_case_id.activity_id = a.id)\n
WHERE (((`a`.`activity_type_id` Array)))\n
AND (a.id IN (SELECT activity_id FROM civicrm_activity_contact WHERE contact_id = "27478"))\n
AND (actjoin_case_id.case_id IS NULL)\n
AND (a.is_current_revision = "1")\n
AND (a.activity_type_id IN ("1", "55", "56", "57", "58", "59", "70", "71", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "44", "45", "46", "47", "48", "49", "50", "51", "52", "53", "54", "60", "61", "62", "63", "64", "65", "66", "67", "68", "69", "72", "73", "74", "75", "76", "77", "78", "80", "82", "84", "86", "88", "89"))\n
AND (a.is_test = "0")\n
AND (a.is_deleted = "0")\n
[nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Array)))\n
AND (a.id IN (SELECT activity_id FROM civicrm_activity_contact WHE...' at line 4]\n
[entity] => Activity\n
[action] => get\n
[is_error] => 1\n
[error_message] => case_id is not valid : 1\n
[debug_information] => \n
)\n
"""
#code: 0
#file: "/var/www/vhosts/domain/httpdocs/wp-content/plugins/civicrm/civicrm/api/api.php"
#line: 138
trace: {
/var/www/vhosts/domain/httpdocs/wp-content/plugins/civicrm/civicrm/api/api.php:138 {
civicrm_api3(string $entity, string $action, array $params = [])
› if (is_array($result) && !empty($result['is_error'])) {
› throw new CRM_Core_Exception($result['error_message'], $result['error_code'] ?? 'undefined', $result);
› }
}
/var/www/vhosts/domain/httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Activity/BAO/Activity.php:898 { …}
/var/www/vhosts/domain/httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Contact/BAO/Contact.php:2641 { …}
/var/www/vhosts/domain/httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Contact/Page/View/Summary.php:434 { …}
/var/www/vhosts/domain/httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Contact/Page/View/Summary.php:255 { …}
/var/www/vhosts/domain/httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Contact/Page/View/Summary.php:83 { …}
/var/www/vhosts/domain/httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:322 { …}
/var/www/vhosts/domain/httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:69 { …}
/var/www/vhosts/domain/httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:36 { …}
/var/www/vhosts/domain/httpdocs/wp-content/plugins/civicrm/civicrm.php:1231 { …}
/var/www/vhosts/domain/httpdocs/wp-includes/class-wp-hook.php:308 { …}
/var/www/vhosts/domain/httpdocs/wp-includes/class-wp-hook.php:332 { …}
/var/www/vhosts/domain/httpdocs/wp-includes/plugin.php:517 { …}
/var/www/vhosts/domain/httpdocs/wp-admin/admin.php:259 { …}
}
}
]
2024-01-08 13:30:57+0100 [debug] $backTrace = #0 /var/www/vhosts/smc-cse.fr/httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Core/Error.php(443): CRM_Core_Error::backtrace("backTrace", TRUE)
#1 /var/www/vhosts/smc-cse.fr/httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(39): CRM_Core_Error::handleUnhandledException(Object(CRM_Core_Exception))
#2 /var/www/vhosts/domain/httpdocs/wp-content/plugins/civicrm/civicrm.php(1231): CRM_Core_Invoke::invoke((Array:3))
#3 /var/www/vhosts/domain/httpdocs/wp-includes/class-wp-hook.php(308): CiviCRM_For_WordPress->invoke("")
#4 /var/www/vhosts/domain/httpdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters("", (Array:1))
#5 /var/www/vhosts/domain/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action((Array:1))
#6 /var/www/vhosts/domain/httpdocs/wp-admin/admin.php(259): do_action("toplevel_page_CiviCRM")
#7 {main}```https://lab.civicrm.org/dev/user-interface/-/issues/65Button row overlaps the table on view contribution2024-02-02T06:01:54ZDaveDButton row overlaps the table on view contributionStarted in 5.70. Turn on tax+invoicing to see all the buttons.
There's some discussion at https://github.com/civicrm/civicrm-core/pull/28907
![untitled3](/uploads/4f99d9d8bccdcd9a0aca2aaa51ba37df/untitled3.png)Started in 5.70. Turn on tax+invoicing to see all the buttons.
There's some discussion at https://github.com/civicrm/civicrm-core/pull/28907
![untitled3](/uploads/4f99d9d8bccdcd9a0aca2aaa51ba37df/untitled3.png)5.70.0seamusleeseamusleehttps://lab.civicrm.org/dev/core/-/issues/4893No event registration confirmation email sent for free events2024-01-12T04:49:21ZBobSNo event registration confirmation email sent for free events## Overview
Upon registering for a free event, no confirmation email is sent.
## Reproduction steps
1. Register for an event configured with `Paid Event` = No and `Send Confirmation Email` = Yes.
## Current behaviour
No confirmation...## Overview
Upon registering for a free event, no confirmation email is sent.
## Reproduction steps
1. Register for an event configured with `Paid Event` = No and `Send Confirmation Email` = Yes.
## Current behaviour
No confirmation email is sent.
## Expected behaviour
A confirmation email is sent.
## Environment information
**CiviCRM:** _5.69.1_
## Comments
Regression introduced by https://github.com/civicrm/civicrm-core/commit/36723fe908973f72dc5cd57a249ee236fcfec868
Specifically, the Issue is caused by a change to CRM_Event_Form_Registration::processRegistration:
* From: `if ($this->_contributeMode != 'checkout' || $this->_contributeMode != 'notify')`
* To: `if ($this->getPaymentProcessorObject()->supports('noReturn'))`
This returns FALSE if there is no payment processor, causing the email to not be sent.5.69.2https://lab.civicrm.org/dev/core/-/issues/4892[PHP 8.1] Weight notices @ Import/Export Mappings2024-01-12T04:49:22Zjofranzfranz@systopia.de[PHP 8.1] Weight notices @ Import/Export MappingsSame as #4891
Here needs to be data to see it: https://dmaster.demo.civicrm.org/civicrm/admin/mapping?reset=1
_systopia reference: 23444_Same as #4891
Here needs to be data to see it: https://dmaster.demo.civicrm.org/civicrm/admin/mapping?reset=1
_systopia reference: 23444_5.69.2https://lab.civicrm.org/dev/release/-/issues/245.69.1 critical error: Undefined array key "crmSearchTasks" in "ext/search_ki...2024-02-01T22:42:39ZDmitry Smirnov5.69.1 critical error: Undefined array key "crmSearchTasks" in "ext/search_kit/search_kit.php" on line 61```
PHP Warning: Undefined array key "crmSearchTasks" in ext/search_kit/search_kit.php on line 61
PHP Warning: Trying to access array offset on value of type null in ext/search_kit/search_kit.php on line 61
PHP Fatal error: Uncaught T...```
PHP Warning: Undefined array key "crmSearchTasks" in ext/search_kit/search_kit.php on line 61
PHP Warning: Trying to access array offset on value of type null in ext/search_kit/search_kit.php on line 61
PHP Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in ext/search_kit/search_kit.php:61
```https://lab.civicrm.org/dev/core/-/issues/4889deleted-files-list needs some fine-tuning2024-02-21T03:00:39ZDaveDdeleted-files-list needs some fine-tuningI tried updating it after the case_activity [workflow PR](https://github.com/civicrm/civicrm-core/pull/28800) using the script, because the status check is now saying "old files", but the output seemed off. But it's because the 5.70 bran...I tried updating it after the case_activity [workflow PR](https://github.com/civicrm/civicrm-core/pull/28800) using the script, because the status check is now saying "old files", but the output seemed off. But it's because the 5.70 branching made some changes that don't make sense: https://github.com/civicrm/civicrm-core/commit/0524dba18c932062c431d3f337506c7ad2ca80a1#diff-41b67b01f75a3da4825936805e68a5ee46f7b883e7b2bfd85766a181a6562ea3R154
And we've seen before that the `tools/extensions/phpstorm/.phpstorm.meta.php` line is a false-positive if you don't have that extension installed, which I'm guessing only 2 people do.
As a general comment I'm not crazy about the concept behind the deleted-list file. I'm not familiar with joomla but can't joomla admins just delete the folder before upgrade the same way everyone else does? The docs even suggest it as a troubleshooting step, so it must be doable?
Technically a regression, but not the same as usual.
FYI @colemanw5.71.0https://lab.civicrm.org/dev/user-interface/-/issues/64"Done" buttons are misaligned2024-01-07T19:50:31ZDaveD"Done" buttons are misalignede.g. and it's especially weird on contribution since it overlaps part of the table:
![untitled3](/uploads/516138bc3656ab5c809d7e15c19c336e/untitled3.png)
Activity:
![untitled4](/uploads/fcd451588d051e6f8ab20d58cc3f62ae/untitled4.png)e.g. and it's especially weird on contribution since it overlaps part of the table:
![untitled3](/uploads/516138bc3656ab5c809d7e15c19c336e/untitled3.png)
Activity:
![untitled4](/uploads/fcd451588d051e6f8ab20d58cc3f62ae/untitled4.png)5.70.0https://lab.civicrm.org/dev/core/-/issues/4888Location field on case activity isn't aligned properly2024-01-10T17:48:56ZDaveDLocation field on case activity isn't aligned properly![untitled3](/uploads/7571ef6057725f323e355fda70c7cd1c/untitled3.png)![untitled3](/uploads/7571ef6057725f323e355fda70c7cd1c/untitled3.png)https://lab.civicrm.org/dev/core/-/issues/4886[5.68.1] Smarty3 fails to render contacts import summary page2024-01-05T05:36:10ZDmitry Smirnov[5.68.1] Smarty3 fails to render contacts import summary pageOn 5.68.1, contact imports created new contacts successfully (as expected) but Smarty3 failed to render import summary page in the end (showing "critical error" after import progress):
```
PHP Deprecated: Creation of dynamic property S...On 5.68.1, contact imports created new contacts successfully (as expected) but Smarty3 failed to render import summary page in the end (showing "critical error" after import progress):
```
PHP Deprecated: Creation of dynamic property Smarty_Internal_Extension_Handler::$assignByRef is deprecated in /usr/share/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php on line 182
PHP Deprecated: Creation of dynamic property Smarty_Internal_Extension_Handler::$getTemplateVars is deprecated in /usr/share/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php on line 182
PHP Deprecated: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated in /usr/share/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php on line 719
PHP Deprecated: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated in /usr/share/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php on line 719
PHP Deprecated: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated in /usr/share/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php on line 719
PHP Deprecated: Creation of dynamic property Smarty_Internal_Extension_Handler::$_foreach is deprecated in /usr/share/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php on line 182
PHP Deprecated: Creation of dynamic property Smarty_Variable::$do_else is deprecated in /var/lib/wordpress/wordpress.deblab/uploads/civicrm/templates_c/en_AU/ea/e9/36/eae936c43239450b358ccf951825467f837bd49a_0.file.CMSPrint.tpl.php on line 47
PHP Deprecated: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated in /usr/share/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php on line 719
PHP Deprecated: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated in /usr/share/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php on line 719
PHP Deprecated: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated in /usr/share/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php on line 719
PHP Deprecated: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated in /usr/share/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php on line 719
PHP Deprecated: Creation of dynamic property Smarty_Internal_Template::$compiler is deprecated in /usr/share/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php on line 719
PHP Deprecated: Creation of dynamic property Smarty_Internal_Extension_Handler::$_codeFrame is deprecated in /usr/share/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php on line 182
PHP Deprecated: Creation of dynamic property Smarty_Internal_Extension_Handler::$_filterHandler is deprecated in /usr/share/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php on line 182
PHP Deprecated: Creation of dynamic property Smarty_Internal_Extension_Handler::$getLiterals is deprecated in /usr/share/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php on line 182
PHP Deprecated: Creation of dynamic property Smarty_Internal_Extension_Handler::$addLiterals is deprecated in /usr/share/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php on line 182
PHP Deprecated: Creation of dynamic property Smarty_Internal_Extension_Handler::$setLiterals is deprecated in /usr/share/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php on line 182
PHP Deprecated: Creation of dynamic property Smarty_Internal_Extension_Handler::$getTemplateVars is deprecated in /usr/share/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php on line 182
PHP Deprecated: Creation of dynamic property Smarty_Internal_Extension_Handler::$_writeFile is deprecated in /usr/share/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php on line 182
PHP Deprecated: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated in /usr/share/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php on line 719
PHP Deprecated: Creation of dynamic property Smarty_Variable::$do_else is deprecated in /var/lib/wordpress/wordpress.deblab/uploads/civicrm/templates_c/en_AU/97/37/f0/9737f0315707fe307f61433aafb3cf128d36ad32_0.file.Summary.tpl.php on line 328
PHP Warning: Array to string conversion in /var/lib/wordpress/wordpress.deblab/uploads/civicrm/templates_c/en_AU/97/37/f0/9737f0315707fe307f61433aafb3cf128d36ad32_0.file.Summary.tpl.php on line 354
PHP Deprecated: Creation of dynamic property Smarty_Variable::$do_else is deprecated in /var/lib/wordpress/wordpress.deblab/uploads/civicrm/templates_c/en_AU/97/37/f0/9737f0315707fe307f61433aafb3cf128d36ad32_0.file.Summary.tpl.php on line 355
PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /var/lib/wordpress/wordpress.deblab/uploads/civicrm/templates_c/en_AU/97/37/f0/9737f0315707fe307f61433aafb3cf128d36ad32_0.file.Summary.tpl.php:359
Stack trace:
#0 /usr/share/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_6596ac2030b090_68456159()
#1 /usr/share/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode()
#2 /usr/share/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(216): Smarty_Template_Compiled->render()
#3 /usr/share/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(385): Smarty_Internal_Template->render()
#4 /var/lib/wordpress/wordpress.deblab/uploads/civicrm/templates_c/en_AU/cf/b0/8e/cfb08ecadba5e8b29bf41e9aae04d99380f0a23d_0.file.default.tpl.php(53): Smarty_Internal_Template->_subTemplateRender()
#5 /usr/share/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_6596abd7042ff2_38540251()
#6 /usr/share/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode()
#7 /usr/share/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(216): Smarty_Template_Compiled->render()
#8 /usr/share/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(385): Smarty_Internal_Template->render()
#9 /var/lib/wordpress/wordpress.deblab/uploads/civicrm/templates_c/en_AU/ea/e9/36/eae936c43239450b358ccf951825467f837bd49a_0.file.CMSPrint.tpl.php(100): Smarty_Internal_Template->_subTemplateRender()
#10 /usr/share/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_6596abd701e460_46797449()
#11 /usr/share/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode()
#12 /usr/share/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(216): Smarty_Template_Compiled->render()
#13 /usr/share/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(385): Smarty_Internal_Template->render()
#14 /var/lib/wordpress/wordpress.deblab/uploads/civicrm/templates_c/en_AU/9c/3f/c1/9c3fc145555d7a857fab0827e120d82b83d12571_0.file.wordpress.tpl.php(31): Smarty_Internal_Template->_subTemplateRender()
#15 /usr/share/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_6596abd7001831_48089199()
#16 /usr/share/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode()
#17 /usr/share/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(216): Smarty_Template_Compiled->render()
#18 /usr/share/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(232): Smarty_Internal_Template->render()
#19 /usr/share/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase->_execute()
#20 /usr/share/civicrm/CRM/Core/QuickForm/Action/Display.php(117): Smarty_Internal_TemplateBase->fetch()
#21 /usr/share/civicrm/CRM/Core/QuickForm/Action/Display.php(83): CRM_Core_QuickForm_Action_Display->renderForm()
#22 /usr/share/civicrm/packages/HTML/QuickForm/Controller.php(203): CRM_Core_QuickForm_Action_Display->perform()
#23 /usr/share/civicrm/packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller->handle()
#24 /usr/share/civicrm/CRM/Core/Controller.php(355): HTML_QuickForm_Page->handle()
#25 /usr/share/civicrm/CRM/Utils/Wrapper.php(98): CRM_Core_Controller->run()
#26 /usr/share/civicrm/CRM/Core/Invoke.php(292): CRM_Utils_Wrapper->run()
#27 /usr/share/civicrm/CRM/Core/Invoke.php(69): CRM_Core_Invoke::runItem()
#28 /usr/share/civicrm/CRM/Core/Invoke.php(36): CRM_Core_Invoke::_invoke()
#29 /usr/share/wordpress/wp-content/plugins/civicrm/civicrm.php(1201): CRM_Core_Invoke::invoke()
#30 /usr/share/wordpress/wp-includes/class-wp-hook.php(308): CiviCRM_For_WordPress->invoke()
#31 /usr/share/wordpress/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#32 /usr/share/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action()
#33 /usr/share/wordpress/wp-admin/admin.php(259): do_action()
#34 {main}
thrown in /var/lib/wordpress/wordpress.deblab/uploads/civicrm/templates_c/en_AU/97/37/f0/9737f0315707fe307f61433aafb3cf128d36ad32_0.file.Summary.tpl.php on line 359
```
This is on Debian 12 "Bookworm" with PHP-8.2. (CiviCRM caches cleared before reproducing.)
There is no error with Smarty2.5.69.0https://lab.civicrm.org/dev/core/-/issues/4884"CiviCRM News" on Backdrop has awkward accordions on default themes2024-01-04T22:21:56Ztotten"CiviCRM News" on Backdrop has awkward accordions on default themesOn Backdrop (eg https://bmaster.demo.civicrm.org/civicrm/ ; user: `demo`; pass: `demo`) with default themes, the "CiviCRM News" dashlet is looking weird:
![Screenshot_2024-01-03_at_9.08.21_PM](/uploads/8d22ff7703e5f9eaf856a9e413be66dd/...On Backdrop (eg https://bmaster.demo.civicrm.org/civicrm/ ; user: `demo`; pass: `demo`) with default themes, the "CiviCRM News" dashlet is looking weird:
![Screenshot_2024-01-03_at_9.08.21_PM](/uploads/8d22ff7703e5f9eaf856a9e413be66dd/Screenshot_2024-01-03_at_9.08.21_PM.png)
Theories:
* At first blush, it feels like it would be a regression related to the accordion updates circa 5.69.x (eg https://lab.civicrm.org/dev/user-interface/-/issues/60). However, there's a similar problem in 5.68. This suggests that it's not a simple regression:
![Screenshot_2024-01-03_at_10.21.14_PM](/uploads/ebe6ad88b770ba5337a965cc887d194b/Screenshot_2024-01-03_at_10.21.14_PM.png)
(Note: Slightly different visual appearance with double arrows)
* Could it be that there's always been a bug like this.
* Could it be that the accordion cleanup led to changes in the news feed? In which case, maybe the question is about infra: How to make the feed(s) work with different versions of Civi?
* Interestingly, I went to an old/local copy of `bcmaster`, updated to 5.68+5.69+master, and... it seemed to display fine. But on clean builds of 5.68 and master, it didn't. (This suggests that it might still be some kind of regression.)
* (*It could be that I have a cache of an older feed? This might support the idea of an issue in how the feed works with different client environments?*)5.69.0https://lab.civicrm.org/dev/core/-/issues/4881A contribution "Pay Later" option results in PHP Fatal error: Uncaught TypeE...2024-01-05T03:42:45ZyurgA contribution "Pay Later" option results in PHP Fatal error: Uncaught TypeError: array_key_exists() ..BAO/ContributionSoft.php:506Overview
----------------------------------------
WSOD on Contribution page ( confirmed on https://wpmaster.demo.civicrm.org/contribution-page/ ) if "Pay Later" enabled - possible it is a combination of options though, see below the for...Overview
----------------------------------------
WSOD on Contribution page ( confirmed on https://wpmaster.demo.civicrm.org/contribution-page/ ) if "Pay Later" enabled - possible it is a combination of options though, see below the form configuration
Form Configuration
----------------------------------------
"Amounts" tab:
1. "Contribution Amounts" enabled
2 "Pay later option" enabled
3. **No** "Price set", fixed contribution options
4. "Allow other amounts" enabled with the "Minimum Amount" set as 0
"Membership" tab
1. "General" membership type selected, default
2. Require Membership Signup enabled
3. Separate Membership Payment enabled
4. Display Membership Fee enabled
Current behaviour
----------------------------------------
WSOD on https://wpmaster.demo.civicrm.org/civicrm/contribute/transact/?_qf_Confirm_display=true&qfKey=CRMContributeControllerContribution2dtfiluw56xww48w88wk88k4cgsg44ws8cg4o4owwkoc8s8wow_9990
PHP error log ( from the other server, obviously, since we have no access to wpmaster.demo.civicrm.org internals ):
```
PHP Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /wp-content/plugins/civicrm/civicrm/CRM/Contribute/BAO/ContributionSoft.php:506
Stack trace:
#0 /wp-content/plugins/civicrm/civicrm/CRM/Contribute/BAO/ContributionPage.php(327): CRM_Contribute_BAO_ContributionSoft::formatHonoreeProfileFields(Object(CRM_Core_Smarty), NULL, NULL)
#1 /wp-content/plugins/civicrm/civicrm/CRM/Contribute/Form/Contribution/Confirm.php(1717): CRM_Contribute_BAO_ContributionPage::sendMail(30350, Array, false, false, Array)
#2 /wp-content/plugins/civicrm/civicrm/CRM/Contribute/Form/Contribution/Confirm.php(1403): CRM_Contribute_Form_Contribution_Confirm->postProcessMembership(Array, 30350, Array, Array, Array, Array, true, NULL, false, '2', Array)
#3 /wp-content/plugins/civicrm/civicrm/CRM/Contribute/Form/Contribution/Confirm.php(2489): CRM_Contribute_Form_Contribution_Confirm->processMembership(Array, 30350, Array, Array, Array)
#4 /wp-content/plugins/civicrm/civicrm/CRM/Contribute/Form/Contribution/Confirm.php(2294): CRM_Contribute_Form_Contribution_Confirm->doMembershipProcessing(30350, Array, Array, Array)
#5 /wp-content/plugins/civicrm/civicrm/CRM/Contribute/Form/Contribution/Confirm.php(817): CRM_Contribute_Form_Contribution_Confirm->processFormSubmission(30350)
#6 /wp-content/plugins/civicrm/civicrm/CRM/Core/Form.php(622): CRM_Contribute_Form_Contribution_Confirm->postProcess()
#7 /wp-content/plugins/civicrm/civicrm/CRM/Contribute/Form/Contribution/Main.php(1430): CRM_Core_Form->mainProcess()
#8 /wp-content/plugins/civicrm/civicrm/CRM/Contribute/Form/Contribution/Main.php(1188): CRM_Contribute_Form_Contribution_Main->skipToThankYouPage()
#9 /wp-content/plugins/civicrm/civicrm/CRM/Core/Form.php(622): CRM_Contribute_Form_Contribution_Main->postProcess()
#10 /wp-content/plugins/civicrm/civicrm/CRM/Core/QuickForm/Action/Upload.php(153): CRM_Core_Form->mainProcess()
#11 /wp-content/plugins/civicrm/civicrm/CRM/Core/QuickForm/Action/Upload.php(120): CRM_Core_QuickForm_Action_Upload->realPerform(Object(CRM_Contribute_Form_Contribution_Main), 'upload')
#12 /wp-content/plugins/civicrm/civicrm/packages/HTML/QuickForm/Controller.php(203): CRM_Core_QuickForm_Action_Upload->perform(Object(CRM_Contribute_Form_Contribution_Main), 'upload')
#13 /wp-content/plugins/civicrm/civicrm/packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller->handle(Object(CRM_Contribute_Form_Contribution_Main), 'upload')
#14 /wp-content/plugins/civicrm/civicrm/CRM/Core/Controller.php(355): HTML_QuickForm_Page->handle('upload')
#15 /wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(322): CRM_Core_Controller->run(Array, NULL)
#16 /wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(69): CRM_Core_Invoke::runItem(Array)
#17 /wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(36): CRM_Core_Invoke::_invoke(Array)
#18 /wp-content/plugins/civicrm/civicrm.php(1199): CRM_Core_Invoke::invoke(Array)
```
Environment information
----------------------------------------
* CiviCRM: 5.68.0, CiviCRM 5.70.alpha1 (via https://wpmaster.demo.civicrm.org)
* PHP version 8.1.26
* CMS:WordPress 6.4.2
Comments
----------------------------------------
Line 506 of /wp-content/plugins/civicrm/civicrm/CRM/Contribute/BAO/ContributionSoft.php:506 reads:
```
switch ($profileContactType) {
case 'Individual':
/* 506 -> */ if (array_key_exists('prefix_id', $params)) {
$honorName = CRM_Utils_Array::value($params['prefix_id'],
```
so it looks like $params are NULL at this point. Should they be or we just add _if(!empty($params_ here and let it go?5.69.0https://lab.civicrm.org/dev/drupal/-/issues/192Allow other case roles who are not the case client to update details on the c...2024-01-04T20:44:10Zshraddha_compucorpAllow other case roles who are not the case client to update details on the case via webformCurrently, due to security considerations, only the case client can submit data onto a case via a public form. Create functionality so that a webform can be configured to allow either the client or those with specific case roles to updat...Currently, due to security considerations, only the case client can submit data onto a case via a public form. Create functionality so that a webform can be configured to allow either the client or those with specific case roles to update the details on a specific case.
The table below illustrates the current functioning of the system across different scenarios. Scenario 8 reflects the anticipated operation in accordance with the detailed requirements provided below.
<table>
<tr>
<th>
</th>
<th>
</th>
<th>
**Current expected outcome**
</th>
</tr>
<tr>
<td>
**Case client**
</td>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td>Scenario 1: Base scenario</td>
<td>
* Is not a case client
* Is not a current case role
* Is not logged in
* Does not have checksum
* No permissions
</td>
<td>Cannot access case on webform</td>
</tr>
<tr>
<td>Scenario 2: Logged out no checksum</td>
<td>
* **Is a case client**
* Is not a current case role
* Is not logged in
* Does not have checksum
* No permissions
</td>
<td>
Cannot access case on webform
(As is not logged in and doesn’t have a checksum token)
</td>
</tr>
<tr>
<td>Scenario 3: Logged out no checksum</td>
<td>
* **Is a case client**
* Is not a current case role
* Is not logged in
* **Does have checksum**
* No permissions
</td>
<td>
**Can access case on webform**
</td>
</tr>
<tr>
<td>
**Case role**
</td>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td>Scenario 4</td>
<td>
* **Has a current case role**
* Is not logged in
* Does not have checksum
* No additional permissions
</td>
<td>Cannot access case on webform</td>
</tr>
<tr>
<td>Scenario 5</td>
<td>
* **Has a current case role**
* Is not logged in
* **Does have checksum**
* No additional permissions
</td>
<td>Cannot access case on webform</td>
</tr>
<tr>
<td>Scenario 6</td>
<td>
* **Has a current case role**
* Is not logged in
* **Does have checksum**
* **Access MY cases**
</td>
<td>Cannot access case on webform</td>
</tr>
<tr>
<td>Scenario 7</td>
<td>
* **Has a current case role**
* Is not logged in
* **Does have checksum**
* **Access ALL cases**
</td>
<td>Cannot access case on webform</td>
</tr>
<tr>
<td>
**New scenario**
</td>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td>Scenario 8</td>
<td>
* **Has a current case role**
* Is not logged in
* **Does have checksum**
* No additional permissions
---
Configure the webform:
* Case role specified can access the case
</td>
<td>
**New: Should be able to access and update case via webform**
</td>
</tr>
</table>
<table>
<tr>
<th>
**ID / Title**
</th>
<th>
**Detailed requirement**
</th>
</tr>
<tr>
<td>
1.1
Webform Configuration
</td>
<td>
Create a new setting under Webform \> Civicrm \> Cases \> Case Roles
* Field details:
* Title: Case roles that can update case via webform
* Type: Multi-select
* Options: List of case roles in CiviCRM
* Help: Specify additional case roles that can access the case via the webform without logging in. To do so create a link with the following details populated: examplesite.com&case1={case.id}&cid1={contact.id}&{contact.checksum} where case1 is the case number on the form, cid1 is the contact you would like to populate with the users details who is accessing the form. Note that contacts who are the case client can always access the case with the above details.
Sample screenshot:
![8b1ebeb3-bbba-484f-8581-a2316410efb7.png](/uploads/6ced689e3b7e11fd794778f2ed86a3e8/8b1ebeb3-bbba-484f-8581-a2316410efb7.png)
</td>
</tr>
<tr>
<td>
1.2
Allow other case roles who are not the case client to update details on the case via webform
</td>
<td>
* If a contact holds a current case role (eg: user1@user1.com i.e. consultant)
* Start date \<= todays date or null
* AND
* End date \> todays date or null
* AND
* Is_active (is not) NO
* They are sent a link via email to a specific webform with:
* Contact ID of their contact autoloaded on the form for at least one of the existing contact fields
* AND
* Case ID is in the URL is a case where they have a case role (&case1={case_id})
* AND
* Case type has their role enabled for edit access as per ID-1.1 above
* AND
* Either:
* Contact CheckSum for their contact if not logged in
* OR
* Any of the following: _(note the following is unchanged from CiviCRM out the box and just included for completeness)_
* Check CiviCRM permissions if logged in
* If they have _CiviCRM Admin_ role they should have access OR
* If they have _CiviCase: access all cases and activities_ OR
* If they have CiviCase: access my cases and activities And are the case manager
* The case details should load in the webform and allow the user to update the case.
eg:
`examplesite.com&case1={case.id}&cid1={contact.id}&{contact.checksum}`
or if populated:
`examplesite.com&case1=100&cid1=999&asokdaoskda98asd Case ID = 100 Contact ID = 999 Checksum = asokdaoskda98asd`
The above should allow the “Contact 1” on the case to edit the case (i.e. the URL above should load the case) if:
1. The contact with ID: 999 has a current case role on the case with ID: 100
2. That case role has been configured to allow access (setting 1.1)
3. The checksum (asokdaoskda98asd) is current / valid
Then the form should load the case details and allow the user to submit and update the case via the form.
</td>
</tr>
</table>https://lab.civicrm.org/dev/core/-/issues/4880Price field and value weights not respected in 5.682024-01-02T23:55:23ZJonGoldPrice field and value weights not respected in 5.68Overview
----------------------------------------
Price fields and values are sorted by primary key, not weight, on contribution pages.
Reproduction steps
----------------------------------------
1. Open up a price set.
1. Change the we...Overview
----------------------------------------
Price fields and values are sorted by primary key, not weight, on contribution pages.
Reproduction steps
----------------------------------------
1. Open up a price set.
1. Change the weight of some items.
1. See if it changed the contribution page..
Current behaviour
----------------------------------------
Sort by primary key.
Expected behaviour
----------------------------------------
Sort by weight.
Comments
----------------------------------------
PR is here: https://github.com/civicrm/civicrm-core/pull/28842
I wasn't going to make a lab.c.o ticket but I suspect that the "regression" tag here is what blocks a release, and with 5.69 almost upon us, I wanted to make sure this got seen.5.69.0JonGoldJonGoldhttps://lab.civicrm.org/dev/core/-/issues/4879Duplicate declaration of static variable under PHP 8.32024-01-31T22:30:42ZspalmstromDuplicate declaration of static variable under PHP 8.3Overview
----------------------------------------
_Please describe your problem or bug in detail._
_If you have already posted on https://civicrm.stackexchange.com or https://chat.civicrm.org, please include the link to that conversatio...Overview
----------------------------------------
_Please describe your problem or bug in detail._
_If you have already posted on https://civicrm.stackexchange.com or https://chat.civicrm.org, please include the link to that conversation._
Reproduction steps
----------------------------------------
1. Go to the web site.
1. The site crashes with
```
PHP Fatal error: Duplicate declaration of static variable $fields in <drupal root>/vendor/civicrm/civicrm-core/CRM/Mailing/Event/BAO/MailingEventForward.php on line 236
```
Current behaviour
----------------------------------------
```
PHP Fatal error: Duplicate declaration of static variable $fields in <drupal root>/vendor/civicrm/civicrm-core/CRM/Mailing/Event/BAO/MailingEventForward.php on line 236
```
Once the static declaration has been removed, you get.
```
PHP Fatal error: Duplicate declaration of static variable $fields in <D:\CiviCRM_Custom.git\drupal8>drupal root>/vendor/civicrm/civicrm-core/CRM/Import/Parser.php on line 1131
```
Expected behaviour
----------------------------------------
The home page should appear.
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:__ _MS Edge_ but probably not relevant
* __CiviCRM:__ _Master/5.68.x..._ <!-- If this problem relates to an upgrade, then specify both old and new versions -->
* __PHP:__ _8.3_ and I suspect very relevant.
* __CMS:__ _Drupal 10.2.0_ but may not be relevant
* __Database:__ _MySQL 8.0.35_ but probably not relevant.
* __Web Server:__ _IIS 10_ but probably not relevant.
Comments
----------------------------------------
Cannot reproduce in Demo as it is running PHP 8.1.x. Drupal now wants at least 8.2 if my understanding is correct.5.69.2https://lab.civicrm.org/dev/core/-/issues/4878Bundled Snappy is affected by CVE-2023-281152024-01-05T08:17:36ZDmitry SmirnovBundled Snappy is affected by CVE-2023-28115As [reported in Debian](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1036284), bundled snappy is affected by the [CVE-2023-28115](https://www.cve.org/CVERecord?id=CVE-2023-28115) vulnerability:
> Snappy is a PHP library allowing th...As [reported in Debian](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1036284), bundled snappy is affected by the [CVE-2023-28115](https://www.cve.org/CVERecord?id=CVE-2023-28115) vulnerability:
> Snappy is a PHP library allowing thumbnail, snapshot or PDF generation from a url or a html page. Prior to version 1.4.2, Snappy is vulnerable to PHAR deserialization due to a lack of checking on the protocol before passing it into the `file_exists()` function. If an attacker can upload files of any type to the server he can pass in the phar:// protocol to unserialize the uploaded file and instantiate arbitrary PHP objects. This can lead to remote code execution especially when snappy is used with frameworks with documented POP chains like Laravel/Symfony vulnerable developer code. If a user can control the output file from the `generateFromHtml()` function, it will invoke deserialization. This vulnerability is capable of remote code execution if Snappy is used with frameworks or developer code with vulnerable POP chains. It has been fixed in version 1.4.2.
* https://github.com/KnpLabs/snappy/security/advisories/GHSA-gq6w-q6wh-jggc
* https://github.com/KnpLabs/snappy/pull/469
* https://github.com/KnpLabs/snappy/commit/1ee6360cbdbea5d09705909a150df7963a88efd6 (v1.4.2)5.69.0https://lab.civicrm.org/dev/core/-/issues/4877Membership level is miscomputed if you use "Go back" to fix a mistake2024-01-05T03:42:45ZtottenMembership level is miscomputed if you use "Go back" to fix a mistake## Overview
When using a ContributionPage to choose a membership type, you have the option to "Go back" and change
## Reproduction steps
1. Create a site with demo data (_I'm using dmaster_). This includes a dummy payment processor, s...## Overview
When using a ContributionPage to choose a membership type, you have the option to "Go back" and change
## Reproduction steps
1. Create a site with demo data (_I'm using dmaster_). This includes a dummy payment processor, some membership types ("General", "Student"), and a ContributionPage.
2. In a private window, open the ContributionPage for membership registration (`civicrm/contribute/transact?reset=1&id=2`)
3. Choose the "General" membership type. Fill out dummy billing info. Continue to next page.
4. On the confirmation page, read the summary. __You see the "General" selection... and realize it's a mistake.__ You want to change.
5. Press "Go Back"
6. Change the membership to the correct/intended value ("Student"). Continue to the next page.
## Current behavior
On the confirmation page, you see contradictory information. One section reports "Student" membership, and the other section reports "General" membership.
![Screenshot_2023-12-31_at_7.15.05_PM](/uploads/9013a642427bc6685087c71088f15d83/Screenshot_2023-12-31_at_7.15.05_PM.png)
If you ignore this and proceed, then it will processed as a "General" membership -- using your original/mistaken value instead of final/corrected value.
The mistaken values (label/price/period) will appear in the email receipt, the `Contribution` record, and the `Membership` record.
## Expected behavior
After changing your choice to "Student", all screens/records/emails should use the final/corrected value.
## Environment information
* **Browser:** Firefox
* **CiviCRM:** 5.69
* **PHP:** 8.1
* **CMS:** D7
* **Database:** MySQL 8
* **Web Server:** Apache
## Comments
I noticed this while testing other issues, so my local setup involved some other configuration. These parts probably don't matter for this scenario. But just in case there's trouble with reproducing, here's a list of other config steps:
* Make a new membership type, "Part Time Student", which recurs every 6 months
* Update the ContributionPage to enable "Part Time Student" (along with "General" and "Student")
* Change the prices on all membership types to be values like $6, $7, $8, $10. (These values are [more convenient for testing iATS credit card mode](https://content.iatspayments.com/developers-test-credit-card-numbers).)
* Add payment processor for iATS CC (TEST88). But don't actually use it. It's just an extra one hanging around.5.69.0https://lab.civicrm.org/dev/core/-/issues/4874Smarty3: file not found in extension2024-02-10T03:20:14ZJonGoldSmarty3: file not found in extensionOverview
----------------------------------------
I changed all my dev sites to use Smarty3, but have been hitting errors. I often need to disable Smarty3 to get my work done, and I've had a hard time isolating some of the bugs, but I h...Overview
----------------------------------------
I changed all my dev sites to use Smarty3, but have been hitting errors. I often need to disable Smarty3 to get my work done, and I've had a hard time isolating some of the bugs, but I have one that I think typifies many I've seen.
Reproduction steps
----------------------------------------
1. Install https://github.com/MegaphoneJon/autopagealias.
1. Try to configure the "Title and Settings" tab of any contribution page.
Current behaviour
----------------------------------------
500 error. Backtrace at the bottom.
Expected behaviour
----------------------------------------
Page loads.
Comments
----------------------------------------
This extension is supposed to [load a template into a region](https://github.com/MegaphoneJon/autopagealias/blob/345b08dd296547499cea49c39fb6c82690800716/autopagealias.php#L55-L57) which is what fails.
Backtrace:
```
SmartyException: "Unable to load template 'file:autopagealias.tpl'"
#0 /home/jon/local/mysite/web/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(232): Smarty_Internal_Template->render()
#1 /home/jon/local/mysite/web/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase->_execute()
#2 /home/jon/local/mysite/web/sites/all/modules/civicrm/CRM/Core/Region.php(81): Smarty_Internal_TemplateBase->fetch()
#3 /home/jon/local/mysite/web/sites/all/modules/civicrm/CRM/Core/Region.php(157): CRM_Core_Region->{closure}()
#4 /home/jon/local/mysite/web/sites/all/modules/civicrm/CRM/Core/Smarty/plugins/block.crmRegion.php(26): CRM_Core_Region->render()
#5 /home/jon/local/mysite/web/sites/default/files/civicrm/templates_c/en_US/c8/a8/bd/c8a8bd2f0d2e36364b83a4b0b14004fe7f08dd67_0.file.default.tpl.php(40): smarty_block_crmRegion()
#6 /home/jon/local/mysite/web/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_65836ac8491583_28697209()
#7 /home/jon/local/mysite/web/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode()
#8 /home/jon/local/mysite/web/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(216): Smarty_Template_Compiled->render()
#9 /home/jon/local/mysite/web/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(385): Smarty_Internal_Template->render()
#10 /home/jon/local/mysite/web/sites/default/files/civicrm/templates_c/en_US/5c/4f/99/5c4f999cd4ef413bb2921f2d4e6361f852f26f8a_0.file.snippet.tpl.php(73): Smarty_Internal_Template->_subTemplateRender()
#11 /home/jon/local/mysite/web/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_65836ac8383521_30854142()
#12 /home/jon/local/mysite/web/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode()
#13 /home/jon/local/mysite/web/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(216): Smarty_Template_Compiled->render()
#14 /home/jon/local/mysite/web/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(232): Smarty_Internal_Template->render()
#15 /home/jon/local/mysite/web/sites/all/modules/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase->_execute()
#16 /home/jon/local/mysite/web/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Display.php(117): Smarty_Internal_TemplateBase->fetch()
#17 /home/jon/local/mysite/web/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Display.php(83): CRM_Core_QuickForm_Action_Display->renderForm()
#18 /home/jon/local/mysite/web/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php(203): CRM_Core_QuickForm_Action_Display->perform()
#19 /home/jon/local/mysite/web/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller->handle()
#20 /home/jon/local/mysite/web/sites/all/modules/civicrm/CRM/Core/Controller.php(355): HTML_QuickForm_Page->handle()
#21 /home/jon/local/mysite/web/sites/all/modules/civicrm/CRM/Utils/Wrapper.php(98): CRM_Core_Controller->run()
#22 /home/jon/local/mysite/web/sites/all/modules/civicrm/CRM/Core/Invoke.php(295): CRM_Utils_Wrapper->run()
#23 /home/jon/local/mysite/web/sites/all/modules/civicrm/CRM/Core/Invoke.php(69): CRM_Core_Invoke::runItem()
#24 /home/jon/local/mysite/web/sites/all/modules/civicrm/CRM/Core/Invoke.php(36): CRM_Core_Invoke::_invoke()
#25 /home/jon/local/mysite/web/sites/all/modules/civicrm/drupal/civicrm.module(472): CRM_Core_Invoke::invoke()
#26 /home/jon/local/mysite/web/includes/menu.inc(527): civicrm_invoke()
#27 /home/jon/local/mysite/web/index.php(21): menu_execute_active_handler()
#28 {main}
```https://lab.civicrm.org/dev/core/-/issues/4872SearchKit: Many "group by" requests result in "illegal offset type" 500 error2024-01-05T03:42:44ZJonGoldSearchKit: Many "group by" requests result in "illegal offset type" 500 errorOverview
----------------------------------------
Grouping results that contain both individual and organizations in the results leads to an "illegal offset type" error.
Reproduction steps
----------------------------------------
Import...Overview
----------------------------------------
Grouping results that contain both individual and organizations in the results leads to an "illegal offset type" error.
Reproduction steps
----------------------------------------
Import and run this SearchKit query.
```
[
[
"SavedSearch",
"save",
{
"records": [
{
"name": "illegal_offset_type",
"label": "illegal offset type",
"api_entity": "Contact",
"api_params": {
"version": 4,
"select": [
"COUNT(id) AS COUNT_id",
"GROUP_CONCAT(DISTINCT sort_name) AS GROUP_CONCAT_sort_name",
"GROUP_CONCAT(DISTINCT contact_type:label) AS GROUP_CONCAT_contact_type_label",
"GROUP_CONCAT(DISTINCT contact_sub_type:label) AS GROUP_CONCAT_contact_sub_type_label"
],
"orderBy": [],
"where": [],
"groupBy": [
"Contact_Address_contact_id_01.street_address"
],
"join": [
[
"Address AS Contact_Address_contact_id_01",
"LEFT",
[
"id",
"=",
"Contact_Address_contact_id_01.contact_id"
],
[
"Contact_Address_contact_id_01.is_primary",
"=",
true
]
]
],
"having": []
}
}
],
"match": [
"name"
]
}
]
]
```
Current behaviour
----------------------------------------
500 error:
```
TypeError: Illegal offset type in Civi\Api4\Utils\FormattingUtil::contactFieldsToRemove() (line 430 of /home/jon/local/civicrm-buildkit/build/dmaster/web/sites/all/modules/civicrm/Civi/Api4/Utils/FormattingUtil.php).
```
Expected behaviour
----------------------------------------
No error.JonGoldJonGoldhttps://lab.civicrm.org/dev/core/-/issues/4870consider adding type info to cache interfaces that extend PSR-16 Simple Cache?2024-02-18T14:03:46Zcomposerjkconsider adding type info to cache interfaces that extend PSR-16 Simple Cache?It looks like in August 2021, the PHP-FIG [PSR-16 Simple Cache](https://github.com/php-fig/simple-cache) interface had parameter and return type info added to the method definitions.
Noticed when the 2.1+ update to the [Breeze](https://...It looks like in August 2021, the PHP-FIG [PSR-16 Simple Cache](https://github.com/php-fig/simple-cache) interface had parameter and return type info added to the method definitions.
Noticed when the 2.1+ update to the [Breeze](https://wordpress.org/plugins/breeze/) WordPress cache plugin referenced the updated cache interface definition via the included [Mobile Detect](https://github.com/serbanghita/Mobile-Detect/) package.
Maybe there's an adjustment to be made or maybe they (Mobile Detect folk) are including the PSR definitions incorrectly? Have not investigated.
Here's the error message that caused me to notice and track down the issue:
`An error of type E_COMPILE_ERROR was caused in line 43 of the file /…/wp-content/plugins/civicrm/civicrm/CRM/Utils/Cache/Interface.php. Error message: Declaration of CRM_Utils_Cache_Interface::get($key, $default = null) must be compatible with Psr\SimpleCache\CacheInterface::get(string $key, mixed $default = null): mixed`
Initial PSR-16 implementation inclusion was in issue #174.https://lab.civicrm.org/dev/core/-/issues/4869Mailing labels do not work with custom tokens anymore2024-01-06T00:51:57ZMariaVMailing labels do not work with custom tokens anymoreI thought I have seen this issue already but I could not find it. In case there is, feel free to close.
Since 5.64.4 or probably earlier, the mailing labels do not work with custom tokens anymore.
An update to 5.67.3 did not help. The p...I thought I have seen this issue already but I could not find it. In case there is, feel free to close.
Since 5.64.4 or probably earlier, the mailing labels do not work with custom tokens anymore.
An update to 5.67.3 did not help. The page is just blank with no labels at all.
My colleague and I were trying to analyze this problem a bit further but could not find a solution.
The custom token itself works when creating a document.
In case it would be interesting to have a look on the code, I have attached the files.
The custom token produces also warnings for non-existent array indices:
```
PHP Warning: Undefined array key "County" in /html/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Admin/Form/Preferences/Address.php on line 83
PHP Warning: Undefined array key "Street Address Parsing" in /html/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Admin/Form/Preferences/Address.php on line 95
PHP Warning: Undefined array key "county" in /html/wordpress/wp-content/uploads/civicrm/templates_c/de_DE/%%B0/B09/B09DCA78%%Location.tpl.php on line 78
PHP Warning: Trying to access array offset on value of type null in /html/wordpress/wp-content/uploads/civicrm/templates_c/de_DE/%%B0/B09/B09DCA78%%Location.tpl.php on line 78
```
Does anybody have an idea what could be a problem? Could it be an incompatibility with PHP8?
[csaddressemployer.inc](/uploads/7602180cf302b3fc9e2d67d49b62f61e/csaddressemployer.inc)
[tokenhelpers.inc](/uploads/9702807fed78d384f2226aadf99a173c/tokenhelpers.inc)5.69.0