Opening a new CiviCRM mailing list with a Mosaico template causes a crash in CiviCRM.
- Mailing -> New Mailing
- Proceed to mailing template (I am using Mosaico) and try to send a Test.
Here the console log:
[Thu Mar 03 10:12:24.788770 2022] [proxy_fcgi:error] [pid 293678] [client 46.234.221.246:47640] AH01071: Got error 'PHP message: PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/crm/testing/crmdev.wikimedia.it/vendor/electrolinux/phpquery/phpQuery/phpQuery/phpQueryObject.php on line 1040PHP message: PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/crm/testing/crmdev.wikimedia.it/vendor/electrolinux/phpquery/phpQuery/phpQuery/phpQueryObject.php on line 1055', referer: https://crmdev.wikimedia.it/civicrm/a/
It seems caused by event chain:
- a warning raised by a minor problem in the library called phpQueryObject.php
- the warning is then elevated as error
- that error is then triggering a rollback
- that rollback is then causing an exception (nested bug? SAVEPOINT civi_0 does not exist)
Upstream bug:
https://lab.civicrm.org/dev/core/-/issues/2198
Workaround:
https://lab.civicrm.org/dev/core/-/issues/2198#note_59381
Suggested fix: