Drupal is up and running but how do I ...?

Using php code in a basic page

Hi,

It has been a while since I used Drupal and I was trying to use something I did in the past. Which is adding a small piece of php code in a basic page.

I have a form that shows a date picker and I would like it to be pre-populated with today's date.

So I thought to use this format:

<input type="date" value="<?php echo date('Y-m-d');?>">

But when I do that the PHP code is stripped by CKEditor5

How do you do quality assurance for your Drupal articles?

When I do quality assurance for an article before publishing it, I zoom in, in Drupal 10 CKEditor 5, at the level of about 500% and read each line slowly and carefully and fix anything need fixing, if at all.
But this is often problematic for me because of strange JavaScript and/or CSS behaviors on such a high zoom level, that can occur, especially while editing, like the edit bar goes on top of content.

How to send mail such as new account verifications

My Drupal site used to send me notifications for things like new account requests. At some point this broke, perhaps when going from 7 to 8. Now I want to fix it. I can see in the recent log messages that mail was sent,  but the recipient never received it, nor did I. 

Drupal 8.6.18

PHP 8.1.16 (I think)

Do I need to install the SMTP Authentication Support module? The doc page says it requires PHPMailer 6.x. 

My site is hosted at GoDaddy. Does that rule out using composer? How do I get to a shell command line? Do I just use manual installation through cPanel?

Unable to update module

I'm trying to update Simple XML sitemap 4.1.7 to Simple XML sitemap 4.1.8. Using the following command in composer as recommended. composer require 'drupal/simple_sitemap:^4.1'.

The response is 'Nothing to install, update or remove'. I then tried using composer require 'drupal/simple_sitemap:^4.1.8'.

Trouble (maybe a bug) with drush sql command /TTY in D 10.2.0 only

I don't know if this is the right place, and I wouldn't know where exactly to post this, but in case it is a bug I hope someone can report it. 

I explain the context first.
In the same hosting account I have two sites (including a subdomain that I use as a test). Both sites have Php 8.1.26 - Composer version 2.6.5 - Drush 12.4.3.0 

issue after running the command "drush cr"

Hi Team ,

I am facing an issue while running the command "drush cr" , 

wodby@php.container:/var/www/html $ drush sql-cli < db/dump.sql
wodby@php.container:/var/www/html $ drush cr

In EntityTypeManager.php line 139:

  The "date_format" entity type does not exist.

Please Kindly suggest us with  the solution for the above issue.

Pages

Subscribe with RSS Subscribe to RSS - Post installation