$node->set('field_my_datetime', '2025-01-18T11:28:00');
$node->set('field_my_datetime', date('Y-m-d\TH:i:s', time()));
Notice: See the difference between T and \T above.
$node->set('field_my_datetime', '2025-01-18T11:28:00');
$node->set('field_my_datetime', date('Y-m-d\TH:i:s', time()));
Notice: See the difference between T and \T above.
After Drupal core + module updates:
The roles anonymous & authenticated disapeared
Instead of the page content I get this error: "You don't have access to this page".
Export config from your website: drush cex
Export config from your old website or a new Drupal installation.
Move two files to the config dir of your websites sync directory:
composer.json:
"conflict": {
"drupal/drupal": "*"
},
What is the meaning of "conflict" in composer.json?
Problem:
I have a node, and webform as reference and email handler for submissions.
One of the field "city" is not required and is sometimes empty. If city is empty I see this text instead of nothing.
[webform_submission:node:city:value]
A temp solution:
[webform_submission:node:city:clear]
Is there a better solution?
Problem:
AH01071: Got error 'PHP message: Uncaught PHP Exception GuzzleHttp\\Exception\\ConnectException: "cURL error 28: Failed to connect to myserver.example.com port 8090: Connection timed out
Solution?
Neueste Kommentare
List config vaiables
/usr/sbin/mariadbd --help --verbose | grep "query.*size"
Restart MariaDB / MySQL
Commandline:
MariaDB Restart (after changes in /etc/mysql/db-performance.cnf)
After my changes in /etc/mysql/db-performance.cnf
Error: configure: error: no acceptable C compiler found in $PATH
Error:
PHP 8.3, APCu via PECL
PHP 8.3 extra packages (+ pecl, apcu)
apt update apt install plesk-php83-dev zlib1g-dev
https : Secure Connection Failed
I get this error, when I visit https://solr.example.com:8983 :
Remove files and show the number of deleted files
Remove all files starting with 2024 in mydir123 and show the number of deleted files:
find mydir123 -name '2024*' -exec rm -vf {} \; | wc -l
find . -name '*' | xargs rm …
find . -name '*' | xargs rm -v
Maybe Patch
https://www.drupal.org/project/tablefield/issues/3397688
/etc/my.cnf
Edit "/etc/my.cnf" ( under [mysqld] ):
transaction_isolation="READ-COMMITTED"
Restart MariaDB / MySQL: