🇫🇮Finland @anaconda777

Account created on 12 November 2018, over 6 years ago
#

Recent comments

🇫🇮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!

🇫🇮Finland anaconda777

so the functionality should be

1. When no new messages, there should be icon/link to inbox (without any numbers)
2. when there are new messages, there should be icon and the link like in step 1 but also number showing how many unread messages. The link should always go to inbox or a custom url. It is not universal way and logical to link user to just some unread message, the inbox is the only place where this should link.

Make always user interface which is known from the most used services.

🇫🇮Finland anaconda777

With 2670798-50.patch I am getting

Path: /flag/unflag/like/11969/default?destination=/node/6%3Fpage%3D%252C%252C%252C%252C%252C%252C%252C%252C%252C%252C%252C%252C%252C1&token=awoKBYgqrejo2wsK3kmJH7iOzWluofZsoXUmcbeyv0E&_wrapper_format=drupal_ajax. Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException: 'csrf_token' URL query argument is invalid. in Drupal\Core\Routing\AccessAwareRouter->checkAccess() (line 120 of /var/www/html/test/web/core/lib/Drupal/Core/Routing/AccessAwareRouter.php).

This error comes with views and infinity scroll, and for some of those flags which the views infinity loads after user scrolls down enough that it initiates a load of new content. So the first nodes which have flags are working, but some of the new do not work.

🇫🇮Finland anaconda777

I am getting

Error: Attempt to assign property "type" on null in Drupal\views\ManyToOneHelper->ensureMyTable() (line 195 of /var/www/html/sitex/web/core/modules/views/src/ManyToOneHelper.php).

This patch didnt fix this.
I am getting it when a node has 2 taxonomy terms and trying to use them as contextua filter name in views.
When accessing the URL /term1/term2 the site page crashs.

🇫🇮Finland anaconda777

I have same problem, created new content type and imported data to it from RSS source with Feeds.
All the new nodes are unpublished.

🇫🇮Finland anaconda777

I am getting this with php 8.3 and 2.0-beta-1

🇫🇮Finland anaconda777

Same as #25
Only disabling cache from the view which has these flag links solves the problem.
Not the Drupal core patch or patches here fixes the issue for me.

🇫🇮Finland anaconda777

Hi,

I tried couple of different view and different ways:
1. to existing views a new field global custom text.
I wrote something in the text area
"output this field as a custom link"
link path: /
link class cp-to-clip
save
does not work, the extra tags does not appear in the html source code, the link does not copy.

added to views header a custom text and

copy this text

and then finally tried to a views field and added in the style settings- >customize field html and created new css class in a div
cp-to-clip

Only way I can make the copy icon appear and the link to copy smt is using a block and write there in the text field

copy this text
🇫🇮Finland anaconda777

Hi,

Patch #25 didnt work at first, when I had in the private message threads
/admin/structure/private-message/private-message-thread/form-display

in the members field a widget "private message members autocomplete"

When I selected autocomplete "tag style" then I was able to send to more than one recipients.

🇫🇮Finland anaconda777

No need to modify the inbox block behaviour, was able to create inbox for other purposes using Views.

🇫🇮Finland anaconda777

I also found these brand guidelines here:
https://drupal.widencollective.com/portals/gfvztttq/BrandPortal

If the new Drupal site is made using these guidelines, and this is made by some advertising company, and these are not gone trough a proper usability testing, I wish Drupal.org a good luck. Because if this is the case (sorry I havent had time to actually find out what is the actual process) we are then repeating the most basic mistake what a web design can do, its called "trust the advertising agency and forget usability testing". Okey, anyway I dont know what is the actual process, but if the user icon already drops out when the screen is narrow, and there is no login link in the header, that is a catastrophic usability issue and for me it looks like there has been not a proper usability testing. Asking feedback from the community is far from usability testing and does not lead proper findings of possible usability issues. So I hope any kind of design change goes trough a proper usability testing with real users and real usability professionals using proper usability testing methods. Advertising agencies usually wont do these. The way is not to put pages in production and then ask feedback, that is 1990 way.

🇫🇮Finland anaconda777

I like the old Drupal.org look much more, because it allows me to log in to Drupal.org when the screen is narrower than 1280px.

Now the user -icon dissapears somewhere when scaling the browser window smaller than 1280px width, and I cant see the login icon anywhare. Cant also find it from the menus.

🇫🇮Finland anaconda777

Hi,

Thank you for fixing the patch. But for my use case its problematic because it hides the link also.
I need the icon and also the link.

So the current HTML is this:

<div class="private-message-notification-wrapper hidden">
<a href="/private-messages" title="You have no unread threads" class="private-message-page-link">0</a>
</div>

If it would be like this, so that the value would have its own style class, it would be easier to hide just the number and leave the link:

<div class="private-message-notification-wrapper">
<a href="/private-messages" title="You have no unread threads" class="private-message-page-link"> <div class="private-message-inbox-amount">0</div> </a>


So if the value would have any HTML element it would be possible to hide it with CSS and the link would be still there. 




</div>
🇫🇮Finland anaconda777

Hi,
Sorry but I am not able to patch current quiz 7.01 with any of these patches
Tried for example this:

"drupal/quiz": {
"quiz timer":" https://www.drupal.org/files/issues/2020-07-09/3157376-04.patch ",
},

Wont apply, or is it still dev version which to use?

🇫🇮Finland anaconda777

What is the process of migrating custom fields? Do I need to modify the quiz_migrate module files or just the migrate files?

🇫🇮Finland anaconda777

None of the patches works for me:

What works:
Without this or any patch, When editing a node which is in modal and then opening a nother modal over it ( media entity browser for uploading media) works so that a modal opens over another modal and it can be closed without closing the parent.

So nested modals are working with media entity browser and node.

What does not work:
When editing a node which is in modal, then another modal opened from ckeditor5 (AI ckeditor5 integration) causes a problem = closing that modal will close all modals. (Uncaught TypeError: dialogSettings is undefined)
Also tried with patch #142 and #134 and they do not fix this issue

🇫🇮Finland anaconda777

That is true what @zenimagine says, the Ajax refresh rate in the notification block somehow overwrite this, and the patch #3 does not work then when the first refresh comes.

🇫🇮Finland anaconda777

It could be hidden with CSS:
.private-message-page-link {
display: none!important; /* Hide by default */
}

.private-message-page-link:not(:empty):not(:contains("0")) {
display: block!important; /* Show if it doesn’t contain "0" */
}

What is needed is just some html element around the number, now its plain number inside a tag and not possible to style without styling the a tag.

🇫🇮Finland anaconda777

Okey, now got in the web developer console:
Referrer Policystrict-origin-when-cross-origin

My local lm-studio is in ai.domainame.net
and Drupal is local.domainname.net

So maybe this is NGINX issue with the cors...

🇫🇮Finland anaconda777

Hi,
When using "generate with AI"
Clicking create button, the browser developer console gives:
An error occurred during the execution of the Ajax response: CKEditorError: plugincollection-plugin-not-loaded {"plugin":"SourceEditing"}

So I added the "source" editor to ckeditor and tried again.
The error dissapeared but no response from AI.

Then tried again, and after clicking "create" the local llm started working (CPU /gpu utilization went up)
AI Writer: Waiting for response...

After the local lm-studio has create the response, the ckeditor test area (Response from AI)
stays empty, and "AI writer: idle"

Looked from lm-studio developer logs, there is the prompt and the reply from AI, but it never came to drupal ckeditor

Nothing in the browser developer console also.

My node editing opens to modal window, if it has something to do with the issue.

🇫🇮Finland anaconda777

Hi,

I actually cant anymore verify, but I am pretty sure it was not alpha8, because something was missing in alpha8 and I had to use DEV.
So I tried upgrading from dev (which was downloaded maybe about 25.10.2024) to beta1.

🇫🇮Finland anaconda777

I was able to get things working, just created the ECA model again which dissapeared.
I think this can be closed, because I had dev version where I tried the upgarde from.

🇫🇮Finland anaconda777

Okey, that was just a composer misue and was able to proceed:
by first running these:
composer require 'drupal/ai_provider_openai:^1.0@beta'
composer require 'drupal/ai_provider_lmstudio:^1.0@beta'

then run updatedb again and got some warnings:

 -------- ----------- --------------- -----------------------------------
  Module   Update ID   Type            Description
 -------- ----------- --------------- -----------------------------------
  ai       10301       hook_update_n   10301 - Checks to ensure a smooth
                                       migration from AI submodules to
                                       external modules.
 -------- ----------- --------------- -----------------------------------


 Do you wish to run the specified pending updates? (yes/no) [yes]:
 > yes

