Account created on 21 April 2021, over 3 years ago
#

Recent comments

The AJAX Error is fixed now. But we are facing a new issue.

  1. Add 2 accordion items and save the page. When you go to the page it looks good without any error.
  2. Edit the page and do something like select multi select/border and save the node. After the page is saved we are seeing only the first accordion item.
  3. When we edit the page again, we see the accordion items are missing.
  4. This is happening whenever you modify something in the accordion.
  5. Also we are not able to add more than 2 accordion items. We are not getting any errors when we try to add the 3rd accordion item but it just opens the second item again and does not create the 3rd accordion item.

We are on Drupal core 10.3.6, Embedded Content 2.0.2 and USWDS CKEditor Integration 3.1.x. If the accordion is fixed in this version then should we change anything else to get it working?

We are using the 3.1.x branch and we are not able to add/remove accordions. When I add just one accordion item I am able to embed without any error in the console, but after the saving the node page is empty(but the accordion is still there while editing the page).

Yes I added the z-index and got it working for now.

We are using USWDS CKEditor Integration and linkit. When I try to add links inside the accordion in CKEditor Integration, the link popup doesn't show up. While checking I noticed that the link poup inside the accordion was beneath the accordion modal. So I added z-index for now and it working. But I think this is related to modal inside modal issue.

We are having the AJAX error in Drupal 10.3.6. We are using USWDS CKEditor Integration module and when we try to add items its throwing the AJAX error.

message: "\nAn AJAX HTTP error occurred.\nHTTP Result Code: 200\nDebugging information follows.\nPath: /embedded-content/dialog/default/basic?_wrapper_format=drupal_ajax&ajax_form=1\nStatusText: OK\nResponseText: ", name: "AjaxError", stack: "/sites/default/files/js/js_54Bqj91luZB1sILRXFO6ddl3QivicUIH8-mKA_zRbS0.js?

After converting to embedded content, when we try to add/remove accordion item, getting an AJAX error

Ah! This was the reason we had the issue. Its working now with the MR and the latest version of USWDS. Thank you!

With the patch it was working fine until yesterday, and today when we did the composer update which updated the USWDS merged version the editor is blank and we are seeing this error in the console. Attached the screenshot of the same.

Uninstalling CKE5 fullscreen fixed the issue. I think most of the CKE5 plugins are not compatible with the upgrade. Instead of the CKE5 plugin I tried using the fullscreen in the CKE5 plugin pack and that's working as expected

We are using CKE5 Full screen and USWDS CKEditor Integration.

We are not using filefield_paths module in our site, but still we are having the same issue. We are not able to add a new field, we ahve tried it in drupal 10.2.x as well as 10.3.x

We do not have CKE5 line-height installed in our site, but still we have the same issue after upgrading to 10.3

Even after applying the patch, we are not able to add a new field in any of the existing content type. When we try to add a new field, its throwing error as "AssertionError: "Geolocation" must be defined in MODULE_NAME.field_type_categories.yml in assert() (line 186 of /app/web/core/lib/Drupal/Core/Field/FieldTypePluginManager.php)."

We are having the same issue and we are not using the wrong branch. We just used imported the database from another environment in our dev environment so we did not had to do cim as well. So not sure what else we should try. This is the error when we tried to delete the module,

In ExceptionHandler.php line 56:

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'dbname.auth
map' doesn't exist: DELETE FROM "authmap"
WHERE "provider" = :db_condition_placeholder_0; Array
(
[:db_condition_placeholder_0] => open_connect.hq
)

In StatementWrapperIterator.php line 111:

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'dbname.auth
map' doesn't exist

It was from a custom module, where we were gathering published nodes and sort them by Title. Thank you!

Thank you! This patch fixed the updb error. But I am getting this error "Drupal\Core\Entity\Query\QueryException: Entity queries must explicitly set whether the query should be access checked or not. See Drupal\Core\Entity\Query\QueryInterface::accessCheck(). in Drupal\Core\Entity\Query\Sql\Query->prepare() (line 141 of /app/web/core/lib/Drupal/Core/Entity/Query/Sql/Query.php)" when I load any page. Admins pages are working fine. Any idea on what's causing this error? I couldn't figure out what's causing this. Any help would be appreciated

Even after applying the patch, views timestamp_formatter postupdate fails. We are trying to upgrade the site from 9.5 to 10.1.

The patch is working when there is a main item a parent and a child like home - test - testchild, but I am having issues when there is just one parent menu item like home-test. In this case when I am on the test page the trial is not working which was working fine in the previous version.

Couldn't get this working. Replaced with the webform element key, but its not working as expected. I see the handler in the webform, but its not working when we use the key. And not sure what else should be replaced with first and second as there is no field names for the webform elements. I just see something like "name=test", but that's also not working.

Oh! EntityForm is not available for Drupal 9, wonder if there is anything else that can be used to achieve this feature.

sebaz Did you get this working? We have a similar requirement where we need to populate the second dropdown values based on the selected value in the first dropdown. Entity reference view and business rule works fine in a node, but when we try to do the same in the webform its not working and not able to filter the entity select values.

solideogloria Thanks for the response. Regarding first and second in the handler, should those be replaced by the webform field keys?

solideogloria - Did you end up creating a custom module for this? We have created 2 entity select dropdown with state and city taxonomies. But we are not clear on how to achieve the dependency between state and city dropdown. As you mentioned, Business rules module is not helping within the webform. Could you please add some more steps on how you achieved this?

This was because of the issue with the embedded content module and its fixed now. Sorry I should have closed it.

When we click an accordion, the open accordion closes and the new one opens instead of having multiple accordions open. We are using USWDS v2. And looks like data-allow-multiple is being used in the code and USWDS version 2 used aria-multiselectable="true". But I am not sure if that's why multiselect is not working for us. Here is our HTML code and it looks right as per the code component in USWDS,

<div class="usa-accordion  usa-accordion--bordered  usa-accordion--multiselectable" data-allow-multiple>
      <h4 class="usa-accordion__heading">
      <button type="button" class="usa-accordion__button" aria-controls="0" aria-expanded="false">
        Test Accordion1
      </button>
    </h4>
    <div id="0" class="usa-accordion__content usa-prose" hidden="">
      <p>
        Test Accordion Content
      </p>
    </div>
      <h4 class="usa-accordion__heading">
      <button type="button" class="usa-accordion__button" aria-expanded="false" aria-controls="1">
        Test Accordion1
      </button>
    </h4>
    <div id="1" class="usa-accordion__content usa-prose" hidden="">
      <p>
        Test Accordion Content
      </p>
    </div>
      <h4 class="usa-accordion__heading">
      <button type="button" class="usa-accordion__button" aria-expanded="false" aria-controls="2">
        Test3
      </button>
    </h4>
    <div id="2" class="usa-accordion__content usa-prose" hidden="">
      <p>
        Test3
      </p>
    </div>
  </div>

With the latest version, we are not able to save the content after the merge. And when I checked the code, its missing this "$form['#modal_selector'] = '#embedded-content-dialog-form';" in the EmbeddedContentDialogForm. So I had to use this patch to get it working.

Missed to add the new field in the module file. Here is the new patch

Can we add this feature for cke5? Also multiselect option is not working for the accordions.

Anybody got this fixed? After applying the patch the deprecation error is fixed, but as mentioned in comment #5 now we are not able to edit the existing embed content. When we double click on the existing embedded content its opening a new dialog instead of opening the dialog with the existing values

We are also having the same issue. After adding a component, when we try to edit it, its creating new component instead of editing the existing content. And the patch is not working for us.

All the components are working but when I try to edit the content of the added component, I am not able to edit it unless I use the source to edit the content.

Yes I have it installed. Summary box and Alert components are working. I am getting errors only when I select Accordion or Process List

I am seeing this error in the console for accordion
"AJAX HTTP error occurred.\nHTTP Result Code: 200\nDebugging information follows.\nPath: /embedded-content/dialog?_wrapper_format=drupal_ajax&ajax_form=1\nStatusText: OK\nResponseText: Warning: Undefined array key "multiselect" in /app/web/modules/contrib/uswds_ckeditor_integration/src/Plugin/EmbeddedContent/Accordion.php on line 90\nWarning: Undefined array key "heading" in /app/web/modules/contrib/uswds_ckeditor_integration/src/Plugin/EmbeddedContent/Accordion.php on line 112"

This error for the processlist,

AJAX HTTP error occurred.\nHTTP Result Code: 200\nDebugging information follows.\nPath: /embedded-content/dialog?_wrapper_format=drupal_ajax&ajax_form=1\nStatusText: OK\nResponseText: Warning: Trying to access array offset on value of type null in /app/web/modules/contrib/uswds_ckeditor_integration/src/Plugin/EmbeddedContent/ProcessList.php on line 94

I am using https://www.drupal.org/project/uswds_ckeditor_integration with the embed content. But when I click on the embed content icon, its showing the loading icon for a second but doesn't load the modal window with the dropdown. When I debugged I am seeing AJAX error as below,
nAn AJAX HTTP error occurred.\nHTTP Result Code: 200\nDebugging information follows.\nPath: /embedded-content/dialog\nStatusText: OK\nResponseText: Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /app/web/core/lib/Drupal/Component/Utility/Unicode.php on line 477\nDeprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /app/web/core/lib/Drupal/Component/Utility/Xss.php on line 69\n

YAY, its working! After making these changes, I am able to enable the module without the error I had before. But I am still not able to open the embed content popup. When I check the error message, there is an AJAX error related PHP deprecation of the strlen in the embed content module.

I even tried with a fresh drupal 10 and still its throwing the same error. I just installed "ckeditor5_embedded_content" and "uswds_ckeditor_integration" modules and enabled both the modules. Then when I try to configure the USWDS CK5 text editor and got the website encountered an error message. So when I check the logs its the same error as I mentioned above. Attaching the screenshot of the same.

We are not able to figure out what's throwing that error. Could it be Drupal 9.5.3?

We are using Drupal 9.5.3 and right after installing the UWDS integration module, its not letting us edit the USWDS editor and throwing the error.

Please check the comment #109,where I specifically mentioned that the patch is failing with the alpha version. We had to update the module as it was causing issues with the required field conditions, so we can't lock it to the dev version.

I tried doing a fresh install and enabled the uswds_ckeditor_integration:^2.0@alpha version and when I went back to edit the text format its throwing the error "Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException: The CKEditor 5 "uswds_ckeditor_integration_ckeditor5_overrides" provides a plugin class: "\Drupal\uswds_ckeditor_integration\Plugin\CKEditor5Plugin\UswdsOverrideDefaults", but it does not exist. in Drupal\ckeditor5\Plugin\CKEditor5PluginDefinition->validateDrupalAspects() (line 174 of /app/web/core/modules/ckeditor5/src/Plugin/CKEditor5PluginDefinition.php)."

Not sure if you are tried enabling the overrides in the cke4, because its working in CKE4 and not in CKE5. In CKE5 I am not even able to edit the text format after installing the ckintegration 2.0@alpha version. And when I try to lock to a lower version, I am not seeing the USWDS overrides or the accordion, alert or any other style buttons

Production build 0.71.5 2024