Account created on 26 October 2019, over 5 years ago
#

Merge Requests

Recent comments

🇧🇪Belgium davidiio

We successfuly applied this issue merge request plain diff as a patch on drupal 10.2.7 with paragraphs 1.19
Issue is fixed for us.
Thanks

🇧🇪Belgium davidiio

Patch was not applying anymore so I copy code from latest patch and make a merge request with it.
Using plain diff as a patch seems to work for us, it applies and we have the default mode setting available in configuration.

🇧🇪Belgium davidiio

Hello,

We had this error showing when trying to edit any field using geocoder:

Attempt to update field Coordinates failed: The configuration property third_party_settings.geocoder_field.providers.googlemaps.checked doesn't exist.

note: We also use other modules affecting form field like field_permissions or required_by_role

After applying patch from this issue merge request error disapeared and field config was saved :)

Thanks :)

🇧🇪Belgium davidiio

Updating to latest version worked for me! I should have checked that first!
Thanks for your help jsacksick :)

🇧🇪Belgium davidiio

Hello we face the same problem here with commerce_mollie.

While placing logs around I figured out that the method that actually send the email is never called.

In InvoiceConfirmationSubscriber.php the sendInvoiceConfirmation() method is called and later invoicesList is populated but the destruct() method is never called.

I've never saw a service that implements DestructableInterface, is commerce_mollie supposed to call that destruct method? Is it something managed by Drupal?
What can I do?

Thanks for any help :)

🇧🇪Belgium davidiio

If just creating a directory by domain is enough for this to be a feature then this merge request is ready for review and I've made a patch out of it.

After applying the patch and set up at least two domains pointing on the same drupal installation and visiting them, boost cache file directory will be split between directories named after your domains.

🇧🇪Belgium davidiio

For consistency I have also edited getCachedFiles() to get only cached files by domain and be more precise in the description of the use_domain configuration field.

Now when using domain:
- Cache files are separated in domain related directories
- Purge and Generation works only on domain you are currently logged in.

I have just noticed while writing this, that the purge on boost_cron() method will work only on base domain so I still have to work on this.

🇧🇪Belgium davidiio

Thanks abhishek@kumar,

I have already done similar changes in the issue fork.
I'd like to have maintainers feedback before making a merge request or imprivement. Or maybe I should make it a merge request to get feedback?

🇧🇪Belgium davidiio

Hello,

We need this on our project so I worked on it and just created an issue fork.
I just added a "Use domain" field on configuration form and then use that in BoostCacheFile.php prepend (or not) the current domain to the uri.

We used that on some test site and it works, with or without domain cache files are created when visiting pages.

One inconsistency though is that when purging in admin interface it is purging every files for every domain while for generating files it generates only for current domain. So one improvement would be to harmonize how it is working there, or give possibility to generate or purge by domain or for all at once (but requires boost to know for which domains to generate cache files)

🇧🇪Belgium davidiio

davidiio made their first commit to this issue’s fork.

🇧🇪Belgium davidiio

Thank you for your feedback!
Yes I wanted to use a general approach but ending up making it quickly work for nodes.

Here is an updated patch that I tried, it worked on nodes, terms and users and don't seem to have any side effects on other entity types.
It affects only entities that have a toUrl() method so only the ones that are actually cached by boost since it cache them using their paths as far as I understand. I did see some entities passing hasLinkTemplate and returning a URL but in the end file does not exists and so this code has no effect. For example when editing a menu item in admin interface, the entity menu_link_content does return a URL like /admin/structure/menu/item/19/edit" for example but no boost cache file will be found.

  public function delete(\Drupal\Core\Entity\EntityInterface $entity) {
    if(!$entity->hasLinkTemplate('canonical')) {
      // If the entity does not have a canonical link, it has no route, no path, no boost cache file
      // and we don't need to delete anything.
      // Plus $entity->toUrl() will throw an exception.
      return;
    }

    foreach ($this->languageManager->getLanguages() as $langcode => $language) {
      if(!$entity->hasTranslation($langcode)) {
        continue;
      }

      $entity = $entity->getTranslation($langcode);
      $path = $entity->toUrl()->toString();
      $uri = $this->boostCacheFile->getUri($path);

      if (!file_exists($uri)) {
        \Drupal::logger('boost')->error('Delete route @uri can not be done.',
          [
            '@uri' => $uri,
          ]
        );
        continue;
      }
      $this->boostCacheFile->delete($uri);
    }
  }
}

