🇮🇹Italy @giordy

Account created on 14 September 2008, almost 17 years ago
#

Recent comments

🇮🇹Italy giordy

It's not the only module. All modules linked with CKEditor have problems.

🇮🇹Italy giordy

To be clear I wrote "In addition it would be helpful to know which CKEditor extra modules are installed on the site" here in a comment a week ago and did not get a reply. In future it would be more efficient to get those answers.

That's not true. I answered in #6 c.

🇮🇹Italy giordy

The problem is not with the theme, but with the Advanced Image Editor module. If I uninstall it, the toolbar reappears.

Thanks for everything and best regards

🇮🇹Italy giordy

The problem is not the custom theme, but the Editor Advanced Image module. If I uninstall it, the toolbar reappears.

But in text formats, the buttons are missing.

🇮🇹Italy giordy

With Drupal 11.2 the CKEditor toolbar does not appear.

🇮🇹Italy giordy

Thanks for the quick and precise reply, as always.

1.
a) in the sub-theme I selected:
- Tick this box to load the W3.CSS library locally.
- Tick this box to load Google fonts locally. (Global and Heading Fonts only)

b) In the browser I disabled fingerprinting protection.

2.
I renamed dompurify to dom_purify. It worked before without this change.

3.
Anchor_link is updated to the latest version.

The toolbar is not present yet and in the browser console I have:

GET
https://www.gmpe.it/themes/custom/gmpe/css/ckeditor.css?synqe6
NS_ERROR_CORRUPTED_CONTENT

La risorsa da “https://www.gmpe.it/themes/custom/gmpe/css/ckeditor.css?synqe6” è stata bloccata a causa della mancata corrispondenza (“text/html”) del tipo MIME (X-Content-Type-Options: nosniff). edit
Debugging can be done with an unminified version of CKEditor by installing from the source file. Consult documentation at https://www.drupal.org/node/3258901 ckeditor5.js:463:19
TypeError: can't access property "pencil", e.icons is undefined
    Ce https://www.gmpe.it/libraries/ckeditor5-anchor-drupal/build/anchor-drupal.js?synqe6:101
    _createActionsView https://www.gmpe.it/libraries/ckeditor5-anchor-drupal/build/anchor-drupal.js?synqe6:101
    init https://www.gmpe.it/libraries/ckeditor5-anchor-drupal/build/anchor-drupal.js?synqe6:101
    promise callback*./packages/ckeditor5-core/src/index.ts/init/m/< https://www.gmpe.it/core/assets/vendor/ckeditor5/ckeditor5-dll/ckeditor5-dll.js?v=45.2.0:5
    m https://www.gmpe.it/core/assets/vendor/ckeditor5/ckeditor5-dll/ckeditor5-dll.js?v=45.2.0:5
    init https://www.gmpe.it/core/assets/vendor/ckeditor5/ckeditor5-dll/ckeditor5-dll.js?v=45.2.0:5
    initPlugins https://www.gmpe.it/core/assets/vendor/ckeditor5/ckeditor5-dll/ckeditor5-dll.js?v=45.2.0:5
    create https://www.gmpe.it/core/assets/vendor/ckeditor5/editor-classic/editor-classic.js?v=45.2.0:4
    create https://www.gmpe.it/core/assets/vendor/ckeditor5/editor-classic/editor-classic.js?v=45.2.0:4
    attach https://www.gmpe.it/core/modules/ckeditor5/js/ckeditor5.js?synqe6:373
    editorAttach https://www.gmpe.it/core/modules/editor/js/editor.js?v=11.2.2:304
    attach https://www.gmpe.it/core/modules/editor/js/editor.js?v=11.2.2:228
    attach https://www.gmpe.it/core/modules/editor/js/editor.js?v=11.2.2:211
    attachBehaviors https://www.gmpe.it/core/misc/drupal.js?v=11.2.2:166
    attachBehaviors https://www.gmpe.it/core/misc/drupal.js?v=11.2.2:162
    <anonymous> https://www.gmpe.it/core/misc/drupal.init.js?v=11.2.2:32
    listener https://www.gmpe.it/core/misc/drupal.init.js?v=11.2.2:20
    domReady https://www.gmpe.it/core/misc/drupal.init.js?v=11.2.2:26
    <anonymous> https://www.gmpe.it/core/misc/drupal.init.js?v=11.2.2:31
    <anonymous> https://www.gmpe.it/core/misc/drupal.init.js?v=11.2.2:34
ckeditor5.js:467:19

Thanks and best regards

🇮🇹Italy giordy

I'm sure I typed #11. Boh.

Anyway, it worked!!

Now all that's left to do is fix the CKEditor toolbar issue and then the site will be fully functional again.

Thanks for your help and patience

🇮🇹Italy giordy

No, I have this error:
#1054 - Unknown column 'name' in 'WHERE'

🇮🇹Italy giordy

I entered #3 with the prefix xxx_users and there was no error.
The number of users is correct: 3 + anonymous (plus the one entered with the query).

🇮🇹Italy giordy

Database tables have a prefix.
I added it in the query and it ran fine, but the problem remains.

🇮🇹Italy giordy

1. The theme is custom and is in the Custom folder
2. The css is inside this folder
3. The libraries/dom_purify/dist/purify.min.js file is there.

Regarding the theme, I am writing to the author.

Thank you

🇮🇹Italy giordy

Drupal was automatically installed with cpanel.

🇮🇹Italy giordy

1. In phpMyAdmin I selected the database.
2. I clicked on SQL.
3. In the card I pasted:

INSERT INTO users (uid, langcode, uuid) VALUES (0, 'en', '');

INSERT INTO `users_field_data` (`uid`, `langcode`, `preferred_langcode`, `preferred_admin_langcode`, `name`, `pass`, `mail`, `timezone`, `status`, `created`, `changed`, `access`, `login`, `init`, `default_langcode`) VALUES (0, 'en', 'en', NULL, '', NULL, NULL, '', 0, 0, 0, 0, 0, NULL, 1);

4. I clicked Run
5. Message:

Error
SQL Query: Copy
INSERT INTO users (uid, langcode, uuid) VALUES (0, 'en', '');
MySQL Message:
#1146 - Table 'hmcpdbiy_t2am1.users' does not exist
🇮🇹Italy giordy

I changed console and now I see the error.

🇮🇹Italy giordy

Now it has disappeared even in configuration, but I had checked before and it was there.

🇮🇹Italy giordy

a) The error appeared during the installation of 11.2.1.

b)
1. I click on Edit of the page to modify
2. I open the firefox browser console.
3. I download the file.

c)
- Accordion
- Anchor link
- CodeMirror
- Editor Advanced Image
CKEditor5 Limk Popup

🇮🇹Italy giordy

The error in the log file appeared during installation and then did not reappear.

🇮🇹Italy giordy

Thanks for fixing the zip file.

Unfortunately I do not agree with the choice that was made starting from Drupal 8.
Once there was Drupal 7, with hundreds and hundreds of modules. It was the favorite CMS of Italian schools. Only a few used Joomla or WordPress. Courses were held and beautiful sites were built. I too, for my school, made a site with everything that could be needed.
The forums were full of users who helped you develop these sites.
Then Drupal 8 arrived with the use of Composer. It is unthinkable that volunteer teachers or, even worse, secretarial staff, with everything they have to do, have the will and the ability to tinker with Composer. The forums have emptied and schools have chosen other cms.
In addition to schools there are freelancers, shops, artisans, parishes. How many use Drupal? Most of it is done with WordPress, but many use pre-packaged sites that can be found online. In addition to being easy to customize, they are also nice.
Now there is no one left in the Italian forums.
Drupal has become a cms only for professionals and I am not one; as long as I can manage the site without Composer, I will continue, and then ... I will have to look elsewhere.
In my opinion, things have become unnecessarily complicated.
As we are thinking about automatic updates of Drupal, we could have left the direct installation of the modules. For the dependencies, it was enough to implement Ludwig for all the modules and above all to ensure that the versions of the modules followed those of the core.

Sorry for the outburst

🇮🇹Italy giordy

Semplicemente scarico il file zip completo e sostituisco i vecchi files con i nuovi. Sono anni che funziona senza problemi.

