Account created on 12 June 2023, almost 2 years ago
#

Recent comments

It reminds me of bitnami which is used in cloud service such as amazon lightsail to install and configure Drupal, that makes updating Drupal difficult (or impossible) due to the bitnami middle ware, so that is a trap.

I don't recommend using a basic page for home pages, one reason is that using basic pages limit the number of classes that can be used in CSS, making it difficult apply CSS only to specific content pages.

It is simple to create your own content type. Go to create (add) content type where you can specify your own machine name that end up with new, original class name.

I don't know this is related, but if you have some trouble with bots, how about using spam filter such as mosparo? By using spam filter, visitors have to click check box to send query. 

your link is not direct link which makes visitors feel confusing, pls modify link urk.

If you know how to debug this issue, pls teach me, thanks.

I had the issue Drupal 10.4.1. and recently I tested installing this module on Drupal 10.3.2 then still I had the same issue.

Step to reproduce
1. Prepare Drupal 10.3.2 or 10.4.1 on local dev project.
2. Install this module by running the command under the dev project; composer require 'drupal/user_manual:^1.0'
3. Login to admin page, install (activate) the module, then you have warning of "Entity module is needed to install with it", so press install to install both modules.
4. clear cache.
5. Click User Manual menu listed in the admin menu.
6. Click Add user manual entry button to create a manual page, but it fails because you need to create taxonomy first.
7. So move to taxonomy and move to the User Manual Topics, then add one term.
8. Again click User Manual menu and Add user manual entry button, edit the required fields, then click save button.
9. Voila, new page is shown and on the top of the page, duplicated tabs appears!

#22
For information, Olivero menu on my site has not been working, that is the function in which navigation should move left side of the screen and three bar menu should appear after scrolling down on PC size. So now navigation is just fixed like a simple html site. Actually I don't need that function so I have not fixed it. It occurs when I upgrade Drupal version using Olivero, or maybe it is related Google tags module, I don't know.

>Also can you try uninstalling big pipe to see whether that makes any difference?
On test site, I uninstalled big pipe and did cache refresh, but the issue still persists.
Then I reinstalled big pipe, and the problem disappeared, just as like Google Tag #16 case.

I found suspicious modules.
On the project where the issue happens, some js files are loaded in head tag even with aggregation unchecked.
The bottom of the list of js files in head tag, Toolbar Anti-flicker module exists and before that, Google Tag module exists.
I cloned the project, and on the cloned test site, I uninstall Toolbar module. Nothing improves. Then I uninstalled Google Tag module and the issue dissapeared. After that I reinstalled Toolbar modules and Google Tag modules, but problem didn't occur. Then I visit the config page for Google Tag, no ID was set by default, so I tried to set ID but error returned, perhaps it is due to local environment or using ID with multiple environment; prod and dev.
I had Google Tag module active on my site before Drupal Core upgrade and updated core and module with the command composer update. There is no serious bug is reported on Google Tag module page; https://www.drupal.org/project/google_tag .

For my cases, it solved (dissapeared) after solving any other red errors on Status report.

I did clean-install of Drupal 10.1.8 and upgdade it to 10.3.5. I couldn't reproduce the issue. But I found that navigation-utils.js is loaded at the bottom of Body tag on the project, while it is loaded in the head tag on the issued project. So something is wrong.

OK. My description of Steps to reproduce is not right.
Maybe pre-installed some modules are related to this issue, I'm using only major modules though.
And I myself solved this issue as I said so it is not serious issue for me.
I think it is good to pending this issue and wait someone else has same issue.

 I thinks this topic is posted on ForumsSupport Postinstallation, not Theme development.

Anyway, the reason your css is not inherit is probably the wrong way of creating the sub theme.
In your css folder under the sub theme folder, there are several folders such as base,components,layout, theme, etc.
And you should create a custom.css file UNDER THE THEME folder to modify your site, if you are new to Drupal. The Theme folder is loaded after the other css folders. And you should also change yoursubtheme.info.yml, yoursubtheme.libraries.yml and yoursubtheme.theme.yml.

You also unckeck the css aggregation on cache Performance setting page in Admin site.

That's all.

And notice that if you will keep using the site and do major/minor upgrading for not a simple site, sub theming from released active theme is not stable because when the parent theme is upgraded, the css changes a lot. I think stark core theme is less unstable than Olivero. Anyway, the best thing is using more popular and more active themes because bug fix is related to them.

I got same error on Drupal10.3.5.
I got this error just after adding and removing title field to the replacement pattern on views. The error still remains after deleting title field. Clearing cache does not work.

Same here. And also, the icon of image styles do not appear for the image embedded via Media.

If I remember correctly, you should set max-age at your web server, and if you set caching maximum age at Performance page of Drupal, then site visitors' browser cache behavior can be unexpected. I don't recommend setting caching maximum age at Performance page.

