🇫🇷France @Jérôme Dehorter

Lille
Account created on 6 January 2015, over 10 years ago
  • Drupal Developer at SNCF 
#

Recent comments

🇫🇷France Jérôme Dehorter Lille

Hi,
I use menu-entity-index:rebuild-index main to index my main menu but I need to index moderation statefor unpublished content. Index with the form works well but command menu-entity-index:rebuild-tracker not working.

Command "menu-entity-index:rebuild-tracker" is not defined.

Can you tell me how to do that ?

🇫🇷France Jérôme Dehorter Lille

Hello scotwith1t
With Entity Usage it is not possible to have the number of pages containing the media if the media is added via paragraph.
This module allows that.

🇫🇷France Jérôme Dehorter Lille

Hi,
On our site we have media in reference to parent paragraphs, so I tried the command:
drush media-entity-usage:recalculate meu_paragraphs.persistance media
I have this error

Unable to decode output into JSON: Syntax error                                                                                                                                                                                                                                                                                                                                                          
TypeError: in_array(): Argument #2 ($haystack) must be of type array, false given in in_array() (line 29 of /app/drupal/www/modules/contrib/media_entity_usage/src/Service/MediaUsagePersistance.php).

So I tried the command described in example :
drush media-entity-usage:recalculate meu_node.persistance node
I have exactly the same error

🇫🇷France Jérôme Dehorter Lille

Hi,
The patch works with Drupal 10.3 and MIE 8.x-1.6
Thanks

🇫🇷France Jérôme Dehorter Lille

Hello,
Not working on our website with complex or simple mode. Only the first term is saved.

🇫🇷France Jérôme Dehorter Lille

Hi,
I don't have quite the same problem.
Currently I have a site with 2 languages, French by default and English second.
I have the options enabled:
- Include the current page as a segment in the breadcrumb
- Include the front page as a segment in the breadcrumb
- Use menu title when available
- Add current breadcrumb as structured data.
- Follow redirects.

On the default language of the site, in our case French, everything works fine but in English, the Use menu title when available option is not taken into account and in the breadcrumb it is the title of the page which is added.

🇫🇷France Jérôme Dehorter Lille

Hi jvandooren,
Sorry for the late response.
On our site we have 2 languages, French by default and English second. Without the patch, when I click on the English flag to translate, I am redirected to the translation page in /fr, which is not a problem as long as there is no relational field like media or other content. The relational fields offer media in French and we want to have media in English or other English content which is not possible because autocomplete does not display them.

The patch therefore forces when clicking on the English flag on the translation page in /en which displays the correct content or media in the language chosen by clicking on the flag.

Have a good day.

🇫🇷France Jérôme Dehorter Lille

Hi,

I have an error when applying the patch to the cache_utility.info.yml file while everything works on the cache_utility_admin_toolbar.info.yml file.

I use the following lines in my composer.json :

"drupal/cache_utility": {
    "[Needs review] https://www.drupal.org/project/cache_utility/issues/3461573" : "https://www.drupal.org/files/issues/2024-07-15/cache_utility.1.2.0.rector.patch"
}

or

"drupal/cache_utility": {
    "[Needs review D11] https://www.drupal.org/project/cache_utility/issues/3461573" : "https://git.drupalcode.org/project/cache_utility/-/merge_requests/4.patch"
}
🇫🇷France Jérôme Dehorter Lille

Hi @ptmkenny,

As a workaround, do not use the default includes feature of JSON:API Extras; that seems to be the cause of this issue.

I don't understand this answer because if I don't use the Default include list field (see screenshot), I don't have any base includes.
For information, here is our page structure :
Page -> parent paragraph -> list of child paragraphs containing one or more media.

Could you explain to me how to add the inclusion of paragraphs and media without using this field ?

🇫🇷France Jérôme Dehorter Lille

Hi @walkingdexter,
By selecting Excluded languages ​​settings, all urls as well as alternate urls are deleted.

In our use, the French language is main and we have pages translated into English and it is not possible to have English pages alone.
Our client therefore asked us to keep the alternate urls for the links with the translated pages but does not wish to keep the urls of the English pages.

🇫🇷France Jérôme Dehorter Lille

Hello,
Patch not working on our website. After refresh data is still missing.

Drupal 10.3.10
Next.js 2.0.0-beta1
jsonapi_extras 3.26.0
jsonapi_image_styles 3.0.2
jsonapi_include 1.8.0
jsonapi_menu_items 1.2.6
jsonapi_resources 1.2.0
jsonapi_search_api 1.0.0_search_api
jsonapi_advanced 1.0.6

🇫🇷France Jérôme Dehorter Lille

Hello,
I don't think this is due to SOLR because I have the same problem with my index search API linked to Database Search and Facet extension.

I have a multilingual site and to filter by language I change the url /en/jsonapi/index/ and
/fr/jsonapi/index/ because the langcode facet does not work.

When I add page[limit]=50 I have 25 items in the data and if I change this limit to 25, I have 13 items while I have 66 in total.

🇫🇷France Jérôme Dehorter Lille

Good morning,

I tested the allow_keeping_includes branch with the Do not minimize the response enabled configuration and I don't see any change.

When the cache is empty, I will see the JSONAPI response of my content and everything is well integrated. I refreshed the page and nothing is present.

Drupal 10.3.2
Next 2.0.0-beta1
Multiple JSON:API extensions

🇫🇷France Jérôme Dehorter Lille

Hi,

I got this error on "Not in Database" choice
TypeError : scandir(): Argument #1 ($directory) must be of type string, false given dans scandir() (ligne 127 de /opt/drupal/www/modules/contrib/auditfiles/src/Auditor/AuditFilesNotInDatabase.php).

I think this error occurs because the directory is remote on our S3 and not local.

🇫🇷France Jérôme Dehorter Lille

Hi,
I encountered the same problem with the 2.0.0 branch. I am attaching the patch to resolve this issue.

🇫🇷France Jérôme Dehorter Lille

Hi,

Patch https://git.drupalcode.org/issue/jsonapi_extras-3473990/-/commit/52aa046...
not working on my Drupal 10.3.2 with Schemata 1.0.0 and JSON:API Extras 3.25.

I got this error
Fatal error: Declaration of Drupal\jsonapi_extras\Normalizer\SchemataSchemaNormalizer::normalize($entity, $format = null, array $context = []) must be compatible with Drupal\schemata_json_schema\Normalizer\jsonapi\SchemataSchemaNormalizer::normalize($entity, $format = null, array $context = []): ArrayObject|array|string|int|float|bool|null in /app/drupal/www/modules/contrib/jsonapi_extras/src/Normalizer/SchemataSchemaNormalizer.php on line 35

🇫🇷France Jérôme Dehorter Lille

Hi,

Thanks for the patches. It works for me on Drupal 10.3.1 & GDPR 3.1.0.

🇫🇷France Jérôme Dehorter Lille

Hello,

The module Permissions Policy ( https://www.drupal.org/project/issues/permissionspolicy ) does the job very well. Maybe integrating it as a Security kit submodule could be a good solution.

🇫🇷France Jérôme Dehorter Lille

Hi,
I try the patch on my wesite (D10.2.3 + Drush 12) and it works.
Thanks.

🇫🇷France Jérôme Dehorter Lille

Hello larowlan,

That's right, we have several multilingual projects and this would be to display language-specific menu items.

🇫🇷France Jérôme Dehorter Lille

Hello,

With this addition of "langcode" would it be possible to add the possibility of filtering in the API with ?filter[langcode] for example.

🇫🇷France Jérôme Dehorter Lille

A wonderful event. I was happy to meet you in Lille ! Next time Rennes !

🇫🇷France Jérôme Dehorter Lille

Hello,

This issue can be closed, a trailing is present in the file.

Production build 0.71.5 2024