lo zip drupal 11.1.8 è di 32.12 MB, mentre quello di drual 11.2.0 è di 4,39 MB

Ho bisogno della versione completa di drupal 11.2.0 per fare la stessa operazione.

🇮🇹Italy giordy

I can't use composer because it's not included in the hosting plan, which I can't change because I'm not the owner of the site.

Up until version 11.1.8 I've always managed to install it manually.

Is there a full version to download like the previous ones?

Thanks and regards

🇮🇹Italy giordy

I replaced the Tabs module with Slideshow, because it seems more suitable https://prova.gmpe.it/onorato
but there are two problems:
- if I exclude the title from the display, the text is cut
- the text area at the bottom of the page is under the numbers

Thanks and kind regards

🇮🇹Italy giordy

border=0 is correct with Solo 1.0.13
https://prova.gmpe.it/link/gruppi-mineralogici-paleontologici

There are borders between lines with Solo 1.0.18
https://www.gmpe.it/link/gruppi-mineralogici-paleontologici

I would not like to go back to the old version.

Thanks and kind regards

🇮🇹Italy giordy

The poem you're using appears on a single page. This module is designed to work with multiple pieces of content, which can then be displayed using a View.

It's not a page, but a view: https://prova.gmpe.it/onorato

You could use the Paragraphs module to create tabs and show one section at a time.

The Paragraphs module is difficult to install without Composer.

As for borders, I apply custom classes to target specific tables. I don’t use inline styles, so unfortunately I can't offer help with that part.

I resume the discussion in the appropriate post: https://www.drupal.org/project/solo/issues/3513135 💬 Problem with classes in paragraphs and tables Active

Thanks and best regards

🇮🇹Italy giordy

I updated the view with Show Collapse or Expand (Single): https://www.gmpe.it/grotte

Thanks and kind regards

🇮🇹Italy giordy

I forgot to delete css #15.

Now see https://www.gmpe.it/prove:

- border=1 is correct

- border=0 and border-style:none need to be corrected because there is a bottom border on the cells, while the table should not have any border

- border-style:solid, inserted with ckeditor (should replace border=1), in theory it should be equal to border=1 but instead it is different

There is no rush, because I have already delivered the site and until they notice ...

thanks and best regards

🇮🇹Italy giordy

Sorry to have been abrupt but:
- I am not the owner of the site, but for twenty years I have been committed to keeping it updated
- I presented and published the site in Drupal 11 a few days ago, believing it was finished and only later I realized that there were problems; if I had known, I would have delayed the delivery
- I am not paid to make the site, I do it willingly, but up to a certain point, because there is still a lot of work to do: there are still problems with the tables and I will still have to browse all the pages and work on the code of almost all the tables
- the contents with the tables come from Drupal 9 with Mayo theme, then I transferred them to Drupal 10 with Solo theme, modifying some tables; now I have prepared the site in drupal 11 and I find myself with tables that are all different: see the page https://www.gmpe.it/prove
- while with the default theme and ckeditor 4 the tables were all the same (with and without borders) regardless of the code, now with ckeditor 5 and the Solo theme they have become different; this is why I felt discouraged and therefore I got a little upset
- she has done so much for me and is always available to all users and for this she deserves that the theme is successful, but for this it must reach the greatest possible number of users
- the theme has a large number of options and allows you to make very beautiful sites, but for those who need a traditional site, mainly based on text, as in my case, they may find themselves in difficulty if they are not very experienced.

In summary:
- I do not want to change the css because it would further upset the tables and they would no longer be manageable.
- The latest theme update might be fine if you fix some issues, as seen on the page https://www.gmpe.it/prove
In particular:
- border=0 and borde-style:none → remove the bottom border of the cells
- border=1 → insert the bottom border of the table
- border-style:solid → make it equal to border=1

Thanks and best regards

🇮🇹Italy giordy

I'm sorry, but the solution is not acceptable, it is not normal and it is not feasible. Drupal and ckeditor have always allowed tables with and without borders. It is unthinkable that, in a site that has been finished for a long time, you start browsing the 457 very long pages, with dozens of tables, with and without borders, and then search in the source code for the table without borders to manually insert the code, considering that they are both on the same page.
The problem had already occurred and had been solved in another way and I hope there is another solution. I don't think I'm the only one to use tables with and without borders.

