🇫🇮Finland @anaconda777

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

Recent comments

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

🇫🇮Finland anaconda777

Hi,

Same here. My site uses Quiz module which needs Rules module. 

Rules is not as good as ECA -module, Rules should not be used anymore when we have ECA.

🇫🇮Finland anaconda777

Oh sorry, it was indeed a old version and its patch. I think I didnt apply it to this version, maybe
after composer install that file still stayed there...

🇫🇮Finland anaconda777

Was able to fix this with ChatGPT

Just change ( modules/contrib/legal/src/EventSubscriber/LegalNavigationLock.php) the
use Drupal\Core\Http\RequestStack;
to
use Symfony\Component\HttpFoundation\RequestStack;

and
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
to
use Symfony\Component\HttpKernel\Event\RequestEvent;

and line 109:
should be like this:
public function onKernelRequestLockNavigation(RequestEvent $event): void {

Thanks again for chatgpt, dont have time to make patch sorry

🇫🇮Finland anaconda777

The problem is described here:
https://www.drupal.org/project/drupal/issues/2797961#comment-15629652 🐛 Language switcher label cannot be changed for English Active

🇫🇮Finland anaconda777

Hi,

Applied patch, and tried to save again permissions for a term, but still it is not saved.

🇫🇮Finland anaconda777

Here is a fix for php 8.2 depraceted messages

🇫🇮Finland anaconda777

@MegaChriz
Alright thanks, I applied the patch from https://www.drupal.org/project/paragraphs/issues/3177867 🐛 Adding a 'Paragraphs' field to a Feed's mapping throws error RTBC
And the error is gone, but still the mapping disappears.

I think I am doing it wrong, I try to import data from CSV to content type with processor "quiz question" and "quiz question type: multiple choice question" but I guess it is not possible, cos it has fields which are paragraphs.

🇫🇮Finland anaconda777

Hi,
I applied the #24 patch, and tried to map a boolean field. But got error:
Warning: Array to string conversion in Drupal\paragraphs\Feeds\Target\Paragraphs->getSummary() (line 118 of /var/www/html/site/web/modules/contrib/paragraphs/src/Feeds/Target/Paragraphs.php)
And then the mapping dissapears from the UI.

#0 /var/www/html/site/web/core/includes/bootstrap.inc(164): _drupal_error_handler_real()
#1 /var/www/html/site/web/modules/contrib/paragraphs/src/Feeds/Target/Paragraphs.php(118): _drupal_error_handler()
#2 /var/www/html/site/web/modules/contrib/feeds/src/Form/MappingForm.php(632): Drupal\paragraphs\Feeds\Target\Paragraphs->getSummary()
#3 /var/www/html/site/web/modules/contrib/feeds/src/Form/MappingForm.php(481): Drupal\feeds\Form\MappingForm->buildSummary()
#4 /var/www/html/site/web/modules/contrib/feeds/src/Form/MappingForm.php(160): Drupal\feeds\Form\MappingForm->buildRow()
#5 [internal function]: Drupal\feeds\Form\MappingForm->buildForm()
#6 /var/www/html/site/web/core/lib/Drupal/Core/Form/FormBuilder.php(536): call_user_func_array()
#7 /var/www/html/site/web/core/lib/Drupal/Core/Form/FormBuilder.php(375): Drupal\Core\Form\FormBuilder->retrieveForm()
#8 /var/www/html/site/web/core/lib/Drupal/Core/Form/FormBuilder.php(633): Drupal\Core\Form\FormBuilder->rebuildForm()
#9 /var/www/html/site/web/core/lib/Drupal/Core/Form/FormBuilder.php(325): Drupal\Core\Form\FormBuilder->processForm()
#10 /var/www/html/site/web/core/lib/Drupal/Core/Controller/FormController.php(73): Drupal\Core\Form\FormBuilder->buildForm()
#11 [internal function]: Drupal\Core\Controller\FormController->getContentResult()
#12 /var/www/html/site/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#13 /var/www/html/site/web/core/lib/Drupal/Core/Render/Renderer.php(627): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#14 /var/www/html/site/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(121): Drupal\Core\Render\Renderer->executeInRenderContext()
#15 /var/www/html/site/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
🇫🇮Finland anaconda777

Hi,

When a site has 2 languages, I will make 2 sets of questions and quizzes, but I need to import the language code
to the language -field in the multiplce choise question from CSV. Is this possible?
With feeds import I am not able to map to "language" -field like it was possible with D7?
Not sure how do I then assign the correct language questions to a correct quiz?

🇫🇮Finland anaconda777

Added manually to patch #22 also "boolean" and it works.

so the line:
if (in_array($field_config->getType(), ['text', 'text_long', 'text_with_summary', 'string', 'list_string', 'email'])) {

Should be

if (in_array($field_config->getType(), ['text', 'text_long', 'text_with_summary', 'string', 'list_string', 'email', 'boolean'])) {

💬 | Quiz | import
🇫🇮Finland anaconda777

I am stuck in the same issue, mc question and the alternatives. How to import from CSV the correct answer and the rest wrong answers?
Did you manage to do it without custom code?

Production build 0.71.5 2024