Upload & Sync directories/files (without password prompt)
SSH Key
ssh-keygen
Copy SSH Key to Remote Server
ssh-copy-id -i ~/.ssh/id_rsa.pub remoteUser123@remote-host-or-ip
Sync Files & Directories
Upload & Sync directories/files (without password prompt)
SSH Key
ssh-keygen
Copy SSH Key to Remote Server
ssh-copy-id -i ~/.ssh/id_rsa.pub remoteUser123@remote-host-or-ip
Sync Files & Directories
Values in handlers > remote post > advanced > custom_data ("/admin/structure/webform/manage/myform123/handlers"):
Problem:
PHP Fatal error: Uncaught Error: Class "ZipArchive" not found in
Solution 1:
sudo apt install php-zip
sudo systemctl restart apache2
Solution 2:
Edit: /etc/php/8.3/cli/php.ini
Activate extension=zip
(by removing ;)
Solution:
hostnamectl set-hostname myserver123.example.com
Problem:
The Drush launcher could not find a local Drush in your Drupal site
Solution?
GET:
$url_via_get = \Drupal::request()->query->get('url');
POST:
$url_via_post = \Drupal::request()->request->get('url');
GET [or] POST:
$url_via_get_or_port = \Drupal::request()->get('url');
Problem:
InvalidArgumentException: The controller for URI "/admin/flush" is not callable. in Drupal\Core\Controller\ControllerResolver->getControllerFromDefinition() (Line 53 in /var/www/core/lib/Drupal/Core/Controller/ControllerResolver.php).
Solution?
Problem:
#drush cr
[error] Symfony\Component\HttpKernel\Exception\NotAcceptableHttpException: No route found for the specified format html. Supported formats: csv, json. in Drupal\Core\Routing\RequestFormatRouteFilter->filter() (line 65 of /var/www/core/lib/Drupal/Core/Routing/RequestFormatRouteFilter.php).
Solution?
Error 1:
Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version
Error 2 (#mysql -u mydbuser1 -p mydb1 < db.sql
):
Error:
Exception: Object of type stdClass cannot be printed. in Drupal\Core\Template\TwigExtension->escapeFilter() (Line 459 in /var/www/web/core/lib/Drupal/Core/Template/TwigExtension.php).
Solution
There may be a syntax error in your Twig code or you should change the order of fields in Drupal Views.
Neueste Kommentare
Hilft "cp -avf old new && rm…
Hilft "
cp -avf old new && rm -rvf old"
nicht?Same with Drush 13 + PHP 8.3 and my Solution
Same with Drush 13 + PHP 8.3
Error : Failed to install the required package 'RPM' by using AP
Initializing...
Error : Failed to install the required package 'RPM' by using APT. Please install it manually.
Exit
Solution:
Installieren & Aktivieren
So habe es installiert und dann mit Hilfe von Key/Code (über Website von Acronis Cyber Protect) aktiviert:
I have a view with a path…
I have a view with a path like
/my-content-export
to export entivies as JSON or CSV.admin_toolbar 3.5.2 is the…
admin_toolbar 3.5.2 is the reason. Patch coming ...
Drupal 10.4, in a custom View
Drupal 10.4:
Tools & Settings >> Security…
Tools & Settings >> Security Policy :
Allow only secure FTPS connections
List config vaiables
/usr/sbin/mariadbd --help --verbose | grep "query.*size"
Restart MariaDB / MySQL
Commandline: