Drupal issueshttps://lab.civicrm.org/dev/drupal/-/issues2019-04-24T06:50:11Zhttps://lab.civicrm.org/dev/drupal/-/issues/58Add Contact ID operator to the contact reference filter added in drupal view2019-04-24T06:50:11ZjitendraAdd Contact ID operator to the contact reference filter added in drupal viewContact Reference filter in a Drupal view only lets user to filter on sort_name. This field can have duplicate values on multiple contact records. It might be helpful if we could filter the results based on contact id.
Use-case
- Add a...Contact Reference filter in a Drupal view only lets user to filter on sort_name. This field can have duplicate values on multiple contact records. It might be helpful if we could filter the results based on contact id.
Use-case
- Add a contact ref custom field on a custom set extending individual. Eg `Alternate Contact Person`
- Add value to this field eg "Ashlie Adams".
- Suppose the db have more than one contact having the same sort name. eg id 203 and 206
- I need to create a Drupal view filtering values which have `Alternate Contact Person` set to contact id 203.
- The current set of filters will list all contacts for 203 and 206.
- This ticket is to address that limitation.jitendrajitendrahttps://lab.civicrm.org/dev/drupal/-/issues/86Group Role sync not mapping users but duplicating users2019-09-13T07:05:05ZacaselliGroup Role sync not mapping users but duplicating usersHi,
The group role sync module doesn't seem to work properly anymore. When I create a new user and I log in for the first time, instead of mapping the Drupal user id with the civicrm user id, the module maps the drupal user id to a new ...Hi,
The group role sync module doesn't seem to work properly anymore. When I create a new user and I log in for the first time, instead of mapping the Drupal user id with the civicrm user id, the module maps the drupal user id to a new user that has everything blank apart from the email.
I checked in the database, and in the table uf_match to confirm and here is (I think) what the module does.
When a user logs in, the checking of the existing user doesn't work anymore, so a new user is created with only the email field and that new user civicrm id is mapped with the drupal id in the uf_match table.
This is causing a lot of problems in our website. I updated to the latest version, 5.17.3 but that didn't fix it either. I noticed this error since version 5.11https://lab.civicrm.org/dev/drupal/-/issues/81Drupal8: Large export results in logout2019-11-03T16:19:27ZJonGoldDrupal8: Large export results in logoutWhen you attempt a large export of CiviCRM data (~63K contacts, ~15 columns), Symfony kills the session. This is relatively recent behavior (didn't happen in April, for instance). Here are the watchdog logs:
Here are those stack traces,...When you attempt a large export of CiviCRM data (~63K contacts, ~15 columns), Symfony kills the session. This is relatively recent behavior (didn't happen in April, for instance). Here are the watchdog logs:
Here are those stack traces, more readable:
```
Warning: session_start(): Failed to decode session object. Session has been destroyed in Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start() (line 149 of /var/www/crm.agbu.org/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php)
#0 /var/www/crm.agbu.org/web/core/includes/bootstrap.inc(587): _drupal_error_handler_real(2, 'session_start()...', '/var/www/crm.ag...', 149, Array)
#1 [internal function]: _drupal_error_handler(2, 'session_start()...', '/var/www/crm.ag...', 149, Array)
#2 /var/www/crm.agbu.org/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php(149): session_start()
#3 /var/www/crm.agbu.org/web/core/lib/Drupal/Core/Session/SessionManager.php(164): Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start()
#4 /var/www/crm.agbu.org/web/core/lib/Drupal/Core/Session/SessionManager.php(118): Drupal\Core\Session\SessionManager->startNow()
#5 /var/www/crm.agbu.org/vendor/symfony/http-foundation/Session/Session.php(57): Drupal\Core\Session\SessionManager->start()
#6 /var/www/crm.agbu.org/web/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Symfony\Component\HttpFoundation\Session\Session->start()
#7 /var/www/crm.agbu.org/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#8 /var/www/crm.agbu.org/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#9 /var/www/crm.agbu.org/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#10 /var/www/crm.agbu.org/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#11 /var/www/crm.agbu.org/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#12 /var/www/crm.agbu.org/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#13 /var/www/crm.agbu.org/web/core/lib/Drupal/Core/DrupalKernel.php(693): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#14 /var/www/crm.agbu.org/web/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#15 {main}.
```
```
RuntimeException: Failed to start the session in Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start() (line 150 of /var/www/crm.agbu.org/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php)
#0 /var/www/crm.agbu.org/web/core/lib/Drupal/Core/Session/SessionManager.php(164): Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start()
#1 /var/www/crm.agbu.org/web/core/lib/Drupal/Core/Session/SessionManager.php(118): Drupal\Core\Session\SessionManager->startNow()
#2 /var/www/crm.agbu.org/vendor/symfony/http-foundation/Session/Session.php(57): Drupal\Core\Session\SessionManager->start()
#3 /var/www/crm.agbu.org/web/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Symfony\Component\HttpFoundation\Session\Session->start()
#4 /var/www/crm.agbu.org/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#5 /var/www/crm.agbu.org/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#6 /var/www/crm.agbu.org/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#7 /var/www/crm.agbu.org/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#8 /var/www/crm.agbu.org/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#9 /var/www/crm.agbu.org/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#10 /var/www/crm.agbu.org/web/core/lib/Drupal/Core/DrupalKernel.php(693): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#11 /var/www/crm.agbu.org/web/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#12 {main}.
```
The first issue is a warning that the session is too large, and so it destroys the session (which causes a logout). The second issue is of "error" severity saying the session can't be found.
Here's someone else having a similar issue in Symfony (not Drupal8): https://github.com/symfony/symfony/issues/26623tottentottenhttps://lab.civicrm.org/dev/drupal/-/issues/101Error cancelling Drupal user2020-01-06T21:44:57ZedvanleeuwenError cancelling Drupal userWhen I cancel a Drupal user account, I get a non-descriptive error and cancellation has not been done. Doing this a second time does cancel the user, but the user relation is still visible in Civi because the entry in civicrm_uf_match is...When I cancel a Drupal user account, I get a non-descriptive error and cancellation has not been done. Doing this a second time does cancel the user, but the user relation is still visible in Civi because the entry in civicrm_uf_match is not removed.
Using Drupal 7.67 and CiviCRM 5.20.2.https://lab.civicrm.org/dev/drupal/-/issues/104Drupal8 + Plesk: User path missing from cmsRootPath()2020-01-15T06:04:53ZRar9Drupal8 + Plesk: User path missing from cmsRootPath()The cmsRootPath() is not able to get absolute path, specifically the user folder portion of the path on Plesk.
This might be caused by multisite setup, function being insufficient or permission.
To fix CRON for plesk the following nee...The cmsRootPath() is not able to get absolute path, specifically the user folder portion of the path on Plesk.
This might be caused by multisite setup, function being insufficient or permission.
To fix CRON for plesk the following needs to be changed
vendor/civicrm/civicrm-core/CRM/Utils/System/Drupal8.php at line 441:
```diff
-return $civicrm_paths['cms.root']['path'];
+return realpath($_SERVER["DOCUMENT_ROOT"]) . '/'.array_slice(explode('/', $civicrm_paths['cms.root']['path']), -1)[0];
```
The cause is that in Plesk all files and directories under a domain document root directory should belong to psacln group and to the sysuser user. Where sysuser is a user of a corresponding subscription.
CIVICRM Cron only expects a chown -R www-data|psaserv .
The way to set correct permission is a correct way to fix the issue for subdomain.
This is described in the article above in step 3. https://support.plesk.com/hc/en-us/articles/115004094934https://lab.civicrm.org/dev/drupal/-/issues/97Status report update for Drupal (similar to what was done for Backdrop)2020-01-29T14:53:02ZlarynStatus report update for Drupal (similar to what was done for Backdrop)I wrote a PR for Backdrop some time back and have been meaning to check if it would be desired for Drupal 7 as well -- if so I would be happy to base a MR here off of what I did there. Here's a visual of how it looks in Backdrop's Status...I wrote a PR for Backdrop some time back and have been meaning to check if it would be desired for Drupal 7 as well -- if so I would be happy to base a MR here off of what I did there. Here's a visual of how it looks in Backdrop's Status Report page (Drupal 7 status report would obviously look a little different):
![Screen_Shot_2019-12-04_at_7.10.28_PM](/uploads/0a83d103f2aec9652797d3ce71c41345/Screen_Shot_2019-12-04_at_7.10.28_PM.jpg)
Would a version of this for Drupal 7 be accepted?https://lab.civicrm.org/dev/drupal/-/issues/109OG_Sync gives fatal error if User is Anonymous2020-03-16T07:37:34ZTony Maynard-SmithOG_Sync gives fatal error if User is AnonymousWhen creating or updating an Organic Group page, if the Author is set to Anonymous or left blank, the OG_Sync module throws a Fatal Error. This can be seen as line 224 of the civicrm_og_sync.module file in the attached backtrace.
Anonym...When creating or updating an Organic Group page, if the Author is set to Anonymous or left blank, the OG_Sync module throws a Fatal Error. This can be seen as line 224 of the civicrm_og_sync.module file in the attached backtrace.
Anonymous is a valid entry for Author on the Drupal form, and should not throw this error. We have a number of occurrences of this where the Group Page has been converted from a previous normal page not using OG, and the original Author had been deleted or otherwise set to Anonymous.
![OG_Sync_error](/uploads/d1c254caa0e18bb4370186657cf1c556/OG_Sync_error.png)https://lab.civicrm.org/dev/drupal/-/issues/111Multiple jquery errors after upgrading to Drupal 8.8.42020-03-22T15:24:38ZRob_SMultiple jquery errors after upgrading to Drupal 8.8.4I've applied the latest security patch to upgrade to Drupal 8.8.4 and it seems to have broken Civi. At /civicrm I am seeing no menu, the dashboards aren't loading and cannot be edited / updated. There are numerous js errors on the page w...I've applied the latest security patch to upgrade to Drupal 8.8.4 and it seems to have broken Civi. At /civicrm I am seeing no menu, the dashboards aren't loading and cannot be edited / updated. There are numerous js errors on the page which seem to stem from jquery being missing. THe first error is:
ReferenceError: jQuery is not defined /libraries/civicrm/js/Common.js:4:10
Any advice would be appreciated here people pleasehttps://lab.civicrm.org/dev/drupal/-/issues/112Installer requires anonymous users to have Administer site config permission ...2020-04-01T07:24:21ZherbdoolInstaller requires anonymous users to have Administer site config permission in order to installI'm installing CiviCRM 5.23.2 on Drupal 7 by going to `sites/all/modules/civicrm/install/`. It's a fresh Drupal 7 install on Lando. I get this message "The installer can only be run by a user with the permission to administer site config...I'm installing CiviCRM 5.23.2 on Drupal 7 by going to `sites/all/modules/civicrm/install/`. It's a fresh Drupal 7 install on Lando. I get this message "The installer can only be run by a user with the permission to administer site configuration." and it only allows me to install when I give anon users this permission. I am logged in as admin with all permissions enabled. So somehow the session is no longer active at the URL.https://lab.civicrm.org/dev/drupal/-/issues/88CRM/Utils/System/Drupal8.php autoload.php path issue 5.16.32020-04-22T14:54:19ZndavisCRM/Utils/System/Drupal8.php autoload.php path issue 5.16.3line 419.
Relies on cmsRootPath
Standard drupal installation cms path (cmsRoot) is now [drupal root]/web.
Drupal8.php now looks for autoload as **[cms.root]//autoload.php** (line 419)
Unless you symlink autoload.php from ../vendor/au...line 419.
Relies on cmsRootPath
Standard drupal installation cms path (cmsRoot) is now [drupal root]/web.
Drupal8.php now looks for autoload as **[cms.root]//autoload.php** (line 419)
Unless you symlink autoload.php from ../vendor/autoload.php this fails to find autoload.php.
Suggest an if block that first tries `require_once "autoload.php";` and if that fails (vendor directory is not in php's include_path) *then* look for it in a better place than cmsRoot. As well [cms.root] has a trailing slash so the forward slash in the `$autoloader = require_once $root."/autoload.php"` is unnecessary.
vendor is not supposed to be accessible in the web root, so for anyone who's vendor directory is not the web root, and is in a directory one directory level up (out of web root) Drupal8.php won't find autoload.php.
I'm not sure of the Drupal8.php's history, but changes related to the path to autoload.php between 5.15.1 and 5.16.3 and broke things.
If you change the [cms.root] so Drupal8.php can find autoload.php the rest of civi breaks. If I set this path properly in Drupal8.php everything works.https://lab.civicrm.org/dev/drupal/-/issues/52Drupal8: getUrlPath: avoid relying on the deprecated 'q' variable2020-05-27T12:49:03ZbgmDrupal8: getUrlPath: avoid relying on the deprecated 'q' variableContext: Symbiotic has an extension for theming that uses this trick to detect whether it's running in a frontend or backend form (to avoid loading our CSS on the frontend):
```
function adminimore_civicrm_config(&$config) {
$path = C...Context: Symbiotic has an extension for theming that uses this trick to detect whether it's running in a frontend or backend form (to avoid loading our CSS on the frontend):
```
function adminimore_civicrm_config(&$config) {
$path = CRM_Utils_System::getUrlPath();
$item = CRM_Core_Menu::get($path);
$resources = CRM_Core_Resources::singleton();
// if item is not known, assume it's public (e.g. wordpress shortcode)
if ($item && !CRM_Utils_Array::value('is_public', $item)) {
$resources->addStyleFile(ADMINIMORE_RESOURCE, 'css/civicrm-admin.css', 15, 'html-header');
$resources->addStyleFile(ADMINIMORE_RESOURCE, 'css/civicrm-buttons.css', 15, 'html-header');
}
$resources->addStyleFile(ADMINIMORE_RESOURCE, 'css/civicrm-menu.css', 15, 'html-header');
_adminimore_civix_civicrm_config($config);
}
```
In Drupal8, we were having weird problems where the CSS would sometimes not load. If we refreshed, it loaded, but after some time, the bug would appear again and we would stumble on a screen using the default CiviCRM CSS.
After some poking around, it seems that Drupal8 deprecated the 'q' variable, which CiviCRM is still using in `CRM_Utils_System::getUrlPath()`.
I did a quick patch to test a workaround, which so far seems to be working:
```
public static function getUrlPath() {
if (CRM_Core_Config::singleton()->userFramework == 'Drupal8') {
if (class_exists('Drupal') && \Drupal::hasContainer()) {
$path = \Drupal::service('path.current')->getPath();
// Remove '/' prefix. Ex: '/civicrm/contribute' becomes 'civicrm/contribute'.
if ($path) {
$path = substr($path, 1);
// Remove the language prefix, if present
// The URL returned by Drupal randomly includes the language prefix, sometimes not.
if (preg_match('/^\w\w\//', $path)) {
$path = substr($path, 3);
}
return $path;
}
}
}
if (isset($_GET[CRM_Core_Config::singleton()->userFrameworkURLVar])) {
return $_GET[CRM_Core_Config::singleton()->userFrameworkURLVar];
}
return NULL;
}
```
A cleaner solution might be to check if the `$config->userSystem->getUrlPath()` function exists, and if it does, call it?https://lab.civicrm.org/dev/drupal/-/issues/76Proposal: Don't migrate drush commands to D82020-06-19T16:21:14ZJonGoldProposal: Don't migrate drush commands to D8CiviCRM drush commands are incompatible with modern versions of drush.
I investigated this, and each command will need to be rewritten for drush 9/D8. I've created a framework and ported a couple of my most used commands (e.g. `drush c...CiviCRM drush commands are incompatible with modern versions of drush.
I investigated this, and each command will need to be rewritten for drush 9/D8. I've created a framework and ported a couple of my most used commands (e.g. `drush civicrm-sql-cli`, `drush civicrm-sql-dump`) but there's a compelling argument to simply not rewriting drush and instead making sure that `cv` has feature parity.
For those who DO think we should continue to maintain the drush commands, I have a branch here: https://github.com/MegaphoneJon/civicrm-drupal-8
Klaas has also submitted a PR to add `drush civicrm-api` to this branch.https://lab.civicrm.org/dev/drupal/-/issues/16[webform_civicrm] - edits to 'cart' display when using installments functiona...2020-07-16T17:23:38ZKarinG[webform_civicrm] - edits to 'cart' display when using installments functionalityWorking on this with CompuCorp
**Before:**
![image](/uploads/7ed8454c61bf9b3b098e7281d7e1b5ca/image.png)
Imagine this was configured as pay in 2 installments (two payments of $96/each) - how about something like this:
**After:**
![im...Working on this with CompuCorp
**Before:**
![image](/uploads/7ed8454c61bf9b3b098e7281d7e1b5ca/image.png)
Imagine this was configured as pay in 2 installments (two payments of $96/each) - how about something like this:
**After:**
![image](/uploads/73dc36a7fb0d1e6b590f77bb666f2a0e/image.png)https://lab.civicrm.org/dev/drupal/-/issues/24[webform_civicrm] - monies display properly but don't get processed when usin...2020-07-16T17:23:38ZKarinG[webform_civicrm] - monies display properly but don't get processed when using webform_calculator module to calculate e.g. participant fees![image](/uploads/c6a3f46f1ca9a57819370b9c3f4012dd/image.png)
![image](/uploads/ed87bfaed0cda7b8e3061573c4168735/image.png)
![image](/uploads/7ca2158df886d944766a86459a23be2f/image.png)
![image](/uploads/f7eb9556cd07695f72bed3f28ab4c8...![image](/uploads/c6a3f46f1ca9a57819370b9c3f4012dd/image.png)
![image](/uploads/ed87bfaed0cda7b8e3061573c4168735/image.png)
![image](/uploads/7ca2158df886d944766a86459a23be2f/image.png)
![image](/uploads/f7eb9556cd07695f72bed3f28ab4c8dd/image.png)
![image](/uploads/595a14b6ec110408df2560e23fce1673/image.png)colemanwcolemanwhttps://lab.civicrm.org/dev/drupal/-/issues/25View Relationship Type: Event to Participant Contact2020-07-16T17:23:38ZjohnffView Relationship Type: Event to Participant ContactSuccess! I have successfully added a new View Relationship type that allows you to connect a Contact to your Event, and even select it by role id.
But! Only the contact's core fields are in. Now, we can easily create another relationshi...Success! I have successfully added a new View Relationship type that allows you to connect a Contact to your Event, and even select it by role id.
But! Only the contact's core fields are in. Now, we can easily create another relationship to bring in the Contact's custom fields, but I can't see any barrier to bringing them in by default. How are custom fields connected to a table?https://lab.civicrm.org/dev/drupal/-/issues/128CiviCRM menu disappears immediately after clicking the CiviCRM button.2020-07-26T19:46:09ZHeneryHCiviCRM menu disappears immediately after clicking the CiviCRM button.![Screen_Shot_2020-07-10_at_7.53.31_PM](/uploads/f352a63527756f273cb26cacaf41752e/Screen_Shot_2020-07-10_at_7.53.31_PM.png)
Here is a log of the errors in my browser when the event happens
```
The resource from “http://bionic.mydomain....![Screen_Shot_2020-07-10_at_7.53.31_PM](/uploads/f352a63527756f273cb26cacaf41752e/Screen_Shot_2020-07-10_at_7.53.31_PM.png)
Here is a log of the errors in my browser when the event happens
```
The resource from “http://bionic.mydomain.org/libraries/civicrm/packages/jquery/plugins/jquery.mousewheel.min.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/bower_components/jquery-ui/jquery-ui.min.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
The resource from “http://bionic.mydomain.org/libraries/civicrm/packages/jquery/plugins/jquery.timeentry.min.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/bower_components/select2/select2.min.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/bower_components/jquery/dist/jquery.min.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
Loading failed for the <script> with source “http://bionic.mydomain.org/libraries/civicrm/core/bower_components/jquery/dist/jquery.min.js”. civicrm:9:1
The resource from “http://bionic.mydomain.org/libraries/civicrm/packages/jquery/plugins/jquery.form.min.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/bower_components/lodash-compat/lodash.min.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
The resource from “http://bionic.mydomain.org/libraries/civicrm/packages/jquery/plugins/jquery.blockUI.min.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/bower_components/datatables/media/js/jquery.dataTables.min.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/bower_components/jquery-validation/dist/additional-methods.min.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/bower_components/jquery-validation/dist/jquery.validate.min.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
The resource from “http://bionic.mydomain.org/libraries/civicrm/packages/jquery/plugins/jquery.ui.datepicker.validation.min.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/js/Common.js?r=vESOV” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/js/crm.datepicker.js?r=vESOV” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/js/crm.ajax.js?r=vESOV” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
The resource from “http://bionic.mydomain.org/libraries/civicrm/packages/jquery/plugins/jquery.notify.min.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/js/wysiwyg/crm.wysiwyg.js?r=vESOV” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
The resource from “http://bionic.mydomain.org/libraries/civicrm/packages/jquery/plugins/jquery.tableHeader.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/bower_components/smartmenus/dist/jquery.smartmenus.min.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/bower_components/smartmenus/dist/addons/keyboard/jquery.smartmenus.keyboard.min.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/js/jquery/jquery.dashboard.js?r=vESOV” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/js/crm.menubar.js?r=vESOV” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/js/crm.optionEdit.js?r=vESOV” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/js/noconflict.js?r=vESOV” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/js/crm.drupal8.js?r=vESOV” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/css/crm-i.css?r=vESOV” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/bower_components/datatables/media/css/jquery.dataTables.min.css” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/bower_components/font-awesome/css/font-awesome.min.css” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/bower_components/jquery-ui/themes/smoothness/jquery-ui.min.css” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/css/civicrm.css?r=vESOV” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/bower_components/select2/select2.min.css” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
The resource from “http://bionic.mydomain.org/libraries/civicrm/core//bower_components/d3/d3.min.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
The resource from “http://bionic.mydomain.org/libraries/civicrm/core//bower_components/crossfilter2/crossfilter.min.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
The resource from “http://bionic.mydomain.org/libraries/civicrm/core//bower_components/dc-2.1.x/dc.min.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/css/dashboard.css?r=vESOV” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/bower_components/jquery-ui/jquery-ui.min.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
Loading failed for the <script> with source “http://bionic.mydomain.org/libraries/civicrm/core/bower_components/jquery-ui/jquery-ui.min.js”. civicrm:11:1
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/bower_components/lodash-compat/lodash.min.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
Loading failed for the <script> with source “http://bionic.mydomain.org/libraries/civicrm/core/bower_components/lodash-compat/lodash.min.js”. civicrm:13:1
The resource from “http://bionic.mydomain.org/libraries/civicrm/packages/jquery/plugins/jquery.mousewheel.min.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
Loading failed for the <script> with source “http://bionic.mydomain.org/libraries/civicrm/packages/jquery/plugins/jquery.mousewheel.min.js”. civicrm:15:1
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/bower_components/select2/select2.min.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
Loading failed for the <script> with source “http://bionic.mydomain.org/libraries/civicrm/core/bower_components/select2/select2.min.js”. civicrm:17:1
The resource from “http://bionic.mydomain.org/libraries/civicrm/packages/jquery/plugins/jquery.form.min.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
Loading failed for the <script> with source “http://bionic.mydomain.org/libraries/civicrm/packages/jquery/plugins/jquery.form.min.js”. civicrm:19:1
The resource from “http://bionic.mydomain.org/libraries/civicrm/packages/jquery/plugins/jquery.timeentry.min.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
Loading failed for the <script> with source “http://bionic.mydomain.org/libraries/civicrm/packages/jquery/plugins/jquery.timeentry.min.js”. civicrm:21:1
The resource from “http://bionic.mydomain.org/libraries/civicrm/packages/jquery/plugins/jquery.blockUI.min.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
Loading failed for the <script> with source “http://bionic.mydomain.org/libraries/civicrm/packages/jquery/plugins/jquery.blockUI.min.js”. civicrm:23:1
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/bower_components/datatables/media/js/jquery.dataTables.min.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
Loading failed for the <script> with source “http://bionic.mydomain.org/libraries/civicrm/core/bower_components/datatables/media/js/jquery.dataTables.min.js”. civicrm:25:1
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/bower_components/jquery-validation/dist/jquery.validate.min.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
Loading failed for the <script> with source “http://bionic.mydomain.org/libraries/civicrm/core/bower_components/jquery-validation/dist/jquery.validate.min.js”. civicrm:27:1
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/bower_components/jquery-validation/dist/additional-methods.min.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
Loading failed for the <script> with source “http://bionic.mydomain.org/libraries/civicrm/core/bower_components/jquery-validation/dist/additional-methods.min.js”. civicrm:29:1
The resource from “http://bionic.mydomain.org/libraries/civicrm/packages/jquery/plugins/jquery.ui.datepicker.validation.min.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
Loading failed for the <script> with source “http://bionic.mydomain.org/libraries/civicrm/packages/jquery/plugins/jquery.ui.datepicker.validation.min.js”. civicrm:31:1
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/js/Common.js?r=vESOV” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
Loading failed for the <script> with source “http://bionic.mydomain.org/libraries/civicrm/core/js/Common.js?r=vESOV”. civicrm:33:1
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/js/crm.datepicker.js?r=vESOV” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
Loading failed for the <script> with source “http://bionic.mydomain.org/libraries/civicrm/core/js/crm.datepicker.js?r=vESOV”. civicrm:35:1
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/js/crm.ajax.js?r=vESOV” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
Loading failed for the <script> with source “http://bionic.mydomain.org/libraries/civicrm/core/js/crm.ajax.js?r=vESOV”. civicrm:37:1
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/js/wysiwyg/crm.wysiwyg.js?r=vESOV” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
Loading failed for the <script> with source “http://bionic.mydomain.org/libraries/civicrm/core/js/wysiwyg/crm.wysiwyg.js?r=vESOV”. civicrm:39:1
Uncaught ReferenceError: jQuery is not defined
<anonymous> http://bionic.mydomain.org/civicrm/ajax/l10n-js/en_US?cid=2&r=vESOV:114
en_US:114:1
The resource from “http://bionic.mydomain.org/libraries/civicrm/packages/jquery/plugins/jquery.tableHeader.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
Loading failed for the <script> with source “http://bionic.mydomain.org/libraries/civicrm/packages/jquery/plugins/jquery.tableHeader.js”. civicrm:43:1
The resource from “http://bionic.mydomain.org/libraries/civicrm/packages/jquery/plugins/jquery.notify.min.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
Loading failed for the <script> with source “http://bionic.mydomain.org/libraries/civicrm/packages/jquery/plugins/jquery.notify.min.js”. civicrm:45:1
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/bower_components/smartmenus/dist/jquery.smartmenus.min.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
Loading failed for the <script> with source “http://bionic.mydomain.org/libraries/civicrm/core/bower_components/smartmenus/dist/jquery.smartmenus.min.js”. civicrm:47:1
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/bower_components/smartmenus/dist/addons/keyboard/jquery.smartmenus.keyboard.min.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
Loading failed for the <script> with source “http://bionic.mydomain.org/libraries/civicrm/core/bower_components/smartmenus/dist/addons/keyboard/jquery.smartmenus.keyboard.min.js”. civicrm:49:1
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/js/crm.menubar.js?r=vESOV” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
Loading failed for the <script> with source “http://bionic.mydomain.org/libraries/civicrm/core/js/crm.menubar.js?r=vESOV”. civicrm:51:1
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/js/crm.optionEdit.js?r=vESOV” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
Loading failed for the <script> with source “http://bionic.mydomain.org/libraries/civicrm/core/js/crm.optionEdit.js?r=vESOV”. civicrm:53:1
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/js/crm.drupal8.js?r=vESOV” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
Loading failed for the <script> with source “http://bionic.mydomain.org/libraries/civicrm/core/js/crm.drupal8.js?r=vESOV”. civicrm:55:1
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/js/jquery/jquery.dashboard.js?r=vESOV” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
Loading failed for the <script> with source “http://bionic.mydomain.org/libraries/civicrm/core/js/jquery/jquery.dashboard.js?r=vESOV”. civicrm:57:1
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/js/noconflict.js?r=vESOV” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
Loading failed for the <script> with source “http://bionic.mydomain.org/libraries/civicrm/core/js/noconflict.js?r=vESOV”. civicrm:59:1
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/bower_components/datatables/media/css/jquery.dataTables.min.css” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/css/civicrm.css?r=vESOV” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/css/crm-i.css?r=vESOV” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/bower_components/font-awesome/css/font-awesome.min.css” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/bower_components/select2/select2.min.css” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/bower_components/jquery-ui/themes/smoothness/jquery-ui.min.css” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
Layout was forced before the page was fully loaded. If stylesheets are not yet loaded this may cause a flash of unstyled content. modernizr.min.js:3:3631
Uncaught TypeError: CRM.$ is not a function
<anonymous> http://bionic.mydomain.org/civicrm:232
civicrm:232:5
The resource from “http://bionic.mydomain.org/libraries/civicrm/core//bower_components/d3/d3.min.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
Loading failed for the <script> with source “http://bionic.mydomain.org/libraries/civicrm/core//bower_components/d3/d3.min.js”. civicrm:304:1
The resource from “http://bionic.mydomain.org/libraries/civicrm/core//bower_components/crossfilter2/crossfilter.min.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
Loading failed for the <script> with source “http://bionic.mydomain.org/libraries/civicrm/core//bower_components/crossfilter2/crossfilter.min.js”. civicrm:305:1
The resource from “http://bionic.mydomain.org/libraries/civicrm/core//bower_components/dc-2.1.x/dc.min.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
Loading failed for the <script> with source “http://bionic.mydomain.org/libraries/civicrm/core//bower_components/dc-2.1.x/dc.min.js”. civicrm:306:1
Uncaught TypeError: CRM.$ is not a function
<anonymous> http://bionic.mydomain.org/civicrm:473
civicrm:473:7
The resource from “http://bionic.mydomain.org/libraries/civicrm/core/css/dashboard.css?r=vESOV” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
civicrm
```
https://lab.civicrm.org/dev/drupal/-/issues/134[Drupal 8] civicrm-buildkit places assets in the wrong folder2020-08-21T21:35:52ZJonGold[Drupal 8] civicrm-buildkit places assets in the wrong folderOn a standard D8/Civi install, the CiviCRM assets are located in `<projectroot>/web/libraries/civicrm/`. On civicrm-buildkit, they're located in `<projectroot>/web/libraries/civicrm/core/` *except* for the `packages` folder, which is lo...On a standard D8/Civi install, the CiviCRM assets are located in `<projectroot>/web/libraries/civicrm/`. On civicrm-buildkit, they're located in `<projectroot>/web/libraries/civicrm/core/` *except* for the `packages` folder, which is located in `<projectroot>/web/libraries/civicrm/`. This causes a 404 error on any request to the contents of the `packages` folder, e.g. jQuery.https://lab.civicrm.org/dev/drupal/-/issues/130Use civicrm profile to simultaneously create civi contact and drupal user2020-09-01T19:18:58ZW01FUse civicrm profile to simultaneously create civi contact and drupal userI have set up a CiviCRM profile - ![ypf-profile](/uploads/e0b45d07d90d8fee422697b887f85fa9/ypf-profile.png) - in order to allow users to register with the site, and create both a CiviCRM contact and Drupal user account.
If from the prof...I have set up a CiviCRM profile - ![ypf-profile](/uploads/e0b45d07d90d8fee422697b887f85fa9/ypf-profile.png) - in order to allow users to register with the site, and create both a CiviCRM contact and Drupal user account.
If from the profiles page (/civicrm/admin/uf/group?reset=1) I click more > Use - Create Mode, it redirects to a screen that does not have the Drupal fields (username/password), and can successfully create a CiviCRM contact. But this is weird and happens even with setting "Account creation required" selected. I would expect this page to show and reflect the Drupal fields as well with that setting selected.
When visiting the same url (https://www.mysite.com/civicrm/profile/create?gid=14&reset=1) as an anonymous user, I correctly see the Drupal account fields AND the CiviCRM fields, but upon hitting save am shown an error:
> Profile Error Your profile is not saved and Account is not created.
Neither a Drupal account or CiviCRM contact are created.
There are also no new log messages at /admin/reports/dblog to indicate why it didn't work.https://lab.civicrm.org/dev/drupal/-/issues/129When creating a D8 private file system e.g. /sites/default/private -> CiviCRM...2020-09-14T03:22:22ZKarinGWhen creating a D8 private file system e.g. /sites/default/private -> CiviCRM overrides location for templates_c specified in civicrm.settings.php fileIs this intentional? And is it necessary? I first saw this on my Pantheon test install and am now seeing it on one of Alan's hosted sites as well. Storing `templates_c` in the private file system [even though the `civicrm.settings.php` f...Is this intentional? And is it necessary? I first saw this on my Pantheon test install and am now seeing it on one of Alan's hosted sites as well. Storing `templates_c` in the private file system [even though the `civicrm.settings.php` file still has the non-public files location] results in a slow page load.
This only happens if you put your private files dir in `/sites/default/ `
On Alan's hosting we can move the private/files to the same level as `web/`
`[$settings['file_private_path'] = $app_root . '/../private/files';`
- so CiviCRM keeps using `/sites/default/files` for `templates_c` - but on Pantheon [and likely other hosting] you may not have access to create a dir at that level.
End result is that it creates the impression that CiviCRM on D8 is very slow.
@DaveD @seamuslee @jackrabbithanna @bgm - any ideas as to why/history/intentional?https://lab.civicrm.org/dev/drupal/-/issues/140Improvement in member role sync to avoid unnecessary role remove and role rea...2020-09-15T18:42:04ZsadashivImprovement in member role sync to avoid unnecessary role remove and role reassignIf we turn on civicrm member role sync module and configure the membership to sync to a role then system removes the role and reassigns it when the sync function is invoked.
Steps to replicate:
1) Create a Membership type
2) Create a ro...If we turn on civicrm member role sync module and configure the membership to sync to a role then system removes the role and reassigns it when the sync function is invoked.
Steps to replicate:
1) Create a Membership type
2) Create a role in drupal
3) Enable civicrm_member_roles module
4) Configure the member role rule to add the new role on proper status of the membership
5) Configure the membership role to sync on user login or logout
6) Create a new membership for any user (note that the user now doesn't have the new role)
7) Login as the user (note that the user now has the role assigned)
8) Logout
If we see the code in the module it has a db_delete to delete the role assignment and then more code to reassign the role back, and these actions are performed on login or logout. This can be improved by not deleting the role and not saving the user again if there is no change required. This can be a improvement and will save few overhead on queries and on login/logout.
Thanks,
Sadashiv.