Sorry, I can't find the view... It also confusing me. I close the bug.
Sorry, this option already exists. In the language list you can select "Language of the current page" which is very nice
I got the same issue... could not find the steps to reproduce.
As a quick dirty fix, I have changed line 320 of web/core/modules/views/src/Plugin/views/query/Sql.php
into
'#default_value' => isset($this->options['query_tags']) ? implode(', ', $this->options['query_tags']) : NULL,
Here is the patch
@thomaswalther I am talking about not translatable paragraphs. Which should not be edited by translators.
We can compare this paragraph field with any other not translatable multi-value fields. A not translatable multi value field can be re-ordered in the translated node, we can also add/delete a value. This is the regular Drupal's behavior.
Why the not translatable paragraph fields does not follow the same rules?
>Drupal does not allow to change multiple translations at once and that's exactly what would happen. This is not a bug, this is by design and will and can not be changed.
I don't follow you because:
- The field is not translatable
- This can be done with another field type: like a (not translatable) multivalue text field
I changed the category into feature request
I confirm #60 apply for D9.5
I found the origin of the problem: it was a simple translation error! The french string was bla bla <strong>bla bla</strong>
and the dutch string was bla bla </strong>bla bla<strong>
.
This simple error (closing tag before opening tag) breaks the page and big pipe
@Wim Leers : you were right at the very begining when you said "your HTML markup is invalid"
I am very sorry for the time being lost!!!!
I confirm #10 is solving my issue
@Wim Leers regarding this
The toolbar_menu module causes an ENORMOUS amount of HTML to be transfered on each page load apparently?
Do you think it is a toolbar_menu bug?
@Win Leers, many thanks to dig into this: I have removed twig comments and I have removed my forked olivero (it use the core's olivero)
Unfortunately, the console errors are still there (only in NL) and if I enabled Big Pipe my first tabs disappears.
Attached the produced html
The only way I found is to export as CSV and then, when opening the file, a dialog allow to set a format for each imported columns.
You can select the date columns and set the appropriate format.
An here is the french without errors
Here it is
Here it is.
Logged in as an admin, without big Pipe:
I have the NL page (with console errors)
and the FR page (without console error)
=>Sorry, I couldn't upload those files even with the txt extension or pasted into a doc file (odt): the ajax stuff quickly appears and disapear after I clicked on the upload button
=>I have made a compare between FR and NL and I didn't spot anything except regular translation changes
Here are the errors for the NL page
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:5914
Uncaught TypeError: drupalSettings.user is undefined
<anonymous> http://txs10/core/modules/contextual/js/contextual.js?v=9.5.9:15
<anonymous> http://txs10/core/modules/contextual/js/contextual.js?v=9.5.9:152
contextual.js:15:25
Uncaught TypeError: Drupal.contextual is undefined
<anonymous> http://txs10/core/modules/contextual/js/models/StateModel.js?v=9.5.9:8
<anonymous> http://txs10/core/modules/contextual/js/models/StateModel.js?v=9.5.9:45
StateModel.js:8:49
Uncaught TypeError: Drupal.contextual is undefined
<anonymous> http://txs10/core/modules/contextual/js/views/AuralView.js?v=9.5.9:8
<anonymous> http://txs10/core/modules/contextual/js/views/AuralView.js?v=9.5.9:27
AuralView.js:8:47
Uncaught TypeError: Drupal.contextual is undefined
<anonymous> http://txs10/core/modules/contextual/js/views/KeyboardView.js?v=9.5.9:8
<anonymous> http://txs10/core/modules/contextual/js/views/KeyboardView.js?v=9.5.9:30
KeyboardView.js:8:50
Uncaught TypeError: Drupal.contextual is undefined
<anonymous> http://txs10/core/modules/contextual/js/views/RegionView.js?v=9.5.9:8
<anonymous> http://txs10/core/modules/contextual/js/views/RegionView.js?v=9.5.9:38
RegionView.js:8:48
Uncaught TypeError: Drupal.contextual is undefined
<anonymous> http://txs10/core/modules/contextual/js/views/VisualView.js?v=9.5.9:8
<anonymous> http://txs10/core/modules/contextual/js/views/VisualView.js?v=9.5.9:50
VisualView.js:8:48
Uncaught TypeError: drupalSettings.user is undefined
<anonymous> http://txs10/modules/contrib/quickedit/js/quickedit.js?v=9.5.9:341
<anonymous> http://txs10/modules/contrib/quickedit/js/quickedit.js?v=9.5.9:374
quickedit.js:341:25
Uncaught TypeError: drupalSettings.path is undefined
<anonymous> http://txs10/core/modules/toolbar/js/toolbar.menu.js?v=9.5.9:8
<anonymous> http://txs10/core/modules/toolbar/js/toolbar.menu.js?v=9.5.9:89
toolbar.menu.js:8:20
Partitioned cookie or storage access was provided to “https://static.addtoany.com/menu/sm.24.html#type=core&event=load” because it is loaded in the third-party context and dynamic state partitioning is enabled.
Uncaught TypeError: pathInfo is undefined
<anonymous> http://txs10/core/modules/toolbar/js/escapeAdmin.js?v=9.5.9:11
<anonymous> http://txs10/core/modules/toolbar/js/escapeAdmin.js?v=9.5.9:26
escapeAdmin.js:11:7
Uncaught TypeError: drupalSettings.ckeditor is undefined
<anonymous> http://txs10/modules/contrib/ckeditor/js/ckeditor.js?v=9.5.9:192
<anonymous> http://txs10/modules/contrib/ckeditor/js/ckeditor.js?v=9.5.9:205
ckeditor.js:192:3
Uncaught TypeError: l.eu_cookie_compliance is undefined
<anonymous> http://txs10/modules/contrib/eu_cookie_compliance/js/eu_cookie_compliance.min.js?v=9.5.9:1
<anonymous> http://txs10/modules/contrib/eu_cookie_compliance/js/eu_cookie_compliance.min.js?v=9.5.9:1
eu_cookie_compliance.min.js:1:41
Uncaught TypeError: drupalSettings.path is undefined
url http://txs10/core/misc/drupal.js?v=9.5.9:101
fetchMissingMetadata http://txs10/modules/contrib/quickedit/js/quickedit.js?v=9.5.9:258
attach http://txs10/modules/contrib/quickedit/js/quickedit.js?v=9.5.9:290
attachBehaviors http://txs10/core/misc/drupal.js?v=9.5.9:24
attachBehaviors http://txs10/core/misc/drupal.js?v=9.5.9:21
<anonymous> http://txs10/core/misc/drupal.init.js?v=9.5.9:24
listener http://txs10/core/misc/drupal.init.js?v=9.5.9:14
domReady http://txs10/core/misc/drupal.init.js?v=9.5.9:20
<anonymous> http://txs10/core/misc/drupal.init.js?v=9.5.9:23
<anonymous> http://txs10/core/misc/drupal.init.js?v=9.5.9:26
drupal.js:101:5
Uncaught TypeError: drupalSettings.simple_popup_blocks is undefined
attach http://txs10/modules/contrib/simple_popup_blocks/js/simple_popup_blocks.js?v=9.5.9:8
attachBehaviors http://txs10/core/misc/drupal.js?v=9.5.9:24
attachBehaviors http://txs10/core/misc/drupal.js?v=9.5.9:21
<anonymous> http://txs10/core/misc/drupal.init.js?v=9.5.9:24
listener http://txs10/core/misc/drupal.init.js?v=9.5.9:14
domReady http://txs10/core/misc/drupal.init.js?v=9.5.9:20
<anonymous> http://txs10/core/misc/drupal.init.js?v=9.5.9:23
<anonymous> http://txs10/core/misc/drupal.init.js?v=9.5.9:26
simple_popup_blocks.js:8:28
Uncaught TypeError: path is undefined
attach http://txs10/core/misc/active-link.js?v=9.5.9:11
attachBehaviors http://txs10/core/misc/drupal.js?v=9.5.9:24
attachBehaviors http://txs10/core/misc/drupal.js?v=9.5.9:21
<anonymous> http://txs10/core/misc/drupal.init.js?v=9.5.9:24
listener http://txs10/core/misc/drupal.init.js?v=9.5.9:14
domReady http://txs10/core/misc/drupal.init.js?v=9.5.9:20
<anonymous> http://txs10/core/misc/drupal.init.js?v=9.5.9:23
<anonymous> http://txs10/core/misc/drupal.init.js?v=9.5.9:26
active-link.js:11:25
@Wim Leers: This is the default setting on my dev site.
But I have some more information on the browser console log
With BigPipe enabled:
If I display a not translatable node in the site default language: no error
If I display the same node in another language (in any languages except default), I have a lot of errors in the console (some are coming from bigpipe) and the primary tabs disappeared for some role (not for admin)
Uncaught TypeError: drupalSettings.bigPipePlaceholderIds is undefined
bigPipeProcessPlaceholderReplacement http://txs10/core/modules/big_pipe/js/big_pipe.js?v=9.5.9:21
bigPipeProcessDocument http://txs10/core/modules/big_pipe/js/big_pipe.js?v=9.5.9:45
timeoutID http://txs10/core/modules/big_pipe/js/big_pipe.js?v=9.5.9:56
setTimeout handler*bigPipeProcess http://txs10/core/modules/big_pipe/js/big_pipe.js?v=9.5.9:55
<anonymous> http://txs10/core/modules/big_pipe/js/big_pipe.js?v=9.5.9:61
<anonymous> http://txs10/core/modules/big_pipe/js/big_pipe.js?v=9.5.9:68
big_pipe.js:21:9
bigPipeProcessPlaceholderReplacement http://txs10/core/modules/big_pipe/js/big_pipe.js?v=9.5.9:21
forEach self-hosted:203
bigPipeProcessDocument http://txs10/core/modules/big_pipe/js/big_pipe.js?v=9.5.9:45
timeoutID http://txs10/core/modules/big_pipe/js/big_pipe.js?v=9.5.9:56
(Async: setTimeout handler)
bigPipeProcess http://txs10/core/modules/big_pipe/js/big_pipe.js?v=9.5.9:55
<anonymous> http://txs10/core/modules/big_pipe/js/big_pipe.js?v=9.5.9:61
<anonymous> http://txs10/core/modules/big_pipe/js/big_pipe.js?v=9.5.9:68
Uncaught TypeError: l.eu_cookie_compliance is undefined
<anonymous> http://txs10/modules/contrib/eu_cookie_compliance/js/eu_cookie_compliance.min.js?v=9.5.9:1
<anonymous> http://txs10/modules/contrib/eu_cookie_compliance/js/eu_cookie_compliance.min.js?v=9.5.9:1
eu_cookie_compliance.min.js:1:41
Uncaught TypeError: drupalSettings.simple_popup_blocks is undefined
attach http://txs10/modules/contrib/simple_popup_blocks/js/simple_popup_blocks.js?v=9.5.9:8
attachBehaviors http://txs10/core/misc/drupal.js?v=9.5.9:24
attachBehaviors http://txs10/core/misc/drupal.js?v=9.5.9:21
bigPipeProcessDocument http://txs10/core/modules/big_pipe/js/big_pipe.js?v=9.5.9:43
bigPipeProcessDocument http://txs10/core/modules/big_pipe/js/big_pipe.js?v=9.5.9:42
timeoutID http://txs10/core/modules/big_pipe/js/big_pipe.js?v=9.5.9:56
setTimeout handler*bigPipeProcess http://txs10/core/modules/big_pipe/js/big_pipe.js?v=9.5.9:55
<anonymous> http://txs10/core/modules/big_pipe/js/big_pipe.js?v=9.5.9:61
<anonymous> http://txs10/core/modules/big_pipe/js/big_pipe.js?v=9.5.9:68
simple_popup_blocks.js:8:28
Uncaught TypeError: path is undefined
attach http://txs10/core/misc/active-link.js?v=9.5.9:11
attachBehaviors http://txs10/core/misc/drupal.js?v=9.5.9:24
attachBehaviors http://txs10/core/misc/drupal.js?v=9.5.9:21
bigPipeProcessDocument http://txs10/core/modules/big_pipe/js/big_pipe.js?v=9.5.9:43
bigPipeProcessDocument http://txs10/core/modules/big_pipe/js/big_pipe.js?v=9.5.9:42
timeoutID http://txs10/core/modules/big_pipe/js/big_pipe.js?v=9.5.9:56
setTimeout handler*bigPipeProcess http://txs10/core/modules/big_pipe/js/big_pipe.js?v=9.5.9:55
<anonymous> http://txs10/core/modules/big_pipe/js/big_pipe.js?v=9.5.9:61
<anonymous> http://txs10/core/modules/big_pipe/js/big_pipe.js?v=9.5.9:68
active-link.js:11:25
Uncaught TypeError: drupalSettings.simple_popup_blocks is undefined
attach http://txs10/modules/contrib/simple_popup_blocks/js/simple_popup_blocks.js?v=9.5.9:8
attachBehaviors http://txs10/core/misc/drupal.js?v=9.5.9:24
attachBehaviors http://txs10/core/misc/drupal.js?v=9.5.9:21
<anonymous> http://txs10/core/misc/drupal.init.js?v=9.5.9:24
listener http://txs10/core/misc/drupal.init.js?v=9.5.9:14
domReady http://txs10/core/misc/drupal.init.js?v=9.5.9:20
<anonymous> http://txs10/core/misc/drupal.init.js?v=9.5.9:23
<anonymous> http://txs10/core/misc/drupal.init.js?v=9.5.9:26
simple_popup_blocks.js:8:28
Uncaught TypeError: path is undefined
attach http://txs10/core/misc/active-link.js?v=9.5.9:11
attachBehaviors http://txs10/core/misc/drupal.js?v=9.5.9:24
attachBehaviors http://txs10/core/misc/drupal.js?v=9.5.9:21
<anonymous> http://txs10/core/misc/drupal.init.js?v=9.5.9:24
listener http://txs10/core/misc/drupal.init.js?v=9.5.9:14
domReady http://txs10/core/misc/drupal.init.js?v=9.5.9:20
<anonymous> http://txs10/core/misc/drupal.init.js?v=9.5.9:23
<anonymous> http://txs10/core/misc/drupal.init.js?v=9.5.9:26
active-link.js:11:25
Also my name on the toolbar has disappeared (near the user icon to display the profile links)
With BigPipe disabled:
The primary tabs and my name near the User icon reapears but there are still console errors on the page (in all languages except site default)
Uncaught TypeError: l.eu_cookie_compliance is undefined
<anonymous> http://txs10/modules/contrib/eu_cookie_compliance/js/eu_cookie_compliance.min.js?v=9.5.9:1
<anonymous> http://txs10/modules/contrib/eu_cookie_compliance/js/eu_cookie_compliance.min.js?v=9.5.9:1
eu_cookie_compliance.min.js:1:41
Uncaught TypeError: drupalSettings.simple_popup_blocks is undefined
attach http://txs10/modules/contrib/simple_popup_blocks/js/simple_popup_blocks.js?v=9.5.9:8
attachBehaviors http://txs10/core/misc/drupal.js?v=9.5.9:24
attachBehaviors http://txs10/core/misc/drupal.js?v=9.5.9:21
<anonymous> http://txs10/core/misc/drupal.init.js?v=9.5.9:24
listener http://txs10/core/misc/drupal.init.js?v=9.5.9:14
domReady http://txs10/core/misc/drupal.init.js?v=9.5.9:20
<anonymous> http://txs10/core/misc/drupal.init.js?v=9.5.9:23
<anonymous> http://txs10/core/misc/drupal.init.js?v=9.5.9:26
simple_popup_blocks.js:8:28
Uncaught TypeError: path is undefined
attach http://txs10/core/misc/active-link.js?v=9.5.9:11
attachBehaviors http://txs10/core/misc/drupal.js?v=9.5.9:24
attachBehaviors http://txs10/core/misc/drupal.js?v=9.5.9:21
<anonymous> http://txs10/core/misc/drupal.init.js?v=9.5.9:24
listener http://txs10/core/misc/drupal.init.js?v=9.5.9:14
domReady http://txs10/core/misc/drupal.init.js?v=9.5.9:20
<anonymous> http://txs10/core/misc/drupal.init.js?v=9.5.9:23
<anonymous> http://txs10/core/misc/drupal.init.js?v=9.5.9:26
active-link.js:11:25
As you can see, the paragraph can't be added, deleted, or moved in the translated node.
This is specifically the object of this bug: there is no reason to avoid the addition/deletion or move of the paragraph items.
Let explain this with another field type:
For exemple, if you have a multivalue field which is not a paragraph and if this field have the same settings:
- not translatable
- and the parent node have
Hide non translatable fields on translation forms
unchecked.
Then, in the translated node form, you can add/delete/move the items of this field... If this is a paragraph field you can't.
This is what a user is expecting: being able to manipulate non translatable fields in all languages if Hide non translatable fields on translation forms
is unchecked
Sorry, I think I was not clear enough because it is not the case I was talking about. Here are the steps with more explainations:
1-Create a paragraph field inside a content type (ex: inside my_node_type
) using only my_parag_type
as paragraph type
2-Set my_parag_type
as non translatable in admin/config/regional/content-language
3-Uncheck Hide non translatable fields on translation forms
for my_node_type
in admin/config/regional/content-language
4-Create a node and translate it
5-Go to the translated node, you will not be able to add, delete or move a paragraph item of type my_parag_type
Sorry, so easy: there is a translate page which you can access from the flag configuration page: admin/structure/flags/manage/<YOUR_FLAG_ID>/translate
This patch is nice and working well except if we are adding fields in an empty group in the hook form_alter
.
I am using the following function to add $form[$field_name] to a group (id=$group_name):
function addToGroup(array &$form, string $field_name, string $group_name)
{
/** @var EntityFormDisplay $form_display */
$form_display = $form['#process'][1][0];
$form[$field_name]['#group'] = $group_name;
$field_group = $form_display->getThirdPartySettings('field_group')[$group_name];
$field_group['children'][] = $field_name;
$form_display->setThirdPartySetting('field_group', $group_name, $field_group);
}
}
If I add $form['field_to_add'] in a group which is empty but which have the option "Display element also when empty
" checked; then the group is not displayed.
To summarize, there are 2 issues:
1-The patch doesn't take into account the option Display element also when empty
2-The patch doesn't take into account any element added to the group in the form_alter
hook
@cilefen many thanks it is working. I confirm patch #56 is working on 9.5
I have changed the category from "feature request" to "Bug report" as the link text should be translatable.
I am unable to translate those strings from within the interface in
admin/config/regional/translate
: the string don not pop up when looking for them.
No, I didn't... and I have no clue on how to do it... many thanks for pointing me to this... If you can provide me some explanation it would be great
Unfortunately, I have patched the core files (#56 for 9.5) but the reset password process lead to an access denied page. Removing the D7 cookies solve this issue.
The primary tabs are the links created by drupal core to edit or view a node.
Unfortunately, I have no steps to reproduce this bug on a fresh install. In fact, I have no idea (and time) to check if this problem arise on a clean install. Sorry to not be more specific.
Tested #53 with 9.5.9 and it works nicely
rerolled for 1.8
There is a misunderstanding: you must download by yourself the patch file and put it in the HD of your web host. After that you can run the command to apply or un-apply this patch
I am a little bit annoyed because I think we are polluting this thread with other concerns
@aiphes I don't think that the patch command works with https. You should use the real patch file in your local hard drive
A quick search leads me to this article: https://duvien.com/blog/how-apply-patch-file-composer-based-drupal-89
@aiphes: yes, you will need to repatch after each core update. (you can use composer and add the patch in composer.json)
You can unpatch with this command:
cd "${drupal_root}"
patch -p0 -R < "${path_to_patch}"
On my side, I have added the following rule which apply on mobile an also when the width of the popup is larger than the page
.spb-popup-main-wrapper{
max-width: 100% ;
}
This allow the popup to auto-resize on the page width.
I think this should be added in the default css of the popup
@aiphes this is not the last/full patch. Download it from the explanations I provide in #66 then apply it from within your Drupal root.
@aiphes : you must look at the mr !1943 (see #57 for the link). From there, you can download the patch (in the upper right part of the screen see Code > download email patches)
I have tried #203 on 9.5.3 but I can't find a place where to translate my group's label.
Should I use tmgmt? If yes which source should be selected?
Sorry I don't know how to handle a test unit... and I am overbooked at 150% until may
The bug can be reproduced by embedding a view in a preprocess function like the following:
$view = Views::getView('all_inv');
$view->setDisplay('e_invs_of_tsc');
$view->preExecute([$company->id()]);
$view->execute();
$variables['content']['field_tsc_investments'] = $view->buildRenderable('e_invs_of_tsc');
ok, when looking at this old code, I know that I could use views_embed_view('all_inv','e_invs_of_tsc')
DuneBL → created an issue.
Same problem
+1 RTBC
I found the reason why this warning pop-up: this is because the PHP touch()
function works only if the file or directory being touched is owned by the PHP user (www-data
for apache). If the file or directory have only the group set as www-data
it will not work.
As a requirement we must say that all Drupal temp files must be www-data:www-data
It happens each time I uninstall a module with the GUI. (But it happens also on other occasions, but I don't see a pattern)
Same as #26 but on D9.5.1/Ubuntu 22.04 with php 8.1.14
mr !143 apply and solve my problem on D9.5
Many thanks!!!