I'm not quite sure I understand what you are saying, but I think if you specify the two fields inline in views, which is a standard Drupal feature, they will be side-by-side.

I had the same trouble as you have. Google indexed my old page and when I update the information and changed url alias, the new page can not be indexed by Google. The only solution was to make Google delete old indexes manually.

Solved.
These errors happens due to the js error from core theme, Olivero. It is solved after fixing the code in Olivero.

If this error of Olivero is left unchecked, other modules may also generate errors and stop working. As an example, views slide show module will generate an error and stop working.

There are possibilities, and one of them is language setting for the block.

To update the guide of the filter, probably I have to check the source code of the functions, so it is difficult for me.

BTW, I don't understand what When the filter value is NOT available means. Because I only changed the value, not the default filter value below that and it works.

For those who search how to use the function, I write here the simplest working example. 
1. I create a content which contains title, body, image, taxonomy, date fields and etc.
2. I want to use some of the fields data on the same page but in the different region.
3. So I create a view of block for each fields for the different region.
4. Normally when I create a view from a content, it contains all data (all pages) of the same content type. So to filter it by a specific page, I need to use contextual filter.
5. In this scenario, all I have to do next is creating contextual filter with the options of title:id and next choosing Provide default value with Content ID from URL for "When the filter value is NOT available". That's all for the contextual filter.
Note: When you click add button of contextual filter, you have to choose just ID, not the machine name of the content page nor field names. This part is the tricky part of this option.
6. Set the view block to the region you want on the block layout page.

That's all.

https://www.drupal.org/updating-and-upgrading-drupal-core

After upgrading Drupal Core, Site Report showed this error, and also an error about "DB upgrade is needed".

This URL alias error is solved after running update.php

[Solved?]

OK. I found that after installing media_library_theme_reset, that module is listed on uninstall pane as the name of "media library theme reset" without "_". I searched the module by the machine name, media_library_theme_reset, because it is listed as it on Install pane.

So finally I can uninstall the module, I think.

The below command solved this issue.

composer update

Tips: The below error frequently happens;

[RuntimeException]                                             
  Could not delete /app/web/sites/default/default.services.yml: 

To avoid this error, set permission to 755 from 555 for default folder (and default.*.* files under the folder), if you doesn't allow writing permission to the owner. After upgraded, don't forget to restore permissions.

As  ipllc  says,  mullzk 's post should be a big step towards understanding the Drupal system.

I'm still doing the old fashioned way with copying all files and data from prod site to local, modifying them, and copying back to the prod site. If someone is taking the same way, you may want to test modifying codes before copying from prod site because that is faster way in terms of working before the content of prod site is updated. I always wonder if there are some folder's that don't need to be rsynced such as vender folders and core folders, so understanding Drupal system should be helpful.

Thanks for the comment to my post.

The issue I had run into has been solved. The weight of the file loading order is written in Drupal Documents, and to load custom file last, custom file should be under theme folder because the theme folder is loaded latter than base, layout, and components folder.

If images are not shown and you have 404 status for them, check image url on the browser. If the url is wrong, redirect settings is possibly one of the culprit.

I think you should write more details.

For example, is it all images including logo, icon, etc, or specific kind of images?

Is it always happens or not?

Do you have cache setting on web server with .htaccess or webconfig files?

Do you enabled caching on Performance settings on Drupal? I recommend no-caching for it.

I managed to solve this.

1. Upload og image via Media module.

2. Add and enable Metatag field to the Content Type you want to use.

3. Manage the metatag settings on the Configuration-Metatag, i.e. activate advanced and og menu.

4. Edit metatag information on Content page you want to use.

Ok, I tested. I created scaled image by using php command with gd, instead of Drupal. Then compared two images, and the result is they were same in quality. So this is not Drupal's fault, but GD itself's. To get clear scaled image, we should use Photoshop and choose proper extension for each cases.

Thank you for hinting.

FYI:

https://drupal.stackexchange.com/questions/93816/why-is-there-quality-lo...
This article says "This solution didn't work for me in D9 version 9.2.10 :( –  Achraf JEDAY  Dec 10, 2021 at 7:23".

https://drupal.stackexchange.com/questions/259815/how-come-images-with-i...
This article says "I've delt with this issues on many sites. The cached version from the image s…answered Apr 13, 2018 at 21:59 Travis Johnston"

Try this

puplic_html/YOURFOLDERNAME/web

puplic_html/YOURFOLDERNAME/vendor

for .htaccess file in the public_html directory:

RewriteRule ^(.*)$ YOURFOLDERNAME/$1 [QSA,L]

for .htaccess file in the web directory, you wouldn't need modify anything, and you don't need below line. 

RewriteBase /kal/web

for the error like below, run core/rebuild.php

Redirects to external URLs are not allowed by default, use \Drupal\Core\Routing\TrustedRedirectResponse for it.

 and also make sure there is the following snippet to settings.php:

if (isset($GLOBALS['request']) and
'/subdirectory/index.php' === $GLOBALS['request']->server->get('SCRIPT_NAME')) {
$GLOBALS['request']->server->set('SCRIPT_NAME', '/index.php');
}

OK, thanks for confirming and posting the issue.

I'm using lando(lando Docker) on local and rsync files to transfer to/from the prod. site.

You are using DDEV?, Docker? , I don't know, but your Drupal files should does exist in order, it is impossible files are disordered in a container or whatever.

As for WSL, WSL mounts files and file path changes so that you have to access to the proper location.

https://stackoverflow.com/questions/69087715/how-to-access-docker-data-f...

Changed the priority from critical to minor, because you should normally add text-alignment to P tag, not div for the example I posted.
So the example I posted is not good. But still the issue exist, because for another example, add text-color using Layout Builder is overridden by the text-color of the inner elements.

I don't know if this is related to this topic, but I had an issue related to the core css: https://www.drupal.org/forum/support/post-installation/2024-02-06/cancel...

Here, I tried to override css of the core and that was not easy because that part of the css is in core, not theme. So if I have to modify the css for header and footer, isn't it difficult when the region is made theme-agnostic?

I work for the site eight hours in a week, so I just want to know the impact of the vulnerability while the issue is left unsolved.

The solution is using full set (or the others) instead of basic set.

So the basic set has bug with this module.

That's it!

It seems working fine now. I don't know why it didn't working.

I forgot how to solve this issue, but I think I solved like one fo the below things:

1.  Go to Structure-content type- field setting, then remove the default title field.

2. Or editing template and delete title parts.

thank you.

After that, I can able to enable maintenance mode by clearing cache of Drupal. This is required both dev. and prod. sites.

TolstoyDotCom  and Jaypan, thank you for your response.

I'll try it later. I forgot to mention that converted WebP image was successfully exist in folder and displayed by browsers,  but it failed to be generated if it was "converted WebP plus scaled".

Drupal's image manipulation functions

Would you tell me where is this function? I'm new to Drupal.

BTW, my local dev site has this issue, but it seems OK after uploading to the prod site.

Thanks for your info. But this issue is solved after I changed config.json as below

    "config": {
        "process-timeout": 1200
    }

BTW, another issue occurred just after upgrading Drupal.

The "clear cache" button disappeared and also I can't login. Fortunately, the last login session was active in some browser, so I tried to create another admin account, then I could log in.

The disappearance of "clear cache" button was also solved by running "core/rebuild.php" command. But the problem is all user account isn't working except for newly created admin account. I have no idea what was wrong, user data was broken after upgrade? or password module thing? cache mismatch?

I'm going to run update.php following to the error message on admin/reports/status#error page. I hope this would work...

Thanks, feedback helps a lot!

>Better: just change the name in both of the tables above and clear caches.

Sounds good! looks like nice idea.

It seems I can customize only articles if I create article.twig for sub-theme.

tjtj  's this response seems to start working for the issue of linking subdirectory to webroot.

Error disappeared, but instead, "page not found" error occur sometimes.

The system link such as  "content, structure, appearances, extend", etc. still contains /subdirectory/ path so that above error is shown, but when I click the same system link of the same page again, path changes and /subdirectory/ disappears so it start working fine. the problem is every system link shown on each page of the site has the same issue independently..it takes time to fix it.

Solved. I created the page in English but the language of the production site is different one, so the page alias didn't work.

Ya, I know that, but Layout Builder Blocks requires Bootstrap Styles that requires Media Library Theme Reset, not layout_builder_iframe_modal.

After I read this thread, I start using this font module, but when I choose basic set, below error always shown and I can't add this function to the editor:

drupal The following elements are missing:"<span style>"

when I modify full set, I have no problem, only for basic set.

How can I solve the issue?

same here. Anything new?

Also you may upload images for some image hosting projects and then share the links in a forum post.

I Understand. Thank you.

That module can not be activated on Drupal 10.

The website encountered an unexpected error. Please try again later.

TypeError: array_filter(): Argument #1 ($array) must be of type array, null given in array_filter() (line 141 of modules/contrib/ckeditor5_font/src/FontColorsManager.php).

Drupal\ckeditor5_font\FontColorsManager->getValidColors(NULL) (Line: 105)
Drupal\ckeditor5_font\FontColorsManager->validateConfigurationForm(Array, Object) (Line: 650)
Drupal\ckeditor5\Plugin\Editor\CKEditor5->validateConfigurationForm(Array, Object) (Line: 211)
editor_form_filter_admin_format_validate(Array, Object)
call_user_func_array('editor_form_filter_admin_format_validate', Array) (Line: 82)
Drupal\Core\Form\FormValidator->executeValidateHandlers(Array, Object) (Line: 275)
Drupal\Core\Form\FormValidator->doValidateForm(Array, Object, 'filter_format_edit_form') (Line: 118)
Drupal\Core\Form\FormValidator->validateForm('filter_format_edit_form', Array, Object) (Line: 593)
Drupal\Core\Form\FormBuilder->processForm('filter_format_edit_form', Array, Object) (Line: 325)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object) (Line: 39)
Drupal\layout_builder\Controller\LayoutBuilderHtmlEntityFormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 163)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 74)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 686)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Thanks, but I'm not asking about INP's definition, I'm asking about Drupal 10.

Page keyword meta tag is not used for Google search engine evaluation any more.

Thanks. I tried that and it seems work well.

I also embed YouTube video via editor, and it is about 100px wide at first. And I changed max size of the video at media/manage/remote_video/display.It worked too. 

Thank you both!

I'm new to Drupal so I have lack of knowledge. 

Is "/node"  a reserved node?  Should I just use /node, or modify front view setting to /node/5 to fix this issue? Or can I modify the url alias of the homemade front page to just "/node"?

Thanks.

Hi, thanks for new info.

I didn't find the word title in page.html.twig at all, and I inspected front page, then found that page title is set in the "region content above" in Olivero, so I edit block setting configuration pane to disable page title block at only front page.

BTW, do you know the reason why there is no front page content just after installation? After installation, get-started.html.twig is shown in the front page and once you create, or failed to create, front page, get-started info is not shown again and got error text. But I think it would be better if there is a default front page that contains getting start information from the beginning and newbies just edit the body text to create your own front page. Are there any reason the front page is so complicated just after installation?

Deleting /web folder didn't solve the issue, but I had forgotten changing web_root parameter of lando.yml file in project folder, so now it solved.

Over all, this method, editing composer.json for webfoot change, had downside:

1. "composer install" takes 10 minutes, if issues happen related composer, it takes time multiple by 10. Our website should be with light maintenance because of the nature of our business, so composer thing could be a bottle neck.

2. Folder of custom theme disappear from the project after run composer install, so every time I have to copy and paste the custom theme from backups. And I doubt custom theme folder is the only one which disappear after composer install.

3. I suspect I have to composer install whenever system is updated; core, modules, theme etc.

So if I need to composer install again, I try to use symlink method instead of changing name of webfoot.

Thanks.

 -- you are seeing is a Composer problem unrelated to the location of the webroot

It seems so. After that, I changed permission of project folder that is parent folder of /web folder, and then:

98% Install of drupal/core failed
The following exception is caused by a process timeout
Check https://getcomposer.org/doc/06-config.md#process-timeout for details [Symfony\Component\Process\Exception\ProcessTimedOutException] The process "'/usr/bin/unzip' -qq '/app/vendor/composer/tmp-830aca84988a175712ab80542dd2ee43' -d '/app/vendor/composer/2e2736b0'" exceeded the timeout of 300 seconds.

And then I added below line to composer.json:

 "config": {
        "process-timeout": 0,

The error disappeared.

I have another error below. Do you know what this is?

Fatal error: Cannot redeclare format_size() (previously declared in /app/web/core/includes/common.inc:136) in /app/htdocs/core/includes/common.inc on line 136

Thanks I followed your instruction, deleting vendor folder and run composer install, and still have issue:

75/76 [===========================>]  98%    Install of drupal/core failed

  [RuntimeException] 

Could not delete /app/vendor/composer/93ea4d98/drupal-core-1299803/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/recipe_instructions:

 

After editing composer.json file, what should I do?

I just run composer update after that, but it failed as below:

14/15 [==========================>-] 93% Install of drupal/core failed

[RuntimeException]

Could not delete /app/vendor/composer/feaaecca/drupal-core-1299803/profiles/demo_umami/config/install:

I found the rss image in the path below:

olivero/images/rss.svg

It looks like there is no other social icons/images in the Olivero source code.

So, the main image of the core theme site:

https://www.drupal.org/project/olivero

is misdirection.

This is not an answer but even core theme, Olivero, uses javascript for responsive menu.

I'm using Olivero and the responsive menu has some issue so I customized the css a lot that took a lot of time.

Customizing incomplete components takes time rather than making from the scratch. SoI think selecting Stark and add CSS responsive menu would be your option if you are used to Drupal.

It seems I have to set the Starterkit as default and Starterkit's base-theme could not be Olivero, even if I can generate Olivero based Starterkit like bellow:

"Add a line containing starterkit: true to the theme’s source_theme_name.info.yml file." of Olivero.

php core/scripts/drupal generate-theme mytheme --starterkit Olivero
Production build 0.71.5 2024