Thanks and best regards

🇮🇹Italy giordy

Sorry to be back here, but I noticed that tables with border=0 have a border.
Compare:
https://www.gmpe.it/link/gruppi-mineralogici-paleontologici
https://prova.gmpe.it/link/gruppi-mineralogici-paleontologici

Thanks and best regards

🇮🇹Italy giordy

Now everything is perfect, everything works, the site is back to normal. I hope there are no other revolutions.

Thanks for everything and best regards

🇮🇹Italy giordy

The css still doesn't work. The cache has been emptied dozens of times.

Thanks and best regards

🇮🇹Italy giordy

We had already used border-spacing:0, but it didn't solve the problem.
For now I'll leave it like this.

Thanks and best regards

🇮🇹Italy giordy

Thanks for what you are doing for me.

I like the default table, but with my header.
Unfortunately I still have two borders.
This is the css I inserted:

html #page-wrapper table {
  margin: 0 auto;
}

html #page-wrapper table th {
  background: #f5f0e7 !important;
  border-bottom: 3px solid #b0e6d1 !important;
  text-align: center;
}

#page-wrapper table tr {
  border-bottom: none;
}

#page-wrapper table tr td,
#page-wrapper table tr th {
  padding: 4px 6px;
}

#page-wrapper .view table tr td,
#page-wrapper .view table tr th {
  text-align:center;
}

.bordertab {
  border-bottom: 1px solid #BCC8AD !important;
}

Thanks and best regards

🇮🇹Italy giordy

I can't set border=0 because all the tables in views no longer have a border and instead there must be one.
Compare:
https://www.gmpe.it/notiziario
https://prova.gmpe.it/notiziario

The other tables also have no border, while the border must be there:
https://www.gmpe.it/vulcani/attivita-vulcanica

Maybe I can't explain myself well, but what I need are tables like this one, which is perfect, and must be the same throughout the site:
https://prova.gmpe.it/notiziario

If I set border=1, nothing changes in the view tables and they remain perfect.
The other tables, however, have two overlapping borders: one black and one brown. Only the black border must be eliminated, but not the other.
The tables must return to how they were before. I don't understand what happened.

Thanks for your patience

🇮🇹Italy giordy

I tried the css, but it doesn't work.
See Firefox → CTR + SHIFT + M → 1280 x 756
The APPROFONDIMENTI menu does not show the latest links.

A solution could be to have the possibility to lock the main menu, so it scrolls with the page.

Thanks and best regards

🇮🇹Italy giordy

The css does not solve the problem: it overlaps the two borders, but two remain. Instead the black border should disappear and the other one should remain, as in this page: https://www.gmpe.it/notiziario
I did not change anything because the site was finished.

Thanks and best regards

🇮🇹Italy giordy

1. I have to use css because the variable doesn't work if the text is inside the paragraph.

2. The tables must all have the same border, but I don't understand why the border is double. The color doesn't matter, but the border must not be double.

Thanks and best regards

🇮🇹Italy giordy

Why were the changes not included in version 11.1.2? I had to re-apply the patch #13.

🇮🇹Italy giordy

On my theme I applied this css, but I don't know if it works on yours too:

.field--type-text-long img:not(img.align-center),
.field--type-text-long video:not(video.align-center),
.field--type-text-long embed:not(embed.align-center),
.field--type-text-long object:not(object.align-center),
.field--type-text-with-summary img:not(img.align-center),
.field--type-text-with-summary video:not(video.align-center),
.field--type-text-with-summary embed:not(embed.align-center),
.field--type-text-with-summary object:not(object.align-center) {
   display: inline-block;
}
🇮🇹Italy giordy

I inserted the slideshow into the site, it came out well: https://prova.gmpe.it/euganei/fauna-euganea.
It is inconvenient to have to insert the number of pages in the view.

Best regards

🇮🇹Italy giordy

Thanks for all the customizations.

Best regards

🇮🇹Italy giordy

