Drupal issueshttps://lab.civicrm.org/dev/drupal/-/issues2023-10-05T12:00:17Zhttps://lab.civicrm.org/dev/drupal/-/issues/190Links in Drupal Views are improperly URL-encoded2023-10-05T12:00:17ZresgaLinks in Drupal Views are improperly URL-encodedOriginal and open issue: [CRM-21716 Links in Drupal Views are improperly URL-encoded](https://issues.civicrm.org/jira/browse/CRM-21716).
As I read https://lab.civicrm.org/infra/ops/-/wikis/gitlab-roadmap#what-about-the-2000-open-issues-...Original and open issue: [CRM-21716 Links in Drupal Views are improperly URL-encoded](https://issues.civicrm.org/jira/browse/CRM-21716).
As I read https://lab.civicrm.org/infra/ops/-/wikis/gitlab-roadmap#what-about-the-2000-open-issues-in-jira-that-are-not-confirmed not all issues were migrated, and it looks like this one wasn't.
The updated code in the issue above works well, and URLs are properly formatted.https://lab.civicrm.org/dev/drupal/-/issues/188drupal 9: Event registration with drupal user creation crashes if using first...2023-06-28T07:09:49ZDaveDdrupal 9: Event registration with drupal user creation crashes if using first+last+email dedupe ruleThis is pulled out from https://lab.civicrm.org/dev/drupal/-/issues/186 since it's not recent and while touching a similar code area it's not exactly the same.
Part of the problem here is it only sends on the email to createUser, but as...This is pulled out from https://lab.civicrm.org/dev/drupal/-/issues/186 since it's not recent and while touching a similar code area it's not exactly the same.
Part of the problem here is it only sends on the email to createUser, but as in the other ticket it already has the contact id so it shouldn't need to do dedupe rules, it's just how to get that contact id to get passed on to synchronizeUFMatch: https://github.com/civicrm/civicrm-core/blob/c0a3d0e01a7d8df34786a1510d8a4661dffee82b/CRM/Event/Form/Registration.php#L807. Using $_POST is not great, but it needs to be something that gets passed on from the _drupal_ insert hook. And it would be nice to re-use whatever mechanism for the contact user add task too.https://lab.civicrm.org/dev/drupal/-/issues/187Installing drupal/fontawesome causes CiviCRM to freeze the browser.2023-05-24T06:53:44Zdarren.woodsInstalling drupal/fontawesome causes CiviCRM to freeze the browser.Install vanilla Drupal 9 via composer.
Installed CiviCRM via composer according to docs.
Installed the Fontawesome module: composer require 'drupal/fontawesome:^2.25'
Loading any CiviCRM paths /civicrm/admin causes the browser to enter...Install vanilla Drupal 9 via composer.
Installed CiviCRM via composer according to docs.
Installed the Fontawesome module: composer require 'drupal/fontawesome:^2.25'
Loading any CiviCRM paths /civicrm/admin causes the browser to enter an infinite loop once the DOM is loaded.
Tracked it down to all.js from Fontawesome.
Removing Fontawesome module resolves it: composer remove 'drupal/fontawesome'
Could this be related to the civicrm asset plugin?
Before the browser freezes, I can see there are two icons for each admin menu option.
We would dearly love to use fa icons in our Drupal theme :pray:https://lab.civicrm.org/dev/drupal/-/issues/175Call to deprecated function CRM_Contribute_PseudoConstant::pcpStatus in drupa...2022-03-08T14:11:00ZDaveDCall to deprecated function CRM_Contribute_PseudoConstant::pcpStatus in drupal 7 views modulehttps://civicrm.stackexchange.com/questions/41350/why-am-i-getting-deprecated-function-warnings
Coming from https://github.com/civicrm/civicrm-drupal/blob/e22d89a50108a2b4da99e971d0fdcdd656edd56c/modules/views/civicrm/civicrm_handler_fi...https://civicrm.stackexchange.com/questions/41350/why-am-i-getting-deprecated-function-warnings
Coming from https://github.com/civicrm/civicrm-drupal/blob/e22d89a50108a2b4da99e971d0fdcdd656edd56c/modules/views/civicrm/civicrm_handler_filter_pseudo_constant.inc#L45
`$this->_pseudo_constant = call_user_func_array($this->definition['pseudo class'] . "::" . $this->definition['pseudo method'], $pseudo_args);`
```
1 .../sites/all/modules/civicrm/CRM/Contribute/PseudoConstant.php(352): CRM_Core_Error::deprecatedFunctionWarning("Function pcpStatus will be removed")
2 .../sites/all/modules/civicrm/drupal/modules/views/civicrm/civicrm_handler_filter_pseudo_constant.inc(45): CRM_Contribute_PseudoConstant::pcpStatus()
3 .../sites/all/modules/views/includes/handlers.inc(65): civicrm_handler_filter_pseudo_constant->construct()
4 .../sites/all/modules/views/includes/handlers.inc(87): _views_create_handler((Array:8), "handler", "filter")
5 .../sites/all/modules/views/views.module(1399): _views_prepare_handler((Array:8), (Array:18), "status", "filter")
6 .../sites/all/modules/date/date_views/includes/date_views_fields.inc(59): views_get_handler("civicrm_pcp", "status", "filter")
7 .../sites/all/modules/date/date_views/date_views.module(156): _date_views_fields("civicrm_contact")
8 .../sites/all/modules/calendar/includes/calendar.views_template.inc(37): date_views_fields("civicrm_contact")
9 .../sites/all/modules/views/views.module(1520): calendar_views_templates()
10 .../sites/all/modules/views/views_ui.module(56): views_get_all_templates()
11 .../includes/menu.inc(2831): views_ui_menu()
12 .../includes/menu.inc(2794): menu_router_build()
13 .../includes/menu.inc(468): menu_rebuild()
14 .../includes/menu.inc(1779): menu_get_item()
15 .../includes/menu.inc(1794): menu_get_custom_theme(TRUE)
16 .../includes/common.inc(5402): menu_set_custom_theme()
17 .../includes/bootstrap.inc(2602): _drupal_bootstrap_full()
18 .../index.php(20): drupal_bootstrap(7)
19 {main}
```https://lab.civicrm.org/dev/drupal/-/issues/173Leaking cacheability metadata2022-02-09T22:36:58ZfkohrtLeaking cacheability metadataAfter installing CiviCRM 5.45 on a fresh Drupal 9.3.2 running on Ubuntu 20.04.3 LTS, the [SAML Authentication](https://www.drupal.org/project/samlauth) module issues a warning after every successful authentication event:
> While process...After installing CiviCRM 5.45 on a fresh Drupal 9.3.2 running on Ubuntu 20.04.3 LTS, the [SAML Authentication](https://www.drupal.org/project/samlauth) module issues a warning after every successful authentication event:
> While processing SAML authentication response, code leaked cacheability metadata. This indicates a bug somewhere (but it is hard to pinpoint where): if the same code is called in other scenarios too, it may cause fatal crashes, or bloat the render cache unnecessarily. Please investigate. Metadata: i:6;:O:37:"Drupal\Core\Render\BubbleableMetadata":4:{s:16:"*cacheContexts";a:0:{}s:12:"*cacheTags";a:0:{}s:14:"*cacheMaxAge";i:-1;s:14:"*attachments";a:0:{}}
One of the maintainers of the `samlauth` module explains in a corresponding ticket:
> the samlauth module isn't leaking metadata. It's detecting that some other code in your website, which was executed during the login process, is leaking metadata and should be fixed.
>
> — roderik, “[Code leaked cacheability metadata](https://www.drupal.org/project/samlauth/issues/3232577)”, [comment #4](https://www.drupal.org/project/samlauth/issues/3232577#comment-14354950)
Before installing CiviCRM, no warnings appeared in the log, therefore I'd say the appearance of the warnings somehow correspond to the fact that CiviCRM has been installed: CiviCRM code for Drupal might leak cacheability metadata.https://lab.civicrm.org/dev/drupal/-/issues/170kcfinder error 5002021-12-16T13:14:52Zolivierkcfinder error 500Civicrm 5.43 and 5.44 under Drupal 8, launching kcfinder from ckeditor give an 500 error.
Php script integration/civicrm.php try to call civicrm.config.php located in web/libraries/civicrm/, and this file does not exist.
Copying this fil...Civicrm 5.43 and 5.44 under Drupal 8, launching kcfinder from ckeditor give an 500 error.
Php script integration/civicrm.php try to call civicrm.config.php located in web/libraries/civicrm/, and this file does not exist.
Copying this file from an Drupal 7 installation is not sufficent, because civicrm.settings.php is not searched in correct location.
```
--- ../../mcm65/sites/all/modules/civicrm/civicrm.config.php 2021-11-15 21:42:13.000000000 +0100
+++ libraries/civicrm/civicrm.config.php 2021-12-07 21:14:33.380121826 +0100
@@ -87,6 +87,11 @@
return $confdir;
}
+ if (file_exists($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'sites' . DIRECTORY_SEPARATOR . 'default' .
+ DIRECTORY_SEPARATOR . 'civicrm.settings.php')) {
+ return $_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'sites' . DIRECTORY_SEPARATOR . 'default';
+ }
+
if (!file_exists($confdir) && !$skipConfigError) {
echo "Could not find valid configuration dir, best guess: $confdir<br/><br/>\n";
exit();
```
Another point, .htaccess in /web directory Deny access to most php files in public directory.
We must allow access to php files under kcfinder directory :
```
# For security reasons, deny access to other PHP files on public sites.
# Note: The following URI conditions are not anchored at the start (^),
# because Drupal may be located in a subdirectory. To further improve
# security, you can replace '!/' with '!^/'.
# Allow access to PHP files in /core (like authorize.php or install.php):
RewriteCond %{REQUEST_URI} !/core/[^/]*\.php$
# Allow access to test-specific PHP files:
RewriteCond %{REQUEST_URI} !/core/modules/system/tests/https?.php
# Allow access to Statistics module's custom front controller.
# Copy and adapt this rule to directly execute PHP files in contributed or
# custom modules or to run another PHP application in the same directory.
RewriteCond %{REQUEST_URI} !/core/modules/statistics/statistics.php$
RewriteCond %{REQUEST_URI} !/libraries/civicrm/packages/kcfinder/[a-z_]+\.php$
RewriteCond %{REQUEST_URI} !/libraries/civicrm/packages/kcfinder/.*/[a-z_]+\.php$
# Deny access to any other PHP files that do not match the rules above.
# Specifically, disallow autoload.php from being served directly.
RewriteRule "^(.+/.*|autoload)\.php($|/)" - [F]
```https://lab.civicrm.org/dev/drupal/-/issues/150Drupal 9 - [RuntimeException] - Error: Failed to find next installable packa...2021-01-15T21:39:04ZRar9Drupal 9 - [RuntimeException] - Error: Failed to find next installable package. Remaining: drupal/chosen drupal/chosen_libUpdating civicrm 5.30.1 on Drupal 9.0.9 with composer 1.10.17 + php 7.4.12 will produce a conflict with drupal chosen module
![Civicrm](/uploads/e3fb0c573f5a1d2bda26e0e0269302ec/Civicrm.jpg)
it brings in these changes and something in ...Updating civicrm 5.30.1 on Drupal 9.0.9 with composer 1.10.17 + php 7.4.12 will produce a conflict with drupal chosen module
![Civicrm](/uploads/e3fb0c573f5a1d2bda26e0e0269302ec/Civicrm.jpg)
it brings in these changes and something in this breaks composer:
- Installing totten/lurkerlite (1.3.0): Loading from cache
- Installing civicrm/composer-compile-plugin (v0.14): Loading from cache
- Updating civicrm/composer-downloads-plugin (v2.1.1 => v3.0.1): Loading from cache
- Installing tubalmartin/cssmin (v4.1.1): Loading from cache
- Installing padaliyajay/php-autoprefixer (1.3): Loading from cache
- Installing scssphp/scssphp (v1.4.0): Loading from cache
- Installing civicrm/composer-compile-lib (v0.4): Loading from cache
- Updating civicrm/civicrm-core (5.30.1 => 5.31.1): Checking out e8825b4e60
[composer.json](https://lab.civicrm.org/-/snippets/60)https://lab.civicrm.org/dev/drupal/-/issues/144D8 kcfinder needs to be in two locations, currently in one2021-07-15T05:43:44Zbails@circle-interactive.co.ukD8 kcfinder needs to be in two locations, currently in oneWe've had to
Symlink from vendor/civicrm/civicrm-packages/kcfinder web/libraries/civicrm/core/packages/
ln -s vendor/civicrm/civicrm-packages/kcfinder web/libraries/civicrm/core/packages/
Then ensure the sites civicrm.settings.php con...We've had to
Symlink from vendor/civicrm/civicrm-packages/kcfinder web/libraries/civicrm/core/packages/
ln -s vendor/civicrm/civicrm-packages/kcfinder web/libraries/civicrm/core/packages/
Then ensure the sites civicrm.settings.php contains the following lines:
$civicrm_paths['civicrm.bower']['path'] = '/home/user/public_html/web/libraries/civicrm/core/bower_components';
$civicrm_paths['civicrm.bower']['url'] = CIVICRM_UF_BASEURL . '/libraries/civicrm/core/bower_components/';
$civicrm_paths['civicrm.packages']['path'] = '/home/user/public_html/vendor/civicrm/civicrm-packages/';
$civicrm_paths['civicrm.packages']['url'] = CIVICRM_UF_BASEURL . '/libraries/civicrm/core/packages/';
And also:
Add settings_location.php inside web/libraries/civicrm/core/ and /libraries/civicrm/
<?php
define('CIVICRM_CONFDIR', dirname(dirname(dirname(__FILE__))) . '/../sites');
And finally:
# Allow access to CKEditor for CiviCRM.
RewriteCond %{REQUEST_URI} !/libraries/civicrm/core/packages/kcfinder/[a-z_/]+\.php$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.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/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/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/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/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/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/64Drupal8/Backdrop: Bad URL on ACL page linking to CMS permissions2020-11-04T20:49:06ZJonGoldDrupal8/Backdrop: Bad URL on ACL page linking to CMS permissions`CRM_Admin_Page_Access::run()` attempts to generate a URL to the CMS permission page. It uses a switch to give a CMS-specific URL.
I wrote a Backdrop and D8-specific code, using `url()` and `\Drupal\Core\Url::fromUri()` respectively - ...`CRM_Admin_Page_Access::run()` attempts to generate a URL to the CMS permission page. It uses a switch to give a CMS-specific URL.
I wrote a Backdrop and D8-specific code, using `url()` and `\Drupal\Core\Url::fromUri()` respectively - but I think this is overcomplicated. Couldn't we just pass a string instead? Or is there some oddball situation (multi-site?) where you need to generate the URL using the Drupal-specific functions?JonGoldJonGoldhttps://lab.civicrm.org/dev/drupal/-/issues/62Possible rework on path checking on function civicrm_user_form_validate for 7...2021-02-05T10:40:39ZVangelisPPossible rework on path checking on function civicrm_user_form_validate for 7.x branchI have had some issues with a civicrm profile validation (even with the default `Name and Address`) when it was being exposed in the drupal user registration page after adding some ajax there.
Problem that appears when you ajaxify the ...I have had some issues with a civicrm profile validation (even with the default `Name and Address`) when it was being exposed in the drupal user registration page after adding some ajax there.
Problem that appears when you ajaxify the form itself, is that contents are getting replaced. When this happens, `civicrm_user_form_validate` doesn't work. Specifically, arg(0) & arg(1) are changing (see below).
Searching a little bit more, I have noticed on [line ~~681~~ 707](https://github.com/civicrm/civicrm-drupal/blob/7.x-master/civicrm.module#L707) that there's an arg() comparison so that Civi can understand what path users are coming from ([here](https://github.com/civicrm/civicrm-drupal/blob/7.x-master/civicrm.module#L694))
May I suggest (i can make a MR) instead of doing a path search using the arg() variable, check the form `#action` or `#user_category` instead, like:
* `$register = (($form['#action'] == '/user/register' || $form['#action'] == '/admin/people/create') ? TRUE : FALSE);`
or
* `$register = (($form['#user_category'] == 'account' || $form['#user_category'] == 'register')) ? TRUE : FALSE);` (This is taken from `user_account_form_validate` [function here](https://api.drupal.org/api/drupal/modules!user!user.module/function/user_account_form_validate/7.x))
This way, validation is always there, as long as the form `#action` or `#user_category` keeps the same name(s).
One relatively easy way to reproduce is this:
On a/any environment having Drupal 7.x:
* Download and enable [bootstrap](https://www.drupal.org/project/bootstrap) as the default theme
* Download and enable [bootstrap_login_modal](https://www.drupal.org/project/bootstrap_login_modal) which will add AJAX to the user login and user register form(s). This will also cause the non-validation issue i am referring to.
* Try to register yourself and don't add a first and last name, validation will not kick-in.
Now change the civicrm.module on line 681 with the above and re-try to register yourself. Validations will now work.
There is another issue there but it'm still looking at it: The warning comes back, eg. First name is a required field but the CiviCRM profile fields do not light up, they don't inherit the class `.has-error`.