>  [notice] Update started: ai_update_10301
>  [notice] AI module moving to contributed modules has been completed.
>  [notice] Update completed: ai_update_10301
>  [notice] Checked fi translation for ai_provider_lmstudio.
>  [notice] Downloaded fi translation for ai_provider_lmstudio.
>  [notice] Imported fi translation for ai_provider_lmstudio.
>  [warning] foreach() argument must be of type array|object, null given Mapping.php:31
>  [warning] foreach() argument must be of type array|object, null given Mapping.php:230
>  [warning] foreach() argument must be of type array|object, null given Mapping.php:31
>  [warning] foreach() argument must be of type array|object, null given Mapping.php:230
>  [notice] Translations imported: 0 added, 1 updated, 0 removed.
>  [notice] The configuration was successfully updated. 519 configuration objects updated.
>  [notice] The configuration was successfully updated. 519 configuration objects updated.
 [success] Finished performing updates.

After the update to beta1 I noticed ECA models were dissapeared which used AI models:

and in the drupal logs have these:

The action plugin eca_ai_automator can not be initialized. ECA is ignoring this action. The issue with this action: You have requested a non-existent service "plugin.manager.ai_automator_type". Did you mean one of these: "plugin.manager.link_relation_type", "plugin.manager.tab_type", "plugin.manager.alias_type"?

🇫🇮Finland anaconda777

Where I can see how to set for example:
lm-studio provider host name and port from the settings.php?

🇫🇮Finland anaconda777

I actually did this moderation already with ECA, so cant test this.
I guess this can be closed.

🇫🇮Finland anaconda777

Hi,
Tested ckeditor5 with latest dev and the dropdown behaves differently depending of the text format.
With fullhtml format the local llm started to generate something and the writer became idle,
but the response never came back to the text box.
With another text format the local llm did not even start doing anything even all settings looked to be similar.
On the sidebar all looks to be working

🇫🇮Finland anaconda777

#9 worked for me thanks. Had to also drush cex, delete ai_models.settings.yml and drush cim

🇫🇮Finland anaconda777

Oh, I see. I actually did try to import first the tar.gz, and then tried just tar and then yaml.
But now when importing tar.gz I see that under the field box there is very small alert text in red:
Can not import archive due to missing module(s): eca_form

Maybe I would have noticed that in the first tryout if it would be in place of the main error message which was
1 error has been found: File containing the exported XML model or archive containing all dependent config entities.

🇫🇮Finland anaconda777

I accidentally found /private-message/ban ULR.
Is there any other similar "hidden" URLs where are functionalities related to this module?
This URL could be mentioned in the private message configuration page.

Another issue, when clicked "ban user" at the user page, it redirects the user to private-messages -page.
In my case there should be no redirection and the user should not be redirected.

🇫🇮Finland anaconda777

So I guess it would mean that a Paragraph Bundle should be created for the quiz module to be able to import quiz module related paragraphs.

🇫🇮Finland anaconda777

I am still confused how to limit the text formats for private message -message field.
Now a logged in user sees all the possible text formats which he has permissions under the message field.

So for private message field there should be only one text format allowed of those which he has permissions.
When going to /admin/structure/private-message/private-message/fields
There are no fields, in particular the "message" field is missing.
In other content types, configuring that field I could set the allowed formats, but with private message field it is not possible.

With the latest Version: 3.0.1, a logged in user sees all the text formats which are allowed for him also in other content types, and this causes the problem.

🇫🇮Finland anaconda777

Hi,

This is absolutely amazing module. I hope this could solve the "problem" with the D10 Quiz module, and the import of multiple-choice questions.
I think the Quiz module multiple choice questions are paragraphs and the answer options in each question are like inner paragraphs or "sections" as called in the videos. Now it is impossiple for me to import those answer options inside a single multiple choise question, but this module looks promising.

🇫🇮Finland anaconda777

Which are the possibilities to import from CSV thousands of multiple choise questions with their answer options and feedbacks?
Drupal 7 Quiz allowed this, but not anymore the Drupal 10 version of the Quiz. Does this allow such imports?

🇫🇮Finland anaconda777

Why we have rules, if we have ECA? Isnt it overlapping, modules doing same thing?

🇫🇮Finland anaconda777

I fully support this move. ECA is the way to go, Rules is too buggy.

Upgrading Drupal 10.2 to 10.3 crashes because of Rules, and the only module which needs rules is Quiz on my site:
https://www.drupal.org/forum/support/upgrading-drupal/2024-06-20/update-...

I can provide some sponsoring for wiping rules from quiz and start using ECA, if needed.

Production build 0.71.5 2024