Is it possible to fix this for Drupal 11 too?
I can't publish my site with a warning every 10 seconds.

🇮🇹Italy giordy

It came out great!

Thank you so much and best regards

🇮🇹Italy giordy

giordy created an issue.

🇮🇹Italy giordy

Great! It works perfectly.

Thanks and best regards

🇮🇹Italy giordy

Thanks! That was the problem. I forgot to check.
Sorry for the inconvenience.
Best regards

🇮🇹Italy giordy

The sidebar menu must have a curse.
On drupal 10 it works as expected, while on drupal 11 there are no the arrows, yet the sites are identical.
Compare https://www.gmpe.it/rocce/rocce and https://prova.gmpe.it/rocce/rocce
What could it depend on?

Thanks and best regards

🇮🇹Italy giordy

Unfortunately I can't use composer because it is not included in the hosting plan.
I have been using the module for years and I had never been asked for this library. I don't understand why it happens now.

Thanks and best regards

🇮🇹Italy giordy

I found an even simpler solution: I changed the video resolution.

🇮🇹Italy giordy

I would have found an alternative solution:
- I create an html page
- I call the page with glightbox-inline

It works with Edge and Chrome, but not with Firefox

🇮🇹Italy giordy

- The page is the one in #1: https://prova.gmpe.it/chiavi-riconoscimento-minerali.
- Chrome 131.0.6778.205
- anonymous user
- No specific error in "recent log messages", but a warning for all pages visited: #3
- No problem with drupal 9 and 10

Thanks and kind regards

🇮🇹Italy giordy

Unfortunately the problem is not solved. I noticed that with Chrome some views are not shown.

🇮🇹Italy giordy

I found a way to center the images, so the problem is circumvented by avoiding putting the p and div tags.

Kind regards

🇮🇹Italy giordy

The author of the Solo theme, provided me with some css to add to my custom theme.
Now it works perfectly.

Kind regards

🇮🇹Italy giordy

Thank you so much. It works perfectly.

🇮🇹Italy giordy

I tried to insert a block, but the result does not change.
Maybe it is better that I remove the reset button.

Thanks and kind regards

🇮🇹Italy giordy

In the page source there is class="align-center" and "align-right": center does not work, right works.

I will try to contact the theme author, but I don't think this is the problem because it occurs with all the themes I use.
I usually align images in another way, but this problem is related to this other one: https://www.drupal.org/project/drupal/issues/3489646 🐛 CKEditor 5 moves some classes in the a tag Active

One or the other must be solved, unless a Drupal version of Colorbox-inline arrives.

Thanks and best regards

🇮🇹Italy giordy

Sorry, but I don't understand English well and I have to use Google translate.
1. I answered: I use the Solo theme https://www.drupal.org/project/solo
2. I'm not very experienced and I don't know what to look at. the test page is this: https://prova.gmpe.it/prove

Thanks and best regards

🇮🇹Italy giordy

I use the Solo theme, but I've always had this problem with other themes and other versions of Drupal.
https://prova.gmpe.it/prove

🇮🇹Italy giordy

1. I Click on the IMCE button (fig. 1).
2. I Select the image (fig. 2).
3. I Select "align center" (fig. 3).
4. Check the source code (fig. 4).
5. I Save.
6. The image is aligned to the left (fig. 5).

🇮🇹Italy giordy

I have a similar warning with drupal 11.0.9 for every page visited. It must have appeared after one of the latest core updates.
The site with drupal 10.3.10 has the same pages and settings, but there is no warning.
I don't know how to fix it.

Thank you

Warning: Undefined array key 1 in Drupal\Core\Asset\AssetResolver->getJsAssets() (line 243 of /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/Asset/AssetResolver.php)

#0 /home/hmcpdbiy/prova.gmpe.it/core/includes/bootstrap.inc(108): _drupal_error_handler_real(2, 'Undefined array...', '/home/hmcpdbiy/...', 243)
#1 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/Asset/AssetResolver.php(243): _drupal_error_handler(2, 'Undefined array...', '/home/hmcpdbiy/...', 243)
#2 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php(286): Drupal\Core\Asset\AssetResolver->getJsAssets(Object(Drupal\Core\Asset\AttachedAssets), true, Object(Drupal\Core\Language\Language))
#3 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php(123): Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAssetLibraries(Object(Drupal\Core\Asset\AttachedAssets), Array)
#4 /home/hmcpdbiy/prova.gmpe.it/core/modules/big_pipe/src/Render/BigPipeResponseAttachmentsProcessor.php(97): Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAttachments(Object(Drupal\Core\Render\HtmlResponse))
#5 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/EventSubscriber/HtmlResponseSubscriber.php(45): Drupal\big_pipe\Render\BigPipeResponseAttachmentsProcessor->processAttachments(Object(Drupal\Core\Render\HtmlResponse))
#6 /home/hmcpdbiy/prova.gmpe.it/vendor/symfony/event-dispatcher/EventDispatcher.php(246): Drupal\Core\EventSubscriber\HtmlResponseSubscriber->onRespond(Object(Symfony\Component\HttpKernel\Event\ResponseEvent), 'kernel.response', Object(Symfony\Component\EventDispatcher\EventDispatcher))
#7 /home/hmcpdbiy/prova.gmpe.it/vendor/symfony/event-dispatcher/EventDispatcher.php(206): Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure}(Object(Symfony\Component\HttpKernel\Event\ResponseEvent), 'kernel.response', Object(Symfony\Component\EventDispatcher\EventDispatcher))
#8 /home/hmcpdbiy/prova.gmpe.it/vendor/symfony/event-dispatcher/EventDispatcher.php(56): Symfony\Component\EventDispatcher\EventDispatcher->callListeners(Array, 'kernel.response', Object(Symfony\Component\HttpKernel\Event\ResponseEvent))
#9 /home/hmcpdbiy/prova.gmpe.it/vendor/symfony/http-kernel/HttpKernel.php(216): Symfony\Component\EventDispatcher\EventDispatcher->dispatch(Object(Symfony\Component\HttpKernel\Event\ResponseEvent), 'kernel.response')
#10 /home/hmcpdbiy/prova.gmpe.it/vendor/symfony/http-kernel/HttpKernel.php(204): Symfony\Component\HttpKernel\HttpKernel->filterResponse(Object(Drupal\Core\Render\HtmlResponse), Object(Symfony\Component\HttpFoundation\Request), 1)
#11 /home/hmcpdbiy/prova.gmpe.it/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#12 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#13 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#14 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#15 /home/hmcpdbiy/prova.gmpe.it/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#16 /home/hmcpdbiy/prova.gmpe.it/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#17 /home/hmcpdbiy/prova.gmpe.it/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#18 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#19 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#20 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#21 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#22 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/DrupalKernel.php(709): Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#23 /home/hmcpdbiy/prova.gmpe.it/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#24 {main}
🇮🇹Italy giordy

Unfortunately none of the three methods work:
- div moves the class as p
- css does not center the image

CKEditor 5 sucks!

🇮🇹Italy giordy

I found the problem: it's the p tag

It works if I put:

<a class="glightbox" href="/sites/default/files/tettonica/tectonics_map.gif"><img src="/sites/default/files/tettonica/vulcani.png" data-entity-uuid="" data-entity-type="file" alt="distribuzione di vulcani e terremoti" width="651" height="223"></a>

If instead I put:

<p class="text-align-center">
<a class="glightbox" href="/sites/default/files/tettonica/tectonics_map.gif"><img src="/sites/default/files/tettonica/vulcani.png" data-entity-uuid="" data-entity-type="file" alt="distribuzione di vulcani e terremoti" width="651" height="223"></a>
</p>

CKEditor moves the class and shows the wrong image:

<p class="text-align-center">
<a href="/sites/default/files/tettonica/tectonics_map.gif"><img class="glightbox" src="/sites/default/files/tettonica/vulcani.png" data-entity-uuid="" data-entity-type="file" alt="distribuzione di vulcani e terremoti" width="651" height="223"></a>
</p>

Unfortunately without the p tag I don't know how to center the images.

Thanks and best regards

🇮🇹Italy giordy

I found the problem: it's the p tag

It works if I put:

