anaconda777 → created an issue.
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?
What is the process of migrating custom fields? Do I need to modify the quiz_migrate module files or just the migrate files?
anaconda777 → created an issue.
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
anaconda777 → created an issue.
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.
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.
anaconda777 → created an issue.
anaconda777 → created an issue.
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...
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.
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.
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.
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"?
anaconda777 → created an issue.
Where I can see how to set for example:
lm-studio provider host name and port from the settings.php?
anaconda777 → created an issue.
anaconda777 → created an issue.
I actually did this moderation already with ECA, so cant test this.
I guess this can be closed.
anaconda777 → created an issue.
marcus_johansson → credited 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
#9 worked for me thanks. Had to also drush cex, delete ai_models.settings.yml and drush cim
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.
anaconda777 → created an issue.
anaconda777 → created an issue.
anaconda777 → created an issue.
anaconda777 → created an issue.
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.
anaconda777 → created an issue.
anaconda777 → created an issue.
anaconda777 → created an issue.
anaconda777 → created an issue.
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.
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.
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.
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?
anaconda777 → created an issue.
Anaconda777 → created an issue.
Why we have rules, if we have ECA? Isnt it overlapping, modules doing same thing?
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.
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.
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...
Anaconda777 → created an issue.
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
Anaconda777 → created an issue.
The problem is described here:
https://www.drupal.org/project/drupal/issues/2797961#comment-15629652
🐛
Language switcher label cannot be changed for English
Active
This is still a bug in 10.2.6
Hi,
Applied patch, and tried to save again permissions for a term, but still it is not saved.
Did anyone fix this ?
I get this still when I try to change a password for existing user when it has uc roles.
Had to just recreate the view. Dont know why.
Anaconda777 → created an issue.
Anaconda777 → created an issue.
I got still some errors with PHP 8.2 and created a patch:
Anaconda777 → created an issue.
Here is a fix for php 8.2 depraceted messages
@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.
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()
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?
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'])) {
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?
Anaconda777 → created an issue.
Anaconda777 → created an issue.
Anaconda777 → created an issue.
I have same problem, but was able to go around it by installing PHP 8.1 to linux and PHP 8.3 for Drupal 10.2 so the composer runs with PHP 8.1 and site works with PHP 8.3.
Anyway that is not any kind of fix, and when I try to require 2.22"
composer require "laminas/laminas-feed": "^2.22"
Could not find package ^2.22.
Pick one of these or leave empty to abort:
[0] m-michalis/boxnow-api
[1] slis/tanss-php-adapter
[2] karavasilev/cryptomanana
[3] martinezart87/laravel-sql-server-custom-connector
Anaconda777 → created an issue.
Hi,
I have same problem, but applying patch #10 didnt help.
When I close a modal window I get:
Uncaught TypeError: dialogSettings is undefined
and the same modal wont open again.
Uncaught TypeError: dialogSettings is undefined
ckeditor5.js
Hi,
This patch didnt fix the problem with Drupal 10.2
The visibility setting of a block is not opening.
Anaconda777 → created an issue.
Hi,
Patch #30 works for me with D9 php8.1
Had previously patch #26 which did log user out.
Super great!
I had only 3 orphaned roles which upgrade status warned. I was able to quickly
remove them with the Drupal UI configuration management.
- go to /admin/config/development/configuration/single/export
- Export the role and remove the orphaned permissions.
- copy paste the whole text
- go to admin/config/development/configuration/single/import
- Slecet configuration type: "role"
- And copy paste the edited text and press import
Making backups of the site can be handy
Could someone tell how to change the text format even in the code?
Tried to find the private message message field from the site configuration, but it is not there.
Is it possible somewhere in the private message module templates to set the text format to something else which uses ckeditor5 for example? Now I have only plain text area and unable to put any "tools" in it for the end user.
#16 that is only temporary fix, the issue comes back after updating something on the site, not sure what. But after I bring new changes from git and run drush cim, the buttons are again broken and I have to go to theme settings and save the theme.
Hi,
I can see the delete message link only as admin?
Is this the intention to show private message delete button only in the contextual links?
Hi,
Patch #2 worked for me, the #8 did not apply with composer.
Anaconda777 → created an issue.
Anaconda777 → created an issue.
Anaconda777 → created an issue.
Hi,
Maybe this patch does not apply because the return FAlSE; is written with small "l" letter?
can confirm, patch #17 works with D10.1.6 and latest H5P dev
Thanks / kiitos
@googletrop Thanks, that patch applies but now when viewing H5P content I get wsod and this:
Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "asset.js.collection_optimizer_legacy". Did you mean one of these: "asset.css.collection_optimizer", "asset.js.collection_optimizer"? i Drupal\Component\DependencyInjection\Container->get() (rad 157 av /var/www/html/drupal10/web/core/lib/Drupal/Component/DependencyInjection/Container.php).
I have Drupal 10.1.6
Without this patch there is not error message, it just does not show the H5P content when js aggregation is on
@ammaletu how are you able to apply those patches, when I put the to compser, either of them applies, here is my composer result after composer install:
Gathering patches for dependencies. This might take a minute.
- Installing drupal/h5p (dev-2.0.x 43daa83): Cloning 43daa83a9d from cache
- Applying patches for drupal/h5p
https://www.drupal.org/files/issues/2023-04-28/libary_patch_0.patch →
(d10 library)
Could not apply patch! Skipping. The error was: Cannot apply patch
https://www.drupal.org/files/issues/2023-04-28/libary_patch_0.patch →
https://www.drupal.org/files/issues/2023-08-08/fixed-asset-optimization-... →
(h5p)
Could not apply patch! Skipping. The error was: Cannot apply patch
https://www.drupal.org/files/issues/2023-08-08/fixed-asset-optimization-... →
@catch I am currently running dev release (2.0.x-dev@dev) in production, and for my setup it does not display the h5p content when the site "aggregate JS" is selected in the performance page. This is with Drupal 10.1.6
The module works fine with Drupal 10.1.6 but only if the performance JS and CSS aggregation is not on.
So I have the dev version with this patch:
https://www.drupal.org/files/issues/2022-09-14/content-upgrade-3299839.p... →
Which is the correct way to make this module work with D10?
Should I use the alpha3 or dev version but which patches?
This #8 patch does not apply with the latest dev.
And with 2.0.0-alpha3 I am not able to get it working with D10 properly, cos I dont know which patches it is missinge compared to dev?
I have exactly same problem as #13 with Drupal 10.1.6 and in composer "drupal/h5p": "2.0.x-dev@dev",
The editing works, but displaying any H5P content shows just empty page with title.
Anaconda777 → created an issue.
Hi,
Tried the patch against 1.2 but it didnt solve my problem. Relationship is not possible to choose in views.