Drupal issueshttps://lab.civicrm.org/dev/drupal/-/issues2021-08-26T16:58:54Zhttps://lab.civicrm.org/dev/drupal/-/issues/162Patches fail to apply on a fresh D9 site2021-08-26T16:58:54ZfkohrtPatches fail to apply on a fresh D9 siteI am trying to install CiviCRM 5.40 on a fresh Drupal 9 site.
But when running `composer require civicrm/civicrm-{core,packages,drupal-8}:'~5.40' --with-all-dependencies` several patches fail to apply:
<details>
<summary>Console output...I am trying to install CiviCRM 5.40 on a fresh Drupal 9 site.
But when running `composer require civicrm/civicrm-{core,packages,drupal-8}:'~5.40' --with-all-dependencies` several patches fail to apply:
<details>
<summary>Console output</summary>
```
./composer.json has been updated
Running composer update civicrm/civicrm-core civicrm/civicrm-packages civicrm/civicrm-drupal-8 --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Lock file operations: 49 installs, 1 update, 0 removals
- Locking adrienrn/php-mimetyper (0.2.2)
- Locking brick/math (0.9.3)
- Locking brick/money (0.5.2)
- Locking cache/integration-tests (0.17.0)
- Locking cache/tag-interop (1.0.1)
- Locking civicrm/civicrm-core (5.40.2)
- Locking civicrm/civicrm-cxn-rpc (v0.20.12.01)
- Locking civicrm/civicrm-drupal-8 (5.40.2)
- Locking civicrm/civicrm-packages (5.40.2)
- Locking civicrm/composer-compile-lib (v0.5)
- Locking civicrm/composer-compile-plugin (v0.16)
- Locking civicrm/composer-downloads-plugin (v3.0.1)
- Locking cweagans/composer-patches (1.7.1)
- Locking dflydev/apache-mime-types (v1.0.1)
- Locking dompdf/dompdf (v1.0.2)
- Locking electrolinux/phpquery (0.9.6)
- Locking firebase/php-jwt (v5.4.0)
- Locking league/csv (9.7.1)
- Locking league/oauth2-client (2.6.0)
- Locking league/oauth2-google (3.0.4)
- Locking marcj/topsort (1.1.0)
- Locking padaliyajay/php-autoprefixer (1.3)
- Locking paragonie/random_compat (v9.99.100)
- Locking pear/auth_sasl (v1.1.0)
- Locking pear/db (v1.10.0)
- Locking pear/log (1.13.3)
- Locking pear/mail (v1.4.1)
- Locking pear/mail_mime (1.10.10)
- Locking pear/net_smtp (1.9.2)
- Locking pear/net_socket (1.0.14)
- Locking pear/validate_finance_creditcard (0.7.0)
- Locking phenx/php-font-lib (0.5.2)
- Locking phenx/php-svg-lib (v0.3.3)
- Locking phpoffice/phpword (0.18.2)
- Locking phpseclib/phpseclib (2.0.33)
- Locking psr/simple-cache (1.0.1)
- Locking sabberworm/php-css-parser (8.3.1)
- Locking scssphp/scssphp (v1.6.0)
- Locking symfony/config (v4.4.27)
- Downgrading symfony/finder (v5.3.4 => v4.4.27)
- Locking symfony/polyfill-php81 (v1.23.0)
- Locking tecnickcom/tcpdf (6.4.2)
- Locking togos/gitignore (1.1.1)
- Locking totten/ca-config (v17.05.0)
- Locking totten/lurkerlite (1.3.0)
- Locking tplaner/when (v3.0.0)
- Locking tubalmartin/cssmin (v4.1.1)
- Locking xkerman/restricted-unserialize (1.1.12)
- Locking zetacomponents/base (1.9.3)
- Locking zetacomponents/mail (1.9.2)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 49 installs, 1 update, 0 removals
- Downloading cweagans/composer-patches (1.7.1)
- Downloading togos/gitignore (1.1.1)
- Downloading civicrm/composer-downloads-plugin (v3.0.1)
- Downloading totten/lurkerlite (1.3.0)
- Downloading civicrm/composer-compile-plugin (v0.16)
- Downloading dflydev/apache-mime-types (v1.0.1)
- Downloading adrienrn/php-mimetyper (0.2.2)
- Downloading brick/math (0.9.3)
- Downloading brick/money (0.5.2)
- Downloading cache/tag-interop (1.0.1)
- Downloading cache/integration-tests (0.17.0)
- Downloading phpseclib/phpseclib (2.0.33)
- Downloading civicrm/civicrm-cxn-rpc (v0.20.12.01)
- Downloading zetacomponents/base (1.9.3)
- Downloading zetacomponents/mail (1.9.2)
- Downloading xkerman/restricted-unserialize (1.1.12)
- Downloading tplaner/when (v3.0.0)
- Downloading totten/ca-config (v17.05.0)
- Downloading tecnickcom/tcpdf (6.4.2)
- Downloading symfony/finder (v4.4.27)
- Downloading symfony/polyfill-php81 (v1.23.0)
- Downloading symfony/config (v4.4.27)
- Downloading psr/simple-cache (1.0.1)
- Downloading phpoffice/phpword (0.18.2)
- Downloading pear/validate_finance_creditcard (0.7.0)
- Downloading pear/net_socket (1.0.14)
- Downloading pear/net_smtp (1.9.2)
- Downloading pear/mail_mime (1.10.10)
- Downloading pear/mail (v1.4.1)
- Downloading pear/log (1.13.3)
- Downloading pear/db (v1.10.0)
- Downloading pear/auth_sasl (v1.1.0)
- Downloading marcj/topsort (1.1.0)
- Downloading paragonie/random_compat (v9.99.100)
- Downloading league/oauth2-client (2.6.0)
- Downloading league/oauth2-google (3.0.4)
- Downloading league/csv (9.7.1)
- Downloading firebase/php-jwt (v5.4.0)
- Downloading electrolinux/phpquery (0.9.6)
- Downloading sabberworm/php-css-parser (8.3.1)
- Downloading phenx/php-svg-lib (v0.3.3)
- Downloading phenx/php-font-lib (0.5.2)
- Downloading dompdf/dompdf (v1.0.2)
- Downloading tubalmartin/cssmin (v4.1.1)
- Downloading scssphp/scssphp (v1.6.0)
- Downloading padaliyajay/php-autoprefixer (1.3)
- Downloading civicrm/composer-compile-lib (v0.5)
- Downloading civicrm/civicrm-core (5.40.2)
- Downloading civicrm/civicrm-drupal-8 (5.40.2)
- Downloading civicrm/civicrm-packages (5.40.2)
- Installing cweagans/composer-patches (1.7.1): Extracting archive
No patches supplied.
Gathering patches for dependencies. This might take a minute.
- Installing togos/gitignore (1.1.1): Extracting archive
- Installing civicrm/composer-downloads-plugin (v3.0.1): Extracting archive
- Installing totten/lurkerlite (1.3.0): Extracting archive
- Installing civicrm/composer-compile-plugin (v0.16): Extracting archive
- Installing dflydev/apache-mime-types (v1.0.1): Extracting archive
- Installing adrienrn/php-mimetyper (0.2.2): Extracting archive
- Installing brick/math (0.9.3): Extracting archive
- Installing brick/money (0.5.2): Extracting archive
- Installing cache/tag-interop (1.0.1): Extracting archive
- Installing cache/integration-tests (0.17.0): Extracting archive
- Installing phpseclib/phpseclib (2.0.33): Extracting archive
- Installing civicrm/civicrm-cxn-rpc (v0.20.12.01): Extracting archive
- Installing zetacomponents/base (1.9.3): Extracting archive
- Installing zetacomponents/mail (1.9.2): Extracting archive
- Installing xkerman/restricted-unserialize (1.1.12): Extracting archive
- Installing tplaner/when (v3.0.0): Extracting archive
- Installing totten/ca-config (v17.05.0): Extracting archive
- Installing tecnickcom/tcpdf (6.4.2): Extracting archive
- Downgrading symfony/finder (v5.3.4 => v4.4.27): Extracting archive
- Installing symfony/polyfill-php81 (v1.23.0): Extracting archive
- Installing symfony/config (v4.4.27): Extracting archive
- Installing psr/simple-cache (1.0.1): Extracting archive
- Installing phpoffice/phpword (0.18.2): Extracting archive
- Installing pear/validate_finance_creditcard (0.7.0): Extracting archive
- Installing pear/net_socket (1.0.14): Extracting archive
- Installing pear/net_smtp (1.9.2): Extracting archive
- Installing pear/mail_mime (1.10.10): Extracting archive
- Installing pear/mail (v1.4.1): Extracting archive
- Installing pear/log (1.13.3): Extracting archive
- Installing pear/db (v1.10.0): Extracting archive
- Installing pear/auth_sasl (v1.1.0): Extracting archive
- Installing marcj/topsort (1.1.0): Extracting archive
- Installing paragonie/random_compat (v9.99.100): Extracting archive
- Installing league/oauth2-client (2.6.0): Extracting archive
- Installing league/oauth2-google (3.0.4): Extracting archive
- Installing league/csv (9.7.1): Extracting archive
- Installing firebase/php-jwt (v5.4.0): Extracting archive
- Installing electrolinux/phpquery (0.9.6): Extracting archive
- Installing sabberworm/php-css-parser (8.3.1): Extracting archive
- Installing phenx/php-svg-lib (v0.3.3): Extracting archive
- Installing phenx/php-font-lib (0.5.2): Extracting archive
- Installing dompdf/dompdf (v1.0.2): Extracting archive
- Installing tubalmartin/cssmin (v4.1.1): Extracting archive
- Installing scssphp/scssphp (v1.6.0): Extracting archive
- Installing padaliyajay/php-autoprefixer (1.3): Extracting archive
- Installing civicrm/composer-compile-lib (v0.5): Extracting archive
- Installing civicrm/civicrm-core (5.40.2): Extracting archive
- Installing civicrm/civicrm-drupal-8 (5.40.2): Extracting archive
- Installing civicrm/civicrm-packages (5.40.2): Extracting archive
- Applying patches for adrienrn/php-mimetyper
https://patch-diff.githubusercontent.com/raw/adrienrn/php-mimetyper/pull/15.patch (Update gitignore to ensure that sites that manage via git don't miss out on the important db.json file)
Could not apply patch! Skipping. The error was: Cannot apply patch https://patch-diff.githubusercontent.com/raw/adrienrn/php-mimetyper/pull/15.patch
- Applying patches for zetacomponents/mail
https://raw.githubusercontent.com/civicrm/civicrm-core/9d93748a36c7c5d44422911db1c98fb2f7067b34/tools/scripts/composer/patches/civicrm-custom-patches-zetacompoents-mail.patch (CiviCRM Custom Patches for ZetaCompoents mail)
Could not apply patch! Skipping. The error was: Cannot apply patch https://raw.githubusercontent.com/civicrm/civicrm-core/9d93748a36c7c5d44422911db1c98fb2f7067b34/tools/scripts/composer/patches/civicrm-custom-patches-zetacompoents-mail.patch
https://github.com/zetacomponents/Mail/pull/86.patch (Allow single quotes to be used in return path)
Could not apply patch! Skipping. The error was: Cannot apply patch https://github.com/zetacomponents/Mail/pull/86.patch
- Applying patches for pear/net_smtp
https://raw.githubusercontent.com/civicrm/civicrm-core/a6a0ff13d2a155ad962529595dceaef728116f96/tools/scripts/composer/patches/net-smtp-patch.patch (Add in CiviCRM custom error message for CRM-8744)
Could not apply patch! Skipping. The error was: Cannot apply patch https://raw.githubusercontent.com/civicrm/civicrm-core/a6a0ff13d2a155ad962529595dceaef728116f96/tools/scripts/composer/patches/net-smtp-patch.patch
- Applying patches for pear/mail_mime
https://raw.githubusercontent.com/civicrm/civicrm-core/74e25f27bb3be32519657539afe8a285c6c99a08/tools/scripts/composer/patches/mail_mime_crm_3133.patch (Apply patch for CRM-3133 wordwrap body to be 750 characters to apply with RFC 2821)
Could not apply patch! Skipping. The error was: Cannot apply patch https://raw.githubusercontent.com/civicrm/civicrm-core/74e25f27bb3be32519657539afe8a285c6c99a08/tools/scripts/composer/patches/mail_mime_crm_3133.patch
- Applying patches for pear/mail
https://raw.githubusercontent.com/civicrm/civicrm-core/36319938a5bf26c1e7e2110a26a65db6a5979268/tools/scripts/composer/patches/pear-mail.patch (Apply CiviCRM Customisations for CRM-1367 and CRM-5946)
Could not apply patch! Skipping. The error was: Cannot apply patch https://raw.githubusercontent.com/civicrm/civicrm-core/36319938a5bf26c1e7e2110a26a65db6a5979268/tools/scripts/composer/patches/pear-mail.patch
- Applying patches for pear/db
https://raw.githubusercontent.com/civicrm/civicrm-core/a48a43c2b5f6d694fff1cfb99d522c5d9e2459a0/tools/scripts/composer/pear_db_civicrm_changes.patch (Apply CiviCRM Customisations for the pear:db package)
Could not apply patch! Skipping. The error was: Cannot apply patch https://raw.githubusercontent.com/civicrm/civicrm-core/a48a43c2b5f6d694fff1cfb99d522c5d9e2459a0/tools/scripts/composer/pear_db_civicrm_changes.patch
- Applying patches for electrolinux/phpquery
https://raw.githubusercontent.com/civicrm/civicrm-core/fe45bdfc4f3e3d3deb27e3d853cdbc7f616620a9/tools/scripts/composer/patches/php74_array_access_fix_phpquery.patch (PHP7.4 Fix for array access using {} instead of [])
Could not apply patch! Skipping. The error was: Cannot apply patch https://raw.githubusercontent.com/civicrm/civicrm-core/fe45bdfc4f3e3d3deb27e3d853cdbc7f616620a9/tools/scripts/composer/patches/php74_array_access_fix_phpquery.patch
Download extra files for civicrm/civicrm-core
- Downloading civicrm/civicrm-core:angular (5.40.2)
- Installing civicrm/civicrm-core:angular (5.40.2): Extracting archive
- Downloading civicrm/civicrm-core:angular-bootstrap (5.40.2)
- Installing civicrm/civicrm-core:angular-bootstrap (5.40.2): Extracting archive
- Downloading civicrm/civicrm-core:angular-file-upload (5.40.2)
- Installing civicrm/civicrm-core:angular-file-upload (5.40.2): Extracting archive
- Downloading civicrm/civicrm-core:angular-jquery-dialog-service (5.40.2)
- Installing civicrm/civicrm-core:angular-jquery-dialog-service (5.40.2): Extracting archive
- Downloading civicrm/civicrm-core:angular-mocks (5.40.2)
- Installing civicrm/civicrm-core:angular-mocks (5.40.2): Extracting archive
- Downloading civicrm/civicrm-core:angular-route (5.40.2)
- Installing civicrm/civicrm-core:angular-route (5.40.2): Extracting archive
- Downloading civicrm/civicrm-core:angular-sanitize (5.40.2)
- Installing civicrm/civicrm-core:angular-sanitize (5.40.2): Extracting archive
- Downloading civicrm/civicrm-core:angular-ui-sortable (5.40.2)
- Installing civicrm/civicrm-core:angular-ui-sortable (5.40.2): Extracting archive
- Downloading civicrm/civicrm-core:angular-ui-utils (5.40.2)
- Installing civicrm/civicrm-core:angular-ui-utils (5.40.2): Extracting archive
- Downloading civicrm/civicrm-core:angular-unsavedchanges (5.40.2)
- Installing civicrm/civicrm-core:angular-unsavedChanges (5.40.2): Extracting archive
- Downloading civicrm/civicrm-core:angular-xeditable (5.40.2)
- Installing civicrm/civicrm-core:angular-xeditable (5.40.2): Extracting archive
- Downloading civicrm/civicrm-core:checklist-model (5.40.2)
- Installing civicrm/civicrm-core:checklist-model (5.40.2): Extracting archive
- Downloading civicrm/civicrm-core:ckeditor (5.40.2)
- Installing civicrm/civicrm-core:ckeditor (5.40.2): Extracting archive
- Downloading civicrm/civicrm-core:crossfilter-1.3.x (5.40.2)
- Installing civicrm/civicrm-core:crossfilter-1.3.x (5.40.2): Extracting archive
- Downloading civicrm/civicrm-core:crossfilter2 (5.40.2)
- Installing civicrm/civicrm-core:crossfilter2 (5.40.2): Extracting archive
- Downloading civicrm/civicrm-core:css-color-names (5.40.2)
- Installing civicrm/civicrm-core:css-color-names (5.40.2): Extracting archive
- Downloading civicrm/civicrm-core:d3 (5.40.2)
- Installing civicrm/civicrm-core:d3 (5.40.2): Extracting archive
- Downloading civicrm/civicrm-core:d3-3.5.x (5.40.2)
- Installing civicrm/civicrm-core:d3-3.5.x (5.40.2): Extracting archive
- Downloading civicrm/civicrm-core:datatables (5.40.2)
- Installing civicrm/civicrm-core:datatables (5.40.2): Extracting archive
- Downloading civicrm/civicrm-core:dc-2.1.x (5.40.2)
- Installing civicrm/civicrm-core:dc-2.1.x (5.40.2): Extracting archive
- Downloading civicrm/civicrm-core:es6-promise (5.40.2)
- Installing civicrm/civicrm-core:es6-promise (5.40.2): Extracting archive
- Downloading civicrm/civicrm-core:ext-greenwich-bootstrap3 (3.4.1)
- Installing civicrm/civicrm-core:ext-greenwich-bootstrap3 (3.4.1): Extracting archive
- Downloading civicrm/civicrm-core:font-awesome (5.40.2)
- Installing civicrm/civicrm-core:font-awesome (5.40.2): Extracting archive
- Downloading civicrm/civicrm-core:marked (5.40.2)
- Installing civicrm/civicrm-core:marked (5.40.2): Extracting archive
- Downloading civicrm/civicrm-core:monaco-editor (5.40.2)
- Installing civicrm/civicrm-core:monaco-editor (5.40.2): Extracting archive
- Downloading civicrm/civicrm-core:google-code-prettify (5.40.2)
- Installing civicrm/civicrm-core:google-code-prettify (5.40.2): Extracting archive
- Downloading civicrm/civicrm-core:jquery (5.40.2)
- Installing civicrm/civicrm-core:jquery (5.40.2): Extracting archive
- Downloading civicrm/civicrm-core:jquery-ui (5.40.2)
- Installing civicrm/civicrm-core:jquery-ui (5.40.2): Extracting archive
- Downloading civicrm/civicrm-core:jquery-validation (5.40.2)
- Installing civicrm/civicrm-core:jquery-validation (5.40.2): Extracting archive
- Downloading civicrm/civicrm-core:json-formatter (0.7.0)
- Installing civicrm/civicrm-core:json-formatter (0.7.0): Extracting archive
- Downloading civicrm/civicrm-core:jstree (5.40.2)
- Installing civicrm/civicrm-core:jstree (5.40.2): Extracting archive
- Downloading civicrm/civicrm-core:lodash-compat (5.40.2)
- Installing civicrm/civicrm-core:lodash-compat (5.40.2): Extracting archive
- Downloading civicrm/civicrm-core:phantomjs-polyfill (5.40.2)
- Installing civicrm/civicrm-core:phantomjs-polyfill (5.40.2): Extracting archive
- Downloading civicrm/civicrm-core:select2 (5.40.2)
- Installing civicrm/civicrm-core:select2 (5.40.2): Extracting archive
- Downloading civicrm/civicrm-core:js-yaml (5.40.2)
- Installing civicrm/civicrm-core:js-yaml (5.40.2): Extracting archive
- Downloading civicrm/civicrm-core:smartmenus (5.40.2)
- Installing civicrm/civicrm-core:smartmenus (5.40.2): Extracting archive
- Downloading civicrm/civicrm-core:sms-counter (5.40.2)
- Installing civicrm/civicrm-core:sms-counter (5.40.2): Extracting archive
9 package suggestions were added by new dependencies, use `composer suggest` to see details.
Package container-interop/container-interop is abandoned, you should avoid using it. Use psr/container instead.
Package doctrine/reflection is abandoned, you should avoid using it. Use roave/better-reflection instead.
Generating autoload files
- CiviCRM asset map
54 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
The following packages have new compilation tasks:
- civicrm/composer-compile-lib has 1 task
- civicrm/civicrm-core has 1 task
Allow these packages to compile? ([y]es, [a]lways, [n]o, [l]ist, [h]elp) a
Compiling additional files (For full details, use verbose "-v" mode.)
Compile: Generate CCL wrapper functions
Compile: Greenwich CSS (dist/bootstrap3.css)
Sync CiviCRM assets
```
</details>
Is there anything I can do about it? I have tried `composer clear-cache` as suggested in issue [core#2168](https://lab.civicrm.org/dev/core/-/issues/2168#note_50153), but to no avail.https://lab.civicrm.org/dev/drupal/-/issues/92Drupal8 - Solarium/Solarium 5.13 breaks Civicrm2020-10-24T21:12:08ZRar9Drupal8 - Solarium/Solarium 5.13 breaks CivicrmIf Solarium/Solarium 5.13 is used all Drupal 8 breaks
I was forced to apply composer require symfony/event-dispatcher:"4.3.4 as 3.4.99"
But this gives
PHP Fatal error: Uncaught Error: Class 'Symfony\Component\EventDispatcher\Contai...If Solarium/Solarium 5.13 is used all Drupal 8 breaks
I was forced to apply composer require symfony/event-dispatcher:"4.3.4 as 3.4.99"
But this gives
PHP Fatal error: Uncaught Error: Class 'Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher' not found in /var/www/vhosts/XXX/vendor/civicrm/civicrm-core/Civi/Core/CiviEventDispatcher.php:18
![image](/uploads/cfcf9db6c5faf6acecd610b4b2933197/image.png)
If civicrm is disabled site works again.https://lab.civicrm.org/dev/drupal/-/issues/69Drupal8: Problem with user registration confirm email flow2020-09-18T09:50:52ZwannesderoyDrupal8: Problem with user registration confirm email flowIn our Drupal8 & CiviCRM setup we allow visitors to create accounts, with email verification. These users are created by CiviCRM when they sign up for a membership.
We encountered some issues around the registration process: the user wa...In our Drupal8 & CiviCRM setup we allow visitors to create accounts, with email verification. These users are created by CiviCRM when they sign up for a membership.
We encountered some issues around the registration process: the user was denied permission to the password form. And the onetime login link in the mail was always invalid.
In the CRM/Utils/System/Drupal8.php file we changed some of the user registration logic to be the same as the default Drupal 8 way.
1) First issue was that the user account was not set to 1 (active) when $verify_mail_conf was set to true. In default drupal this is the case.
2) Second issue was the user was logged in immediately after sending the verification mails, this should not happen when the verify_mail_conf setting is true. User may only be logged in when checking the mail and following the onetime login link.
[civicrm-core-d8-create-user-fix.patch](/uploads/876064009461686e9ef556adb5ae4676/civicrm-core-d8-create-user-fix.patch)https://lab.civicrm.org/dev/drupal/-/issues/46Search list column sort2019-04-22T18:56:39ZjcisaacSearch list column sortSpecs: **CiviCRM 4.6.37** and **Drupal 7.59**.
When executing a search of contributions, the default sort is by date. If wanting to sort by any other column, it doesn’t work – just reloads the page.Specs: **CiviCRM 4.6.37** and **Drupal 7.59**.
When executing a search of contributions, the default sort is by date. If wanting to sort by any other column, it doesn’t work – just reloads the page.https://lab.civicrm.org/dev/drupal/-/issues/42Drupal8: Can't upload images via CKEditor/kcfinder2019-04-17T15:38:50ZJonGoldDrupal8: Can't upload images via CKEditor/kcfinderTo authenticate, CKEditor calls [CRM_Utils_System::loadBootStrap() followed by CRM_Core_Permission::check()](https://github.com/civicrm/civicrm-packages/blob/master/kcfinder/integration/civicrm.php#L105-L108).
No Drupal8-specific method...To authenticate, CKEditor calls [CRM_Utils_System::loadBootStrap() followed by CRM_Core_Permission::check()](https://github.com/civicrm/civicrm-packages/blob/master/kcfinder/integration/civicrm.php#L105-L108).
No Drupal8-specific method exists, but when I created one, `CRM_Core_Permission_Drupal8::check()` couldn't load the [current user](https://github.com/civicrm/civicrm-core/blob/master/CRM/Core/Permission/Drupal8.php#L61). I assume something is failing in the `loadBootstrap()` call but I can't figure out what it is.
[This SE post](https://drupal.stackexchange.com/questions/196203/how-do-i-check-the-current-user-session) seems to contain details, but I'm not Drupal-savvy enough to interpret it.5.13.0https://lab.civicrm.org/dev/drupal/-/issues/38Drupal8: Can't call CRM_Utils_System::url() from CLI with absolute URL2019-08-23T14:30:53ZJonGoldDrupal8: Can't call CRM_Utils_System::url() from CLI with absolute URLThis is easy to replicate. Run the following command on a D8 site and compare it to a non-D8 site:
```shell
cv ev 'return CRM_Utils_System::url("civicrm", NULL, TRUE)'
```
On D7 etc., you'll get something like:
```
"http://dmaster.local...This is easy to replicate. Run the following command on a D8 site and compare it to a non-D8 site:
```shell
cv ev 'return CRM_Utils_System::url("civicrm", NULL, TRUE)'
```
On D7 etc., you'll get something like:
```
"http://dmaster.localhost/civicrm"
```
On D8, you'll get:
```
"http://:/civicrm"
```
`CRM_Utils_System_Drupal8::url()` calls a [Drupal-specific method](https://github.com/civicrm/civicrm-core/blob/master/CRM/Utils/System/Drupal8.php#L307-L311) to construct the URL. Ultimately, this calls Symfony's [getHost()](https://github.com/symfony/http-foundation/blob/2.8/Request.php#L1202) method, which populates the URL from PHP superglobals which aren't populated when running from CLI.
After digging, I found that there's no way D8 can auto-detect the correct base when run from the CLI, so I'm submitting a PR to pre-set the base when an absolute URL is needed.JonGoldJonGoldhttps://lab.civicrm.org/dev/drupal/-/issues/32Drupal8: Can't add JS resources to footer2018-11-29T06:16:04ZJonGoldDrupal8: Can't add JS resources to footerThis manifests most obviously with Shoreditch - some JS is intended to load in `page-footer` and fails.
This was first documented as CRM-21374(https://github.com/civicrm/civicrm-core/pull/11504#issuecomment-356837051), which was closed ...This manifests most obviously with Shoreditch - some JS is intended to load in `page-footer` and fails.
This was first documented as CRM-21374(https://github.com/civicrm/civicrm-core/pull/11504#issuecomment-356837051), which was closed with a quick fix.
Also related are [civicrm-core#11504](https://github.com/civicrm/civicrm-core/pull/11504) which removes the D8 `addScriptUrl()` function. It seems to be relying on [drupal#504](https://github.com/civicrm/civicrm-drupal/pull/504) to add scripts to the header, but not to the footer.
@dsnopek mentioned [in passing](https://github.com/civicrm/civicrm-core/pull/11504#issuecomment-356837051) that CiviCRM D8 can't yet add resources to the footer.
Fixing this requires an understanding of D8 Services, which I don't have. It seems like the `CivicrmPageState` class needs a different data structure for `$js`. Whether that's a separate `$jsFooter` property or a multidimensional array I'm not sure.https://lab.civicrm.org/dev/drupal/-/issues/30Upgrade failure from CiviCRM 4.6.x to 5.5.x due to Backup and Migrate module ...2019-07-05T10:15:51ZdesiertoUpgrade failure from CiviCRM 4.6.x to 5.5.x due to Backup and Migrate module being enabledI attempted an upgrade from 4.6.38 to 5.5.1 running the database upgrade through Drush. I am on Debian 8. At some point around version 4.7 the upgrade failed. It appears that there were too many connection to the MySQL database server, w...I attempted an upgrade from 4.6.38 to 5.5.1 running the database upgrade through Drush. I am on Debian 8. At some point around version 4.7 the upgrade failed. It appears that there were too many connection to the MySQL database server, which I think is set to the standard 100. After consulting an expert, we found that something with the upgrade process was triggering the Drupal Backup and Migrate module to create too many database connections. After reverting to a backup and trying again with Backup and Migrate disabled the upgrade went relatively smoothly. Error text:
PEAR_Exception: "DB Error: connect failed"
* ERROR TYPE: DB_Error
* ERROR CODE: -24
* ERROR MESSAGE: DB Error: connect failed
* ERROR MODE: 16
* ERROR USERINFO: [nativecode=Too many connections]
* ERROR DEBUGINFO: [nativecode=Too many connections]https://lab.civicrm.org/dev/drupal/-/issues/29After install on Backdrop, I get "Oops! Incorrect CiviCRM version. This insta...2020-11-11T03:14:30ZgippyAfter install on Backdrop, I get "Oops! Incorrect CiviCRM version. This installer can only be used for the Drupal version of CiviCRM"I am installing 5.4.0 into Backdrop 1.10.1. The download file is civicrm-5.4.0-backdrop.tar.gz and when I start to install it shows the correct version in the upper right of the installer. The install completes okay. But when I then get ...I am installing 5.4.0 into Backdrop 1.10.1. The download file is civicrm-5.4.0-backdrop.tar.gz and when I start to install it shows the correct version in the upper right of the installer. The install completes okay. But when I then get "Oops! Incorrect CiviCRM version. This installer can only be used for the Drupal version of CiviCRM."
At that point the Backdrop site no longer bootstraps.
A reply on StackExchange suggested ( https://civicrm.stackexchange.com/questions/26253/ )"I recently got this when i was trying to install drupal and it said 'This installer can only be used for the Backdrop version of CiviCRM'. Clearing up Drupal and CiviCRM caches fixed the problem for me." However that has not resolved the problem.https://lab.civicrm.org/dev/drupal/-/issues/26Double quote (") should not be escaped in CIVICRM_UF_DSN in civicrm.settings.php2020-07-16T17:23:38ZsomnolentsurferDouble quote (") should not be escaped in CIVICRM_UF_DSN in civicrm.settings.phpI'm a complete newbie to both CiviCRM and Drupal, but I've been trying to test out an installation for one of my clients. I completed a fresh, standard installation of Drupal 7, then followed the installation process for CiviCRM in the S...I'm a complete newbie to both CiviCRM and Drupal, but I've been trying to test out an installation for one of my clients. I completed a fresh, standard installation of Drupal 7, then followed the installation process for CiviCRM in the System Administrator Guide.
Once installation was complete, and I had filled in all the details of my database paths and users as requested, I tried to follow the process for setting up scheduled jobs at https://docs.civicrm.org/sysadmin/en/latest/setup/jobs/ using either the CLI or HTTP method.
Whatever I tried, every attempt to run Job.execute resulted in 'DB Error: connect failed'.
With the help of this StackExchange thread (https://civicrm.stackexchange.com/questions/25575/db-error-connect-failed-when-trying-to-call-job-execute-using-cli-php/) I tracked down the logs and discovered that MySQL was rejecting the password of the Drupal database user.
On looking up the password in CIVICRM_UF_DSN in civicrm.settings.php I noticed that a double quote character (") in my password was escaped with a backslash, even though the instructions in the file only say single quote (') or backslash (\) characters should be escaped. Taking the backslash out of the password allowed Job.execute to run as expected.
I had never touched civicrm.settings.php before, so it seems that whichever script had translated the password I entered in the GUI during installation into that file must have erroneously escaped the double quote.https://lab.civicrm.org/dev/drupal/-/issues/20Manual synchronization of CiviCRM memberships and Drupal roles gives error2023-11-09T23:29:43Zcarbar1103Manual synchronization of CiviCRM memberships and Drupal roles gives errorHello.
I am just starting to get memberships and roles sorted out in my CiviCRM. When I go to Home » Administration » Configuration » CiviCRM » CiviMember Roles Sync » Manually Synchronize and click the button, I get a popup saying "Th...Hello.
I am just starting to get memberships and roles sorted out in my CiviCRM. When I go to Home » Administration » Configuration » CiviCRM » CiviMember Roles Sync » Manually Synchronize and click the button, I get a popup saying "There was an error. CiviMember Memberships and Drupal Roles could not be synchronized." The Drupal log just says "unknown error".
On investigation, the problem appears in drupal/modules/civicrm_member_roles/civicrm_member_roles.module, line 530, in the method _civicrm_member_roles_sync():
```
$contacts = CRM_Core_DAO::executeQuery($sql, $params);
if ($contacts->N == 0) {
watchdog('civicrm_member_roles',
$errorMsg,
$errorParams,
WATCHDOG_ERROR
);
return FALSE;
}
```
It is running the following sql:
```
SELECT DISTINCT uf.contact_id, m.end_date FROM civicrm_uf_match uf
LEFT JOIN civicrm_membership m ON uf.contact_id = m.contact_id
WHERE m.id IS NOT NULL AND m.membership_type_id IN (1)
ORDER BY m.end_date DESC
```
which is returning zero rows. This is probably because I haven't got the necessary roles/contacts/etc set up, but it is a bit of an odd error.
Regards,
Carl