<a class="glightbox" href="/sites/default/files/tettonica/tectonics_map.gif"><img src="/sites/default/files/tettonica/vulcani.png" data-entity-uuid="" data-entity-type="file" alt="distribuzione di vulcani e terremoti" width="651" height="223"></a>

If instead I put:

<p class="text-align-center">
<a class="glightbox" href="/sites/default/files/tettonica/tectonics_map.gif"><img src="/sites/default/files/tettonica/vulcani.png" data-entity-uuid="" data-entity-type="file" alt="distribuzione di vulcani e terremoti" width="651" height="223"></a>
</p>

CKEditor moves the class and shows the wrong image:

<p class="text-align-center">
<a href="/sites/default/files/tettonica/tectonics_map.gif"><img class="glightbox" src="/sites/default/files/tettonica/vulcani.png" data-entity-uuid="" data-entity-type="file" alt="distribuzione di vulcani e terremoti" width="651" height="223"></a>
</p>

Unfortunately without the p tag I don't know how to center the images.

Thanks and best regards

🇮🇹Italy giordy

Maybe I didn't understand the problem (I don't know English and I use Google Translate) or I explained myself badly.

My problem is that the image captions are aligned to the right and I wanted them in the center, but I don't know how to do it.

Thanks and best regards

🇮🇹Italy giordy

The Editor Advanced Link and Editor Advanced Image modules are regularly installed.
That is not the problem.

The module works with text, but does not work with two images.

I summarize the situation.

1. I insert an image with IMCE
2. I connect the image with another image
3. In the link I put the glightbox class
4. I save and check if it works: html has not changed
5. In the same page I copy the code of another page that originally had colorbox
6. I replace colorbox with glightbox
7. I save and check if it works: html has changed, the class has been moved from the link to the image

See the page https://prova.gmpe.it/prove.

In the same page I have two images, one works and the other does not. Absurd!
Practically, it only works on new images and not on existing ones.

I do not know how to solve the problem because I have dozens of images to replace.

Thanks and best regards

🇮🇹Italy giordy

I checked with all browsers and the problem disappeared.
The warning, however, also concerns other pages.
I need to look into it because I don't understand anything about these things.

Thanks for everything

🇮🇹Italy giordy

Now everything is visible perfectly.

There are no errors in the server and neither does Drupal report errors.

Instead there is this warning:

Warning: Undefined array key 1 in Drupal\Core\Asset\AssetResolver->getCssAssets() (line 130 of /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/Asset/AssetResolver.php)

#0 /home/hmcpdbiy/prova.gmpe.it/core/includes/bootstrap.inc(108): _drupal_error_handler_real(2, 'Undefined array...', '/home/hmcpdbiy/...', 130)
#1 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/Asset/AssetResolver.php(130): _drupal_error_handler(2, 'Undefined array...', '/home/hmcpdbiy/...', 130)
#2 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php(279): Drupal\Core\Asset\AssetResolver->getCssAssets(Object(Drupal\Core\Asset\AttachedAssets), false, Object(Drupal\Core\Language\Language))
#3 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php(123): Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAssetLibraries(Object(Drupal\Core\Asset\AttachedAssets), Array)
#4 /home/hmcpdbiy/prova.gmpe.it/core/modules/big_pipe/src/Render/BigPipeResponseAttachmentsProcessor.php(97): Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAttachments(Object(Drupal\Core\Render\HtmlResponse))
#5 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/EventSubscriber/HtmlResponseSubscriber.php(45): Drupal\big_pipe\Render\BigPipeResponseAttachmentsProcessor->processAttachments(Object(Drupal\Core\Render\HtmlResponse))
#6 /home/hmcpdbiy/prova.gmpe.it/vendor/symfony/event-dispatcher/EventDispatcher.php(246): Drupal\Core\EventSubscriber\HtmlResponseSubscriber->onRespond(Object(Symfony\Component\HttpKernel\Event\ResponseEvent), 'kernel.response', Object(Symfony\Component\EventDispatcher\EventDispatcher))
#7 /home/hmcpdbiy/prova.gmpe.it/vendor/symfony/event-dispatcher/EventDispatcher.php(206): Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure}(Object(Symfony\Component\HttpKernel\Event\ResponseEvent), 'kernel.response', Object(Symfony\Component\EventDispatcher\EventDispatcher))
#8 /home/hmcpdbiy/prova.gmpe.it/vendor/symfony/event-dispatcher/EventDispatcher.php(56): Symfony\Component\EventDispatcher\EventDispatcher->callListeners(Array, 'kernel.response', Object(Symfony\Component\HttpKernel\Event\ResponseEvent))
#9 /home/hmcpdbiy/prova.gmpe.it/vendor/symfony/http-kernel/HttpKernel.php(216): Symfony\Component\EventDispatcher\EventDispatcher->dispatch(Object(Symfony\Component\HttpKernel\Event\ResponseEvent), 'kernel.response')
#10 /home/hmcpdbiy/prova.gmpe.it/vendor/symfony/http-kernel/HttpKernel.php(162): Symfony\Component\HttpKernel\HttpKernel->filterResponse(Object(Drupal\Core\Render\HtmlResponse), Object(Symfony\Component\HttpFoundation\Request), 1)
#11 /home/hmcpdbiy/prova.gmpe.it/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#12 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#13 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#14 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#15 /home/hmcpdbiy/prova.gmpe.it/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#16 /home/hmcpdbiy/prova.gmpe.it/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#17 /home/hmcpdbiy/prova.gmpe.it/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#18 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#19 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#20 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#21 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#22 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/DrupalKernel.php(709): Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#23 /home/hmcpdbiy/prova.gmpe.it/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#24 {main}