We will keep testing and iterating.
Thank for your help!

🇧🇪Belgium davidiio

Hi,

We installed boost on Drupal 11.1.3 with patch from https://www.drupal.org/project/boost/issues/3428282 📌 Automated Drupal 11 compatibility fixes for boost Needs review and as far as I can tell the dynamic property issue can be solved by just creating the property in the class BoostCacheGenerate.php

We added

  /**
   * BoostCache file.
   *
   * @var \Drupal\Core\Config\ConfigFactoryInterface
   */
  protected $config;

And we were able to use button "Generate entity paths default set" when filling the option "Entity path strategy (default set)" with "node:article" it generated boost cache files for articles.

It also worked with "xml sitemap paths to crawl and process" set to "/sitemap.xml" (sitemap generated with the module simple_sitemap) and clicking "Generate xmlsitemap (crawl) paths"

🇧🇪Belgium davidiio

Hi,

We need this to work on some of our websites and we thought that simply start by deleting boost cache file when a node is updated or deleted is enough.
We don't know how to know every page using that node but we though that we might include a configuration field with a list of views path we want to always update when nodes are updated or deleted.

Here is a patch if anyone is interested. It adds a cache.entity service that exposed a delete methode that take a node in parameter. It gets all paths for that node (languages) and try to delete associated boost cache file on hook_entity_type_update and hook_entity_type_delete

Sorry for not working on the issue fork but I wasn't sure how to do this and wanted to try fast on our installed boost module.

🇧🇪Belgium davidiio

I confirm that by applying this patch we were able to enable the module.

🇧🇪Belgium davidiio

We were able to install commerce_mollie on Drupal 11.1.5 with commerce 3 using this issue fork.

When we composer require drupal/commerce_mollie, it did not complain about mollie/mollie-api-php missing but had an error message when trying to activate commerce_mollie in Drupal interface.

Then I did composer require mollie/mollie-api-php and it installed version 3 which is not supported so we had to composer require mollie/mollie-api-php:^2 after running through some errors.

All of this is weird because commerce_mollie requires mollie-api 2 in its composer.json file

    "require": {
        "drupal/commerce": "~2.20 || ^3.0",
        "mollie/mollie-api-php": "~2.0"
    }

But anyway in the end it is working

🇧🇪Belgium davidiio

Thanks almunnings I understand now why it is necessary, but still I don't get why "items" is working and "elements" does not if it is just a way to differenciate singular and plural forms any kind of suffix could do, right?

Anyway, I agree that "items" is a pretty universal word to understand that it is somehow about multiple units and if it is working it is best to use that instead of trying to make it in multiple languages.

🇧🇪Belgium davidiio

To be honest I don't know what is this part of graphql_compose code supposed to do, I don't have use for pluralizing or singularizing my content type name or field name because If I name it Tags in Drupal it is because I want it to be plural why would I use a feature to singularize it?
Plus It is possible to rename fields in graphql compose schemas.

For me, if "items" works and "elements" does not, go for "items" bu I have no idea what I am doing here, please do what is best for your module.

🇧🇪Belgium davidiio

Sorry almunnings but I am not sure this resolves the issue.

The approach to just add 'items' was better than adding 'elements' without accents.

With the correction you've made in LanguageInflector.php I see termTagsElements in the explorer but have a graphql error

{
  "errors": [
    {
      "debugMessage": "Cannot return null for non-nullable field \"Query.termTagsElements\".",
      "message": "Internal server error",
      "extensions": {
        "category": "internal"
      },
      "locations": [
        {
          "line": 2,
          "column": 3
        }
      ],
      "path": [
        "termTagsElements"
      ]
    }
  ]
}

If I override code with $plural .= '_items'; instead of $plural .= '_' . u($suffix)->ascii()->lower()->toString(); I end up with termTagsItems which is working without errors

🇧🇪Belgium davidiio

I have used your merge request .diff file (https://git.drupalcode.org/project/graphql_compose/-/merge_requests/120....) on Drupal 11.1.5, graphql 8.x-4.11, graphql_compose 2.3.0. It applies and singuliarize option can be on or off without error.

I might not be the best to say it is RTBC, but for me, it is working :)
Thanks!

🇧🇪Belgium davidiio

Yes, I suppose.
In french element is supposed to be "élément" (if displayed to a human reading french) but these strings are not supposed to be displayed so it is ok without accent, I would never name a variable with accents.

🇧🇪Belgium davidiio

YES :)
Changing $this->t('items') to 'items' does eliminate error for us.

Thanks a lot!

🇧🇪Belgium davidiio

Thanks for your answer!

We are using graphQL Version : 8.x-4.11
Following the stacktrace the webonyx error goes back to graphql module

/web/modules/contrib/graphql/src/Plugin/GraphQL/Schema/AlterableComposableSchema.php(173): GraphQL\Language\Parser::parse('extend type Que...', Array)

When logging the $extensions variable it is trying to parse I have found a very long string. It looks like all the content types and terms we exposed with graphql_compose and in this string some words appear in French especialy the word "Element" is translated to "Élément" in different places like

 extend type Query {
      """List of all TermTags on the platform."""
      termTagsÉléments(
        """Returns the elements that come after the specified cursor."""
        after: Cursor

or in this part that looks like a view on which we exposed the number of "element per page"

        """The page number to display."""
        page: Int = 0
        """Éléments par page. Allowed values are: 5, 10, 12, 20, 24, 25, 50."""
        pageSize: Int = 20

I was able to remove the É from the "Éléments par page" by configuring the view but other strings like "termTagsÉléments" remain even when remmoving all accents from "Element" in /admin/config/regional/translate

This is a weird string because only the "Element" word is translated and it is translated event on part of words like in "termTagsÉléments".
We had this same issue on a prod site when activating a module and some translations were updated. Is it possible that core translation introduced some bug?

🇧🇪Belgium davidiio

Happy to see this going forward.

Ihave installed toolbar_menu 3.1 on drupal 11.1.5 and applied this merge request .diff file as a patch and it works as expected!

Thanks for making this happen dydave :)

🇧🇪Belgium davidiio

After some disabling and enabling of graphQL and GraphQL Compose and returning to the explorer page between modifications we also notice that unticking the "Enable Singuliarize" checkbox in the "String inflector" tab of graphql_compose settings produces the same bug.
Maybe this issue is a graphql_compose issue and not a graphql issue.

🇧🇪Belgium davidiio

Hello,

We face the same issue here once with an apdated site (we restored backups to make it work again) and now we face it with a new dev website with Drupal 11.1.5 and GraphQL 8.x-4.11 and Graphql_compose 2.3.0.

We noticed this error GraphQL\Error\SyntaxError : Syntax Error: Cannot parse the unexpected character "\uc9". dans GraphQL\Language\Lexer->readToken()

And realized that this bug happend only after translation updates, if we revert our prod site, enable a new module that updates translation we have this bug again.
Are any of you using multilingual sites? Maybe this is a lead to find out what is wrong here?

🇧🇪Belgium davidiio

We are not able to apply this patch using mglaman/composer-drupal-lenient (along with the drupal 11 compatibility patch) on a drupal 11 with Commerce 3
Composer still complains about commerce_mollie requiring commerce 2.

Should this issue (and drupal 11 compatibility) be prioritize higher? Since drupal 11 is here and commerce 2 is not compatible with drupal 11 all new commerce installs will be in commerce 3.

This module not being compatible with D11 and Commerce 3 means all users of commerce_mollie are unable to upgrade their website.

🇧🇪Belgium davidiio

Same probleme here, we are unable to save our view due to this error.
I don't know why there is a default file to load but using File::load() on null is not possible.
Checking for null on lines 317 and 357 of src/plugin/views/display/XlsDataExport.php did make it possible to save the view
But maybe there are some other places to look for this problem. Sorry we don't have time to look more into this issue right now

🇧🇪Belgium davidiio

Hello,

We had the same probleme here on drupal 10.3.6, user_history 1.1.0
When clicking "initialize" batch process won't start because a type is missing somewhere on field storage config creation.
Applying patch from first post does make it work.

Error:

Drupal\Core\Field\FieldException : Attempt to create a field storage changed with no type. dans Drupal\field\Entity\FieldStorageConfig->__construct() (ligne 271 de /web/core/modules/field/src/Entity/FieldStorageConfig.php).

Trace:

#0 /web/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php(222): Drupal\field\Entity\FieldStorageConfig->__construct()
#1 /web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(232): Drupal\Core\Config\Entity\ConfigEntityStorage->doCreate()
#2 /web/core/lib/Drupal/Core/Entity/EntityBase.php(523): Drupal\Core\Entity\EntityStorageBase->create()
#3 /web/modules/contrib/user_history/user_history.batch.inc(54): Drupal\Core\Entity\EntityBase::create()
#4 /web/core/includes/batch.inc(296): user_history_add_tracked_fields()
🇧🇪Belgium davidiio

On multivalue tablefield a new empty table is added avery time the node is updated making the edit form longer and longer and databse full with empty data if the user don't manually delete the table from the form.

🇧🇪Belgium davidiio

Thanks for your answer Megachriz. It is not blocking for us anyway. I will investigate if I have time.

🇧🇪Belgium davidiio

Hello,

We have the same issue here and this patch from a somehow similar issue didn't fix the porblem:
similar issue: https://www.drupal.org/project/feeds/issues/3189557 🐛 Setting a target for "langcode" field will sometimes throw "this field cannot hold more than 1 values" Needs work

We have a multilingual site we have imported users and then we tried to import articles and set the uid as the feeds_item.guid of the previously imported user and faced the same issue

Authored by (uid): Authored by: this field cannot hold more than 1 values

We have created a simple environnement on simplytest.me and the issue is the same
You can try it here https://master-hfr0tovoioejutcmmgxmlqbhohe8jk8x.tugboatqa.com with login/pass = admin/admin

🇧🇪Belgium davidiio

I really don't get it. I also tried it on simplytest.me and it worked on standard drupal 10.3.6 and burndown 1.0.43.
But when trying a new standard drupal 10.3.6 with burndown 1.0.43 on my server I have the error.
I don't know what's going on but thanks for your help!

🇧🇪Belgium davidiio

I have tried desabling and reenabling the module.
When module is enable we can't create any field on any content type, juste tried on Article, when clicking on "create new field" we get the error.
I will investigate more

🇧🇪Belgium davidiio

Hi Jeremy, I continue for Matthieu.

We have tried 1.0.43, 42, 41 and also 1.0.x-dev and always have the issue.

The file burndown.field_type_categories.yml is present in burndown/config/install and also in our drupal /config/sync folder:

Burndown:
  label: 'Burndown Fields'

Cache clear did not help.

Do you see anything wrong here?

🇧🇪Belgium davidiio

We applied patch from #18 and media library edit modal now diaplays save button.
Tried it on Drupal 10.3, gin 3.x-rc11 and media_library_edit 3.0.3

🇧🇪Belgium davidiio

I can't upgrade this website to D10 right now. We're stuck with 9.5.11 and so we can't use BEF 7 version. I could try it on other sites but here I would like it to work on D9.5.11 and BEF 6.0.6. Downgrading to BEF 6.0.5 made it work though.

We have a view of node filtered by a date field (not the created date) we enabled BEF and selected the datepicker widget for this exposed date filter and got the warning I mentioned, there is nothing else I could say about this issue. When I don't use the datepicker filter is working.

🇧🇪Belgium davidiio

After changing the OR for a AND operator in my previous commit I was able to use the module without the log
Cannot use view object to get third party settings.

For a basic configuration the module successfully removed duplicates from view.

1. Create a few articles
2. Add a reference field for articles in Basic Page.
3. Create a few basic pages referencing multiple articles.
4. Create a view of Basic pages
5. Add a relationship to article
6. Note that some basic pages titles are duplicated
7. In the title field config in "Views Distinct settings" tick "Filter this field"
8. Note that duplicated title are removed from the view

🇧🇪Belgium davidiio

davidiio made their first commit to this issue’s fork.

🇧🇪Belgium davidiio

I 've been working on this recently for our projects and improved it a little. The first menu element was displayed as it has children even if it was not the case. Now this is fixed.
I have created an issue fork and a merge request for this to be reviewed.

🇧🇪Belgium davidiio

I have made an issue fork '3296982-refactoring-and-D10-readiness' with a merge request.
But before that I have pushed a poorly named 'dev' branch from local. When I try to delete it I have a message saying "Prevented by server hooks"...

🇧🇪Belgium davidiio

Hi there,

We have successfully upgraded our website to Drupal 10 and use Download by combining this rector patch with the changes mades in this issue refactor an improve the code
Now all code combined in this patch attached if you want to make a new release for D10

🇧🇪Belgium davidiio

This patch is working.
It would be great to make the change in the module code and create a new version

🇧🇪Belgium davidiio

Hello again,

Duration seems to be properly updated when using code like this:

$entity->{$start_field}[$delta]->duration = ($entity->{$end_field}[$delta]->end_value - $entity->{$start_field}[$delta]->value) / 60;

But I would really appreciate if someone with mre knowledge about smart_date could check if this is a bug or not and if my approach is correct.

Thanks :)

🇧🇪Belgium davidiio

I have applied this patch using lenient https://www.drupal.org/docs/develop/using-composer/using-drupals-lenient...
Patch is applied, I have updated my site to D10 without problem and email_blocker is working.

Please update module so we can use it properly

🇧🇪Belgium davidiio

Thanks for your answer.
I thought avoiding splitting would be the solution but since it is how it is supposed to be done I have looked somewhere else and configuring the fee to be applied only when order amount is greater than 0 solves the problem for us now.

🇧🇪Belgium davidiio

Applying patch #2 made all operations links/bulk operation checkboxes in our views appear "broken/missing handler".
Removing the patch made it work again we can't use it like this but we don't have time to improve the patch now or investigate more on this.

🇧🇪Belgium davidiio

Thanks Murrrayw for your answer and solutions options.
Much appreciated!

🇧🇪Belgium davidiio

Hi everyone!
We had the same problem using the module selective_better_exposed_filters trying to reduce the number of options of a "taxonomy term with depth" filter.
I made small ugly patch.
Noticing the $filter->definition['field_name'] could not be found and so the $field_id variable could not be set I have set it after using this code:

if($field_id == NULL) {
   $field_id = $filter->options['reference_field'];
}

I guess a better approach would be to check if the filter is indeed a "taxonomy_term_with_dpeth" filter but I really could not find this info when inspecting the $filter variable :(

🇧🇪Belgium davidiio

Patch failed to apply on D10 but I could make it work on D10 by copy/pasting same code at different line numbers in files. Also I could not find this test file in D10.1 :

/core/modules/media/tests/src/Kernel/ResourceFetcherTest.php

🇧🇪Belgium davidiio

Sorry for re-opening this issue but I think an ->accessCheck() is still missing in /src/Form/OrejimeSettingsForm.php, around line 387.
It prevents from opening de module configuration page.

Production build 0.71.5 2024