🇫🇮Finland @anaconda777

Account created on 12 November 2018, about 7 years ago
#

Recent comments

🇫🇮Finland anaconda777

Okey, restored Backups and tried the module upgrade again, all went fine.
So it was something related to my environmet

🇫🇮Finland anaconda777

Eca Tamper
Machine name: eca_tamper
Version: 2.0.9

AND
Machine name: tamper
Version: 8.x-1.0-beta2

🇫🇮Finland anaconda777

anaconda777 created an issue.

🇫🇮Finland anaconda777

anaconda777 created an issue.

🇫🇮Finland anaconda777

anaconda777 created an issue.

🇫🇮Finland anaconda777

anaconda777 created an issue.

🇫🇮Finland anaconda777

anaconda777 created an issue.

🇫🇮Finland anaconda777

anaconda777 created an issue.

🇫🇮Finland anaconda777

anaconda777 created an issue.

🇫🇮Finland anaconda777

I get these errors with Flag 5.0.3 and dev version:
AccessDeniedHttpException: 'csrf_token' URL query argument is invalid. in Drupal\Core\Routing\AccessAwareRouter->checkAccess() (line 120

but with Flag 4.0. beta the errors are gone with these patches:

		"flag csr token":"https://www.drupal.org/files/issues/2025-02-19/3305405_1.patch",
		"flag anonym ":"https://www.drupal.org/files/issues/2025-09-02/flag-count_check-3294851-15.patch"

The problem is that none of those patches wont apply to flag 5.x

🇫🇮Finland anaconda777

this patch #7 wont apply to latest dev or 5.0.3. (was able to patch the 4.0 beta)

🇫🇮Finland anaconda777

Hi,

If a site has Group module and there are private Groups.
There can be private group content which is a H5P content.
Now there is no privacy because the content is visible to anyone if some knows the embed url, which is easily seen from HTML source.
Thats why this is very important feature, to make the embedding respect site permissions. Some times the embedding should be restricted and some times some site can allow H5P content to be downloaded and accessed then by anonoymous user.

So this access should be possible to restrict:
h5p/125/embed

---

URL currently does not respect the underlying entity's (e.g., Node, Group Content) access permissions. This allows users who do not have permission to view the content (including anonymous users) to still access and view the H5P content via the embed URL.
This is a critical bug when H5P content is attached to private entities, such as:Group Content (using the Group module).

🇫🇮Finland anaconda777

Okey found it:
web/modules/contrib/h5p/src/Controller/H5PEmbed.php

Had to add it under this:
ob_start();

?>
<script src="https://cdn.jsdelivr.net/npm/iframe-resizer@5.5.7/js/iframeResizer.contentWindow.min.js"></script>
<?php

And the iframed H5P is now resizing

🇫🇮Finland anaconda777

I cant update this, I installed the patch with composer but still.

composer why-not drupal/flag ^5.0
drupal/recommended-project dev-master requires drupal/flag (^4.0@beta)
drupal/views_flag_refresh  1.0.2      requires drupal/flag (^4.0@beta)
Not finding what you were looking for? Try calling `composer require "drupal/flag:^5.0" --dry-run` to get another view on the problem.
debian@homeDEV:/var/www/html/somealusta$ sudo nano composer.json
debian@homeDEV:/var/www/html/somealusta$ composer require "drupal/flag:^5.0" --dry-run
./composer.json has been updated
Running composer update drupal/flag
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires drupal/flag ^5.0, found drupal/flag[5.0.0, 5.0.1, 5.0.2, 5.0.3] but these were not loaded, likely because it conflicts with another require.
  Problem 2
    - drupal/eca_flag is locked to version 2.0.5 and an update of this package was not requested.
    - drupal/eca_flag 2.0.5 requires drupal/flag ^4.0 || ^5.0 -> found drupal/flag[4.0.0-beta1, ..., 4.0.0-beta7, 5.0.0, 5.0.1, 5.0.2, 5.0.3] but these were not loaded, likely because it conflicts with another require.
  Problem 3
    - drupal/flag_search_api is locked to version 2.0.1 and an update of this package was not requested.
    - drupal/flag_search_api 2.0.1 requires drupal/flag * -> found drupal/flag[4.0.0-beta1, ..., 4.0.0-beta7, 5.0.0, 5.0.1, 5.0.2, 5.0.3] but these were not loaded, likely because it conflicts with another require.
  Problem 4
    - drupal/views_flag_refresh is locked to version 1.0.2 and an update of this package was not requested.
    - drupal/views_flag_refresh 1.0.2 requires drupal/flag ^4.0@beta -> found drupal/flag[4.0.0-beta1, ..., 4.0.0-beta7] but it conflicts with your root composer.json require (^5.0).

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
🇫🇮Finland anaconda777

Hi,

Didnt find logs.
But asked the chatbot always display these tokens and it shows english for all the language tokens no matter what the current user selected language is. Changed the admin language also and it didnt have effect.
[current-user:language:name], [current-user:language], [current-user:language:langcode]

🇫🇮Finland anaconda777

Just a side note and a question. I use only iframes to show H5P content because I can have ten H5P content simultaneously at the same page.
To make the page faster, I load the H5P iframe only when user clicks the div element, and the H5P is then loaded. This just makes
the page ligher and faster to load. I am not sure could this be done with DIVs? Could I have "empty" divs and load the H5P there when user clicks a link? If thats possible I would maybe use divs to be able to use site wide CSS.

🇫🇮Finland anaconda777

I got this error again, it was because a bad ECA model, which deleted a node

🇫🇮Finland anaconda777

When using a CKEditor 5 editor configured to embed media, clicking the Media Library button will expose the media library in a modal.

So that means it opens a view? In my site it opens /admin/content/media-widget-table/
On a site where users can see each other media, but are not allowed to embed any other than own could this be a problem? Can I customize this view, or is this used somewher else also? 
 In my site there is a dropzone js, and max image upload size is 2mb. How can I change this? I need the "embed media" icon target be customizable, so that it can point to some other view. 
 

🇫🇮Finland anaconda777

Hi, yes that ckeditor5 version https://ckeditor.com/docs/ckeditor5/latest/features/media-embed.html
looks exactly the one needed. The goal is to just paste the link to the editor, similarly as in some social media platforms.

🇫🇮Finland anaconda777

I am seeing this same exact error on Drupal 10.5.1 and with ECA 2.1.10 , the reference method in reference type goes always back to
Event-Based selection with ECA even selecting the Default and a taxonomy term for it and saving.

I have taxonomy manager installed and also drupal AI, which I was using and noticing this, but maybe not related.
Is there a fix for Drupal 10 for this issue?

🇫🇮Finland anaconda777

The patch #8 does not apply to 2.13 with composer

🇫🇮Finland anaconda777

Hi,

Autolink plugin is not what I am looking, but auto embedding where you put a URL from Youtube or any social media site for example and it shows the post image and title in the editor. Like this:
https://ckeditor.com/docs/ckeditor4/latest/examples/mediaembed.html#auto...

But it looks like that is for ckeditor4.

🇫🇮Finland anaconda777

I am not seeing the install button also. the block is there, the JS is loaded. Tried with iphone and android with multiple browsers. no errors anywhere

🇫🇮Finland anaconda777

I am also trying this, I try to flag the current user. (Similarly as the user whould click the flag link)

Trigger is "presave profile" and then I selected the flag name from the ECA templates, there is a flag named "follow".
I try to flag the user to follow himself. Not able to do it, I have tried all user related tokens but it does not flag the user.

So flags just cant be fired from ECA, similarly like users are clicking them, they need to be created?

🇫🇮Finland anaconda777

This patch fixed the problem for me:

https://git.drupalcode.org/project/field_validation/-/merge_requests/9.diff

So now commerce works after small testing, able to add variations to cart and the error message and WSOD is gone.

Drupal: 10.4.8
Field_validation: 3.0.0-beta4
Commerce: Version: 3.1.0

Thanks!

🇫🇮Finland anaconda777

Also Gemma3 in Ollama supports vision.
Need vision support also, and image classification. What should be done?

🇫🇮Finland anaconda777

Hi,
I am also looking for multipe eca exported csv file combining functionality.

🇫🇮Finland anaconda777

I got the same error on Drupal 10.4.7
It happened after deleting some nodes meanwhile ECA was analyzing the nodes and setting their moderation states etc. Maybe this was not the reason.

Anyway like before someone instructed I managed to fix it and deleted the corrupted node like this:

1. Go to mysql console
2. use databasename;
3. SELECT nid FROM node_field_data WHERE nid NOT IN (SELECT n.nid from node n);
4. 	DELETE FROM node_revision WHERE nid = 12553;
4.1	DELETE FROM node_field_revision WHERE nid = 12553;
4.2   DELETE FROM node_field_data WHERE nid = 12553;
4.3   DELETE FROM node WHERE nid = 12553;
🇫🇮Finland anaconda777

This patch adds a div tag around the message count number and a data-count value, so that it is easier to style with CSS.
With these CSS styles below you can hide the zero, and show the others with your defined styling and the link to inbox stays.

.private-message-page-link[data-count="0"] .msg-count {color:transparent!important;background:transparent!important;}
.private-message-page-link:not([data-count="0"]) .msg-count { color: white!important;background: grey!important;}

🇫🇮Finland anaconda777

I think notifications should come automatically related to your own content. (I mean the site notifications, not email or SMS.)
So as the title says, notifications should come automatically when someone comments to your post, or comments to your comments.
Just like in social media, it is automatically on, user should not need to go to switch it on. Instead they could go switch it off.

I need this feature as automatic as possible. User should receive notifications by default but can go and turn it off if it bothers.

🇫🇮Finland anaconda777

Hi,

Patch #36 worked for me with 3.0.0-alpha6. Drupal 10.4.5.

Thank you.

🇫🇮Finland anaconda777

still using that 6 years old patch from #26 on a drupal 10.4
maybe its okey?

🇫🇮Finland anaconda777

#27 fixed for me!! Thank you so much.

So my problem was:

A view which displays content, each content has flags "like". (The view has infinity scroll and ajax enabled)

Without patch:
The view works perfectly with cache on, when there are no exposed filters.
When I add a exposed filter, and user sorts the view with exposed filters, (the view loads with ajax no page refresh)
then some of the flagging links does not work and gives this 'csrf_token' URL query argument is invalid.

With patch, I can now use views exposed filters, have cache on and the view can be sorted and filtered without page refresh and all the flagging links seems to be working.

🇫🇮Finland anaconda777

@torfj
No, I was not able to fix it.
Ended up translating terms with tmgmt_ai but still trying to figure out how to move translated terms from site to site with configurations, seems there are not much options.

🇫🇮Finland anaconda777

Please explain here what mandatory consent should be apply here. Not getting this issue.

Hi, like with the Legal module, user has to accept the TOS or whatever to continue using the site at all.
With this module, there is just a "alert message" but the user can continue using the site and click links.
This is what I mean mandatory, that if the user do not accept the document(tos etc.) it is not possible to use the site at all.

🇫🇮Finland anaconda777

I get this same error:

Drupal\Core\Entity\EntityStorageException: Update existing 'tmgmt_job_item' entity while changing the ID is not supported. in Drupal\Core\Entity\ContentEntityStorageBase->doPreSave() (line 759 of /var/www/html/test_branch/web/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php).

What did I do wrong? How to avoid this?

🇫🇮Finland anaconda777

I am having the same issue when trying to add a product variation of an existing product.
I had to for this reason uninstall AI validations module and field validations module and then commerce started to work

🇫🇮Finland anaconda777

Thanks, using currently Ollama with ECA for content moderation, works!

Production build 0.71.5 2024