Thank you very much

🇮🇹Italy giordy

Attached are the images of the buttons and filters, unfortunately in Italian, of full_html.

Instead of modifying the existing pages, I repeat the procedure on a new page: https://prova.gmpe.it/prove.

1. I insert an image with IMCE
2. I connect the image with another image
3. In the link I put the glightbox class
4. I save and check if it works: html has not changed
5. In the same page I copy the code of another page that originally had colorbox
6. I replace colorbox with glightbox
7. I save and check if it works: html has changed, the class has been moved from the link to the image

In the same page I have two images, one works and the other does not. Absurd!
Practically, it only works on new images and not on existing ones.
Unfortunately I have to replace all the colorbox in the site with glightbox because Colorbox Inline module it looks like it won't be there for drupal 11.

Thanks for your patience

🇮🇹Italy giordy

1. https://simplytest.me/ does not work: There was a build error 60%
2. CKEditor 5 demo: the problem does not reproduce.
3. I create the page https://prova.gmpe.it/tettonica/attivita-sismica-vulcanica
4. In the source code I insert:

<p class="text-align-center">
<a class="glightbox" href="/sites/default/files/tettonica/tectonics_map.gif"><img src="/sites/default/files/tettonica/vulcani.png" width="651" height="223"></a>
</p>

5. I save.
6. I check the source code:

<p class="text-align-center">
<a href="/sites/default/files/tectonica/tectonics_map.gif"><img class="glightbox" src="/sites/default/files/tectonica/vulcani.png" width="651" height="223"></a>
</p>

7. The problem occurs in all pages with the glightbox class
8. In text formats there are no filters for glightbox

🇮🇹Italy giordy

Thanks for the reply. Unfortunately I am not familiar with scripts and do not know how to use them.
I think I found the problem anyway.

In the documentation:

<!-- Simple image -->
<a href="large.jpg" class="glightbox">
  <img src="small.jpg" alt="image" />
</a>

On my site I put:

<a href="/sites/default/files/tettonica/tectonics_map.gif" class="glightbox"><img src="/sites/default/files/tettonica/vulcani.png" width="651" height="223"></a>

I save, check the code and find:

<a href="/sites/default/files/tettonica/tectonics_map.gif"><img class="glightbox" src="/sites/default/files/tettonica/vulcani.png" width="651" height="223"></a>

CKEditor moved the class to the second image.
How do I fix it?

P.S. Did you see my question in https://www.drupal.org/project/glightbox/issues/3441244#comment-15863159 🐛 Setting description position not working Active ?

Thanks and kind regards

Production build 0.71.5 2024