Drupal issueshttps://lab.civicrm.org/dev/drupal/-/issues2019-04-17T15:38:50Zhttps://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/72confirmation screen shows internal profile name not public title (reg screen ...2019-08-07T18:07:13ZDLaurysconfirmation screen shows internal profile name not public title (reg screen shows public title)The profile names that appear on the screen when registering for an event don't match between the register screen and the confirmation screen. The register screen uses the 'public title' of the profile, which is great! But then the confi...The profile names that appear on the screen when registering for an event don't match between the register screen and the confirmation screen. The register screen uses the 'public title' of the profile, which is great! But then the confirmation screen shows the internal profile name.5.17.0https://lab.civicrm.org/dev/drupal/-/issues/186drupal 9: Create User Record action crashes if using first+last+email as unsu...2023-07-05T23:49:05ZDaveDdrupal 9: Create User Record action crashes if using first+last+email as unsupervised ruleSee https://civicrm.stackexchange.com/questions/44841/create-user-record-action-on-a-contact-summary-page-throws-error-is-this-a-bug
Putting as regression for now but not completely sure.
Doesn't happen in drupal 7.See https://civicrm.stackexchange.com/questions/44841/create-user-record-action-on-a-contact-summary-page-throws-error-is-this-a-bug
Putting as regression for now but not completely sure.
Doesn't happen in drupal 7.5.63.0https://lab.civicrm.org/dev/drupal/-/issues/179KCFinder on D9: You don't have permissions to browse server.2022-08-12T05:14:07ZSandor SemseyKCFinder on D9: You don't have permissions to browse server.## Overview
The issue is very similar to this one:
https://civicrm.stackexchange.com/questions/41023/cannot-upload-images-using-ckeditor-on-message-template-after-5-45-upgrade
and the proposed workaround is solving it (reverting [this...## Overview
The issue is very similar to this one:
https://civicrm.stackexchange.com/questions/41023/cannot-upload-images-using-ckeditor-on-message-template-after-5-45-upgrade
and the proposed workaround is solving it (reverting [this](https://github.com/civicrm/civicrm-packages/commit/0bb407782b810c32a81e0ad42af67a435b44c845) commit), but I think the root cause is different.
**Steps to reproduce**
1. Use CKEditor4 as Wysiwig Editor
1. Create Event
1. Insert image to description
1. Try to browse, or upload image
1. Error: You don't have permissions to browse server.
## Analysis
In my case classes are found, so it's not namespacing. After some debugging, I think the following happens:
1. In `civicrm/packages/kcfinder/integration/civicrm.php` Drupal is bootstrapped, user authenticated and correct `KCFINDER` params are added to the `$_SESSION` var:
```
$_SESSION['KCFINDER']['disabled'] = false;
$_SESSION['KCFINDER']['uploadURL'] = $config->imageUploadURL;
$_SESSION['KCFINDER']['uploadDir'] = $config->imageUploadDir;
```
1. Then in `\kcfinder\uploader::construct()` session ID is requested from Drupal (`\CRM_Core_Config::singleton()->userSystem->getSessionId()`)
1. Eventually `Drupal\Core\Session\SessionManager::start()` finds no session so starts a new one, thus removing `KCFINDER` array from `$_SESSION`. This way kcfinder defaults are used, which is to disable access.
So I thought it's a cookie issue (though `$_COOKIE` was populated with all the cookies all the way through).
I changed `CRM_Utils_System_Drupal8::loadBootStrap()` to pass cookies to the Symfony request:
```
$request = new \Symfony\Component\HttpFoundation\Request([], [], [], $_COOKIE, [], $_SERVER);
```
This way session was found in step 3 above, it was restored, but it also didn't contained the `KCFINDER` array as `$_SESSION` was overwritten by restoring.
So I'm stuck here, probably I'm missing something obvious, but currently I can't see why should it behave differently.
Has anybody any idea?
**Drupal: 9.3.12**
**Civi: 5.47.4**
## UPDATE
Relevant issues in other repos:
https://lab.civicrm.org/dev/core/-/issues/3419#note_74113
https://lab.civicrm.org/dev/civicrm-asset-plugin/-/issues/45.51.0https://lab.civicrm.org/dev/drupal/-/issues/178Drupal 8 - End of Life2023-05-13T18:45:09ZtottenDrupal 8 - End of LifeDrupal 8 officially went end-of-life in November 2021 (https://www.drupal.org/psa-2021-11-30). The focus of this issue is to gauge sentiment about (and identify tasks for) ending CiviCRM's Drupal 8.x support.
(_Note: This issue has no i...Drupal 8 officially went end-of-life in November 2021 (https://www.drupal.org/psa-2021-11-30). The focus of this issue is to gauge sentiment about (and identify tasks for) ending CiviCRM's Drupal 8.x support.
(_Note: This issue has no impact on CiviCRM's support for Drupal 7 or Drupal 9 -- both continue to be supported by `drupal.org` and `civicrm.org`._)
Rationale
----------
@DaveD [made the case on Github](https://github.com/civicrm/civicrm-core/pull/23302#discussion_r858700890) as follows
> * There's the 3 reasons already mentioned:
> * Has been EOL for 6 months
> * No security updates.
> * And there have been recent drupal security fixes which would have helped prompt people to move off 8 if they were still on it.
> * Civi works equally as well on 9 as on 8
> * There's support for dropping it in chat, with nobody dissenting: https://chat.civicrm.org/civicrm/pl/qh6t761dt7gsdyp78m6stbmpwo
> * Drupal 8 to 9 is _very_ different than 6 to 7. Drupal 9 is identical to drupal 8.9 except for some deprecated functions. It's not much different than if they had called it 8.10.
> * There were many blog posts about this on the internet, about how easy it would be to upgrade compared to other jumps.
> * There was plenty of awareness ahead of time in the drupal world that drupal 8 would be unsupported.
> * From May 2021 to November 2021, the only updates for drupal 8.9.x were security updates, with repeated notices that 8 was becoming EOL.
> * There was a module available that was pretty good about pointing out what if anything you needed to change.
> * There is no CIVICRM_UF=Drupal9, because it's not needed.
I would add two more items in favor of dropping D8:
* ___Drupal 10 Support___: Preserving D8 may make it harder to add D10. While most changes can be bridged to support 2 versions major (eg D8+D9 or D9+D10), it gets more complicated with 3 major versions (D8+D9+D10). We've encountered at least one issue (involving changes in Symfony Dispatcher / PSR-14) that gets prickly with 3 major versions.
* ___Pingbacks___: There are only ~30 Civi deployments still reporting Drupal 8.x. They represent <1% of Civi-Drupal deployments.
* Note: This is based on directly examining pingbacks from 2022 -- and only counting sites with multiple pingbacks (e.g. to exclude most ephemeral test-sites). The data on `stats.civicrm.org` is confusing in this regard, because Drupal 8.x and Drupal 9.x are lumped together with UF `Drupal8`. My comments are based on examining actual version-numbers and not just UF name.
Tasks
-----
There are a few tasks to do as follow-up:
* Update installation guide
* Remove Drupal 8.x from test infra
Suggested Emojis
----------------
Please do register a quick reaction on D8 EOL. Some suggested emojis:
* :rocket: - Remove Drupal 8 compatibility at the soonest convenience.
* :turtle: - Remove Drupal 8 compatibility... just not quite yet. (Keep it until 5.51 ESR).
* :shield: - Protect Drupal 8 compatibility for a longer period of time.
* :bangbang: - Extra importance modifier. (Add this if the sentiment on the first emoji is strong - eg if you will be significantly impacted by the issue.)
(Flag whichever is the soonest that you think is appropriate/acceptable.)
(Example: If you maintain a site that's been held back on D8 because of some complicated issue and cannot resolve it in the near future, then you could say ":shield: :bangbang:".)
(You may see `totten` on all emojis for a while, since I put them in as placeholders.)https://lab.civicrm.org/dev/drupal/-/issues/176Epic: Drupal 10 readiness2023-08-19T00:44:33ZDaveDEpic: Drupal 10 readinessLab snippet with a full set of instructions on how to scrape and claw a drupal 10+civi install into existence:
https://lab.civicrm.org/-/snippets/84
- [ ] Requires php 8.1 https://lab.civicrm.org/dev/core/-/issues/3181
- [x] Requires s...Lab snippet with a full set of instructions on how to scrape and claw a drupal 10+civi install into existence:
https://lab.civicrm.org/-/snippets/84
- [ ] Requires php 8.1 https://lab.civicrm.org/dev/core/-/issues/3181
- [x] Requires symfony 6 (this currently prevents even downloading the civi files even if you try really hard) https://lab.civicrm.org/dev/core/-/issues/2316 / PR https://github.com/civicrm/civicrm-core/pull/24132
- [x] Hooks defined by getSubscribedEvents don't work: https://lab.civicrm.org/dev/core/-/issues/3802
- [x] Composer-compile-lib [restricts to symfony 5](https://github.com/civicrm/composer-compile-lib/blob/a03d219bc4bad5aa878e198719b83178a910984b/composer.json#L26) / PR https://github.com/civicrm/composer-compile-lib/pull/5
- [x] Miscellaneous other composer.json updates - see the lab snippet above.
- [x] Why does cache/integration-tests need to be in a prod install? Can it be in require-dev instead? PR: https://github.com/civicrm/civicrm-core/pull/25054
- [x] https://github.com/civicrm/civicrm-core/pull/25499 covers these:
- [x] symfony/config
- [x] symfony/dependency-injection
- [x] symfony/event-dispatcher
- [x] symfony/filesystem
- [x] symfony/process
- [x] symfony/var-dumper
- [x] symfony/service-contracts
- [x] symfony/finder
- [x] psr/container
- [x] cv uses some deprecated symfony [in bootstrap](https://github.com/civicrm/cv/issues/117) / PR: https://github.com/civicrm/cv/pull/120
- [x] Followup fix because the attempt to keep supporting drupal 8 doesn't work with drupal 10: https://github.com/civicrm/cv/pull/126
- [x] core loadBoostrap(), needed e.g. for `cv`. https://github.com/civicrm/civicrm-core/pull/24133
- [x] similarly CRM_Utils_System_Drupal8 - https://github.com/civicrm/civicrm-core/pull/23302
- [x] financialacls core extension: https://lab.civicrm.org/dev/core/-/issues/3184
- [x] Requires guzzle 7 (I think this is easy) https://lab.civicrm.org/dev/drupal/-/issues/171 / PR: https://github.com/civicrm/civicrm-core/pull/22918
- [x] Requires psr/log 2.0. PR: https://github.com/civicrm/civicrm-core/pull/23409
- [x] Deprecation prevents civicrm-setup from running (already PR'd): https://github.com/civicrm/civicrm-core/pull/21809 / https://lab.civicrm.org/dev/drupal/-/issues/167
- [x] civicrm-drupal-8 won't enable because it doesn't [declare it is compatible](https://github.com/civicrm/civicrm-drupal-8/blob/b55fb5027c453ce86f76f357a3087e19a3bb4d41/civicrm.info.yml#L5)
- PR: https://github.com/civicrm/civicrm-drupal-8/pull/73
- [x] civicrm-drupal-8 civicrmtheme submodule won't enable because it doesn't [declare it is compatible](https://github.com/civicrm/civicrm-drupal-8/blob/b55fb5027c453ce86f76f357a3087e19a3bb4d41/modules/civicrmtheme/civicrmtheme.info.yml#L5)
- PR: https://github.com/civicrm/civicrm-drupal-8/pull/73
- [ ] For running unit tests:
- [ ] phpunit9 support: https://github.com/civicrm/civicrm-core/compare/master...demeritcowboy:civicrm-core:phpunit9?expand=1 along with `composer require yoast/phpunit-polyfills`
- [x] deprecated theme for mink tests: https://github.com/civicrm/civicrm-drupal-8/pull/76
- [ ] Possibly move this file to a community-maintained drupal module? It needs to be in a drupal module. Not much uses it currently - civicrm_entity and 2 extensions.
Timewise it would be cool to have something at least installable for Drupalcon (Apr 25).
cc: @KarinG @jackrabbithanna5.60.0https://lab.civicrm.org/dev/drupal/-/issues/174Change message so it doesn't say Drupal8 on Drupal9 site2022-09-20T22:27:16ZJoeMurrayChange message so it doesn't say Drupal8 on Drupal9 siteThere was a message today on page for Synchronize Users to Contacts (/civicrm/admin/synchuser:
Synchronize Drupal8 Users
This was on a Drupal9 site, and the client got concerned about what they were running.
Please adjust the message s...There was a message today on page for Synchronize Users to Contacts (/civicrm/admin/synchuser:
Synchronize Drupal8 Users
This was on a Drupal9 site, and the client got concerned about what they were running.
Please adjust the message so that it either refers to just Drupal or ideally emits the correct major version of Drupal, eg Drupal9, Drupal10, etc.5.55.0Monish DebMonish Debhttps://lab.civicrm.org/dev/drupal/-/issues/172Deprecated function drupal_get_installed_schema_version() in 9.3, but with a ...2022-01-02T15:47:07ZDaveDDeprecated function drupal_get_installed_schema_version() in 9.3, but with a twistdrupal_get_installed_schema_version() is deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal\Core\Update\UpdateHookRegistry::getInstalledVersion() or \Drupal\Core\Update\UpdateHookRegistry::getAllInstalledVersions()...drupal_get_installed_schema_version() is deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal\Core\Update\UpdateHookRegistry::getInstalledVersion() or \Drupal\Core\Update\UpdateHookRegistry::getAllInstalledVersions() instead. See https://www.drupal.org/node/2444417
This is in vendor\civicrm\civicrm-core\CRM/Utils/System/Drupal8.php:
```
public function getModules() {
$modules = [];
$module_data = \Drupal::service('extension.list.module')->reset()->getList();
foreach ($module_data as $module_name => $extension) {
if (!isset($extension->info['hidden']) && $extension->origin != 'core') {
$extension->schema_version = drupal_get_installed_schema_version($module_name);
$modules[] = new CRM_Core_Module('drupal.' . $module_name, ($extension->status == 1));
}
}
return $modules;
}
```
The reason I haven't just put up a simple replacement PR is because if you look at the above function you'll notice schema_version is never used. If you look at the docblock in Base.php it says "List modules installed in the CMS, _including enabled and disabled ones_." Looking at the drupal 7 version (in DrupalBase.php), it does this:
`'SELECT name, status FROM {system} WHERE type = \'module\' AND schema_version <> -1'`
which means only the modules that are installed (but possibly disabled - that's what status is). Now in drupal 8 there is no concept of disabled, it's either installed or uninstalled, but the drupal 8 code is including all of them. In drupal 8 $extension->status means installed or uninstalled.
So two options are:
1. Try to match the drupal 7 implementation/docblock, which means excluding it if $extension->status is 0, and always passing 1 as the second parameter to CRM_Core_Module(), because disabled doesn't mean anything in drupal 8.
2. Leave it the way it is and just remove the unused line about schema_version.
Trying to track down where this gets used, it seems it's mostly in ManagedEntities, which I usually stay away from, and I'm not even sure why ManagedEntities would be dealing with drupal modules other than civicrm itself.
So I'm tempted to stop thinking about it and do item 2.5.46.0https://lab.civicrm.org/dev/drupal/-/issues/171Drupal 10 requires Guzzle 72022-07-10T15:27:07ZDaveDDrupal 10 requires Guzzle 7It doesn't seem like there is any major change but I'm not super-familiar with everywhere civi uses guzzle: https://github.com/guzzle/guzzle/blob/master/UPGRADING.md#other-backwards-compatibility-breaking-changes
The main thing at the m...It doesn't seem like there is any major change but I'm not super-familiar with everywhere civi uses guzzle: https://github.com/guzzle/guzzle/blob/master/UPGRADING.md#other-backwards-compatibility-breaking-changes
The main thing at the moment is you need to do something like `composer require guzzlehttp/guzzle:"6.3.0 as 7.4.0"` just to get the civi files downloaded, but that's obviously not the right thing to do.5.52.0https://lab.civicrm.org/dev/drupal/-/issues/169"Your browser session has expired and we are unable to complete your form sub...2022-03-16T00:19:54ZJonGold"Your browser session has expired and we are unable to complete your form submission" on all D9.2 anonymous sessions### Overview
This is an expensive bug, so I'm reporting it even though I don't have complete information.
On all D9.2 sites, anonymous users whose first visit to a CiviCRM page is a contribution or event registration page, will receive ...### Overview
This is an expensive bug, so I'm reporting it even though I don't have complete information.
On all D9.2 sites, anonymous users whose first visit to a CiviCRM page is a contribution or event registration page, will receive the error "Your browser session has expired and we are unable to complete your form submission" on submission. If they resubmit the page it will go through.
### Steps to Replicate
* Install a fresh D8 buildkit site.
* Upgrade to D9.2.0 or higher.
* Open an incognito window and paste in the URL to an event/contribution page (easiest to test if it's a free event with a confirmation page).
* Submit the page. See the error.
### Analysis
I'm still tracking this down and I don't really know the Civi session manager well - but on initial page load, `CRM_Core_Key::sessionID()` returns an empty string. On submitting the form, it finds a session ID correctly, so in `CRM_Core_Key::validate()` the expected key doesn't match the actual key.
While debugging, it's good to note that you can `composer update` to switch between D9.1.3 and D9.2.8 to switch between unbugged and bugged behavior.
It looks like this is the cause:
https://www.drupal.org/node/30063065.43.2https://lab.civicrm.org/dev/drupal/-/issues/168Notice: Undefined variable: custom_link in civicrm_handler_field_link_contact...2022-12-01T01:13:06ZAndrew WassonNotice: Undefined variable: custom_link in civicrm_handler_field_link_contact->render_link() (line 118 of civicrm/drupal/modules/views/civicrm/civicrm_handler_field_link_contact.inc).Hi Guys,
It's been a while (years) since I've contributed in the issue queue so I'm a little rusty.
This is just an annoyance where CiviCRM tries to render the Contact Link in a view for visitors who don't have the permissions to see i...Hi Guys,
It's been a while (years) since I've contributed in the issue queue so I'm a little rusty.
This is just an annoyance where CiviCRM tries to render the Contact Link in a view for visitors who don't have the permissions to see it. The result is a PHP Warning:
```Notice: Undefined variable: custom_link in civicrm_handler_field_link_contact->render_link() (line 118 of /sites/all/modules/civicrm/drupal/modules/views/civicrm/civicrm_handler_field_link_contact.inc).```
In order to squelch the notice I've added a conditional isset($custom_link). I can't see any adverse consequences from adding it and I'll be happy to make a patch if someone can point me in the direction of some docs for doing so.
Cheers,
Andrew5.57.0https://lab.civicrm.org/dev/drupal/-/issues/167Drupal service 'site.path' is deprecated in drupal 9 and will be removed in d...2022-06-11T19:26:30ZDaveDDrupal service 'site.path' is deprecated in drupal 9 and will be removed in drupal 10In https://github.com/civicrm/civicrm-core/blob/master/setup/src/Setup/DrupalUtil.php#L23 it calls `\Drupal::service('site.path');`.
But I'm wondering why that function getDrupalSiteDir() even exists and why it's not part of CRM_Utils_S...In https://github.com/civicrm/civicrm-core/blob/master/setup/src/Setup/DrupalUtil.php#L23 it calls `\Drupal::service('site.path');`.
But I'm wondering why that function getDrupalSiteDir() even exists and why it's not part of CRM_Utils_System_X. Maybe a timing issue since civi isn't installed yet at that point?
Anyway the relevant drupal issue is https://www.drupal.org/project/drupal/issues/3074585#comment-13220446.
Because of the (bleep) `@trigger_error` usage that drupal uses though it only comes up when running unit tests in drupal's own testing environment (until drupal 10 when it will hard fail, effectively nulling the effect of outputting a deprecation for most people).5.52.0https://lab.civicrm.org/dev/drupal/-/issues/166Drupal function ip_address no longer exists after D72021-09-22T13:02:47ZAlanDixonDrupal function ip_address no longer exists after D7There are times where CiviCRM likes to know who it's talking to, i.e. the ip address of the visitor.
This matters especially when it gets passed on to a payment processor.
Here's a utility function that does that: https://github.com/ci...There are times where CiviCRM likes to know who it's talking to, i.e. the ip address of the visitor.
This matters especially when it gets passed on to a payment processor.
Here's a utility function that does that: https://github.com/civicrm/civicrm-core/blob/b599743f3daa46ab96c09ebe410fbb833cdd080f/CRM/Utils/System.php#L1293
This code is fairly naive, but makes use of the fact that Drupal 7 (and earlier) that had a function ip_address that would pay attention to the drupal configuration to be able to deal with front end proxies (like Varnish/hitch).
Unfortunately, D8/9 no longer includes this function, as also noted in this issue for iATS payments.
https://github.com/iATSPayments/com.iatspayments.civicrm/issues/370
Should we continue to provide spaghetti/cms-specific support for front end proxy confusion here? Are there better ways of doing this?https://lab.civicrm.org/dev/drupal/-/issues/163Session erroneously getting set to NULL on Drupal user login2021-11-11T23:32:18ZsteveplatzSession erroneously getting set to NULL on Drupal user loginAnonymous sessions may contain data that needs to be retained after login, for example commerce cart data. In the initialize() method of the core session class civicrm/civicrm-core/CRM/Core/Session.php, there is a check for a changed ses...Anonymous sessions may contain data that needs to be retained after login, for example commerce cart data. In the initialize() method of the core session class civicrm/civicrm-core/CRM/Core/Session.php, there is a check for a changed session id, which if it evaluates to TRUE will set a current session with data to NULL.
```php
// remove $_SESSION reference if session is changed
if (($sid = session_id()) !== $this->sessionID) {
$this->_session = NULL;
$this->sessionID = $sid;
}
```
I've tested this with Drupal 9.2.4 CiviCRM 5.35 and Drupal Commerce 2.26. This specific change was added in https://lab.civicrm.org/dev/drupal/-/issues/98 for Drupal 7.5.43.0https://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/161Syntax errors when loading sample data2022-03-16T00:25:22ZjotamartosSyntax errors when loading sample dataI'm getting the following error when enabling the sample data during the installation of CiviCRM 5.39.0
```
Cannot execute INSERT INTO `civicrm_acl` (`id`, `name`, `deny`, `entity_table`, `entity_id`, `operation`, `object_table`, `objec...I'm getting the following error when enabling the sample data during the installation of CiviCRM 5.39.0
```
Cannot execute INSERT INTO `civicrm_acl` (`id`, `name`, `deny`, `entity_table`, `entity_id`, `operation`, `object_table`, `object_id`, `acl_table`, `acl_id`, `is_active`) VALUES: DB Error: syntax error
```
I got this error when using the browser and when using the console and the curl command
```
curl --data-urlencode "civicrm_install_type=drupal" --data-urlencode "go=" --data-urlencode "seedLanguage=en_US" --data-urlencode "database=MySQLDatabase" --data-urlencode "mysql[server]=127.0.0.1:3306" --data-urlencode "mysql[database]=civicrm_database" --data-urlencode "mysql[username]=civicrm_user" --data-urlencode "mysql[password]=PASSWORD" --data-urlencode "drupal[server]=127.0.0.1:3306" --data-urlencode "drupal[database]=drupal_database" --data-urlencode "drupal[username]=drupal_user" --data-urlencode "drupal[password]=PASSWORD" --data-urlencode "loadGenerated=1" -H "Content-Type: application/x-www-form-urlencoded" http://127.0.0.1:80/modules/contrib/civicrm/install/index.php
```
Please note that the last parameter (--data-urlencode "loadGenerated=1") is the one that enables the sample data. If I do not include/enable it, the installation works properly.
**Environment:**
CiviCRM 5.39.0
Drupal 7.81.0
PHP 7.3.29
Let me know if you need more info.
Thanks5.40.0https://lab.civicrm.org/dev/drupal/-/issues/159Deprecated notice for pcpStatus (Personal Campaign Pages)2024-03-13T19:06:44ZPradeep Nayakpradpnayak@gmail.comDeprecated notice for pcpStatus (Personal Campaign Pages)```
CRM_Contribute_PseudoConstant::pcpStatus, use Function pcpStatus will
be removed.
Array
(
[civi.tag] => deprecated
)
CRM_Contribute_PseudoConstant::pcpStatus, use Function pcpStatus will
be removed.
Array
(
[civi.tag] => dep...```
CRM_Contribute_PseudoConstant::pcpStatus, use Function pcpStatus will
be removed.
Array
(
[civi.tag] => deprecated
)
CRM_Contribute_PseudoConstant::pcpStatus, use Function pcpStatus will
be removed.
Array
(
[civi.tag] => deprecated
)
```
We get this notice logged [from Views CiviCRM integration code](https://github.com/civicrm/civicrm-drupal/blob/7.x-master/modules/views/components/civicrm.contribute.inc#L1228).https://lab.civicrm.org/dev/drupal/-/issues/157Drupal 9 installation errors2021-03-11T21:48:29ZsadashivDrupal 9 installation errorsAs per the documentation at https://docs.civicrm.org/installation/en/latest/drupal8/ we need a clean drupal 8 or 9 and we can do a composer install.
Steps to replicate:
1) Download composer.json and composer.lock from https://github.com...As per the documentation at https://docs.civicrm.org/installation/en/latest/drupal8/ we need a clean drupal 8 or 9 and we can do a composer install.
Steps to replicate:
1) Download composer.json and composer.lock from https://github.com/drupal/recommended-project/tree/9.1.x this gives latest drupal 9 dev and do a composer install or download and install drupal. Now we have a clean drupal 9.1 installed
2) cd /var/www/d8.example.org
3) composer config extra.enable-patching true
4) composer require civicrm/civicrm-asset-plugin:'~1.1'
5) composer require civicrm/civicrm-{core,packages,drupal-8}
Steps 2 to 5 are from the documentation.
Expected result: Civicrm packages are installed
Observed result:
````
Using version ^5.34 for civicrm/civicrm-core
Using version ^5.34 for civicrm/civicrm-packages
Using version ^5.34 for civicrm/civicrm-drupal-8
./composer.json has been updated
Running composer update civicrm/civicrm-core civicrm/civicrm-packages civicrm/civicrm-drupal-8
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires civicrm/civicrm-core ^5.34 -> satisfiable by civicrm/civicrm-core[5.34.0].
- civicrm/civicrm-core 5.34.0 requires pear/validate_finance_creditcard dev-master -> found pear/validate_finance_creditcard[dev-master] but it does not match your minimum-stability.
Problem 2
- civicrm/civicrm-core 5.34.0 requires pear/validate_finance_creditcard dev-master -> found pear/validate_finance_creditcard[dev-master] but it does not match your minimum-stability.
- civicrm/civicrm-drupal-8 5.34.0 requires civicrm/civicrm-core >=5.21.0 -> satisfiable by civicrm/civicrm-core[5.34.0].
- Root composer.json requires civicrm/civicrm-drupal-8 ^5.34 -> satisfiable by civicrm/civicrm-drupal-8[5.34.0].
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
`````
I think setting proper version for validate_finance_creditcard instead of dev-master in the composer.json file of civicrm should fix it, but as it is composer install I can't test this.
Environment details:
php: 7.4 (I know this is not completely supported but installation should go through)
mysql: 5.7
Operating system: Tried on Ubuntu and Centos.
composer version: 2.0.8
Am I missing something in the installation?
Thanks,
Sadashiv.https://lab.civicrm.org/dev/drupal/-/issues/154Proposal - fix for How do I add CiviCRM Activity attachment to View2021-02-04T19:20:09ZeileenProposal - fix for How do I add CiviCRM Activity attachment to ViewI'm adding this gitlab to track https://github.com/civicrm/civicrm-drupal/pull/382 which I'm going to close as it stagnated 4 years agoI'm adding this gitlab to track https://github.com/civicrm/civicrm-drupal/pull/382 which I'm going to close as it stagnated 4 years agohttps://lab.civicrm.org/dev/drupal/-/issues/153Drupal 8 profile validation not finding the right profile when validating sub...2023-02-15T06:04:10ZDaveDDrupal 8 profile validation not finding the right profile when validating submission on CMS user tabsIn drupal 8/9, like in drupal 7, the CMS user record by default has the Name and Address profile available for editing on the CMS side. As noted in passing at https://lab.civicrm.org/dev/drupal/-/issues/117#note_40124 the validation for ...In drupal 8/9, like in drupal 7, the CMS user record by default has the Name and Address profile available for editing on the CMS side. As noted in passing at https://lab.civicrm.org/dev/drupal/-/issues/117#note_40124 the validation for this form isn't working fully in drupal 8/9.
It appears to be a name vs label problem. The drupal 8 implementation uses the label to look up the profile. I have a quickie fix below but am mulling it over a bit since there's a lot of other things wrong with this form, e.g.
* https://lab.civicrm.org/dev/drupal/-/issues/113
* https://lab.civicrm.org/dev/drupal/-/issues/117
* https://lab.civicrm.org/dev/core/-/issues/2301
```diff
index 37e7ead..b18bb04 100644
--- a/src/Form/UserProfile.php
+++ b/src/Form/UserProfile.php
@@ -75,7 +75,12 @@ class UserProfile extends FormBase {
$this->profile = $profile;
// Search for the profile form, otherwise generate a 404.
- $uf_groups = \CRM_Core_BAO_UFGroup::getModuleUFGroup('User Account');
+ $uf_groups = \CRM_Core_BAO_UFGroup::getModuleUFGroup('User Account', 0, TRUE, \CRM_Core_Permission::VIEW, array(
+ 'id',
+ 'name',
+ 'title',
+ 'is_active',
+ ));
if (empty($uf_groups[$profile])) {
throw new ResourceNotFoundException();
}
@@ -109,7 +114,7 @@ class UserProfile extends FormBase {
* {@inheritdoc}
*/
public function validateForm(array &$form, FormStateInterface $form_state) {
- $errors = \CRM_Core_BAO_UFGroup::isValid($this->contactId, $this->ufGroup['title']);
+ $errors = \CRM_Core_BAO_UFGroup::isValid($this->contactId, $this->ufGroup['name']);
if (is_array($errors)) {
foreach ($errors as $name => $error) {
```
Relatedly, this seems an odd return value if it couldn't find the profile. Shouldn't it return an error?
https://github.com/civicrm/civicrm-core/blob/a7b9631b60548092f8c3056c375dd4b81606dbd4/CRM/Core/BAO/UFGroup.php#L785
FYI @alandixon @spalmstrom5.59.0