PDOException: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock

Submitted by Gast (nicht überprüft) on So, 09/01/2019 - 20:48
PDOException: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction in [error] httpdocs/core/lib/Drupal/Core/Database/Statement.php:59 Stack trace:

Wieso bekomme ich diesen Fehler, wenn ich mit Drush Cache leeren möchte? (drush cr)

 

 

Variable permanent speichern in PHP

Submitted by Gast (nicht überprüft) on Di, 08/20/2019 - 15:19

So kann man Variable permanent (Laufzeit) speichern.

<?php


myvars( ["city"  => "bonn" ] );
myvars( ["alter" => "33" ] );
myvars( ["auto"  => "bmw" ] );

echo " Stadt: " . myvars("city");
echo " Alter: " . myvars("alter");
echo " Auto: " . myvars("auto");



function myvars( $arr ){
	static $vars;
	
	if( is_array($arr) ){
		$key = key( $arr );
		$vars[ $key ] = $arr[ $key];
	} else {
		return $vars[ $arr];
	}

}

?>

 

Composer install drupal/search_api_solr / drupal/search_api failed

Submitted by Gast (nicht überprüft) on Mi, 07/24/2019 - 13:43

Woran liegt das, dass weder drupal/search_api_solr noch drupal/search_api aktualisiert werden kann?

 

#  composer require 'drupal/search_api:^1.14'

./composer.json has been updated
Gathering patches for root package.
No patches supplied.
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Drupal Update Error: This branch of Entity Browser is not compatible with the version of Media Entity installed. (Currently using Entity Browser This branch of Entity Browser is not compatible with the version of Media Entity installed.)

Submitted by Gast (nicht überprüft) on Mi, 07/24/2019 - 12:24

Drupal Update 8.6.16 auf 8.7.5

Woran liegt das, dass ich so eine Meldung bekomme:

This branch of Entity Browser is not compatible with the version of Media Entity installed. (Currently using Entity Browser This branch of Entity Browser is not compatible with the version of Media Entity installed.) 

Drupal Error

Submitted by Gast (nicht überprüft) on Sa, 05/11/2019 - 23:27

Do you wish to run all pending updates? (y/n): y
Performing system_update_8701                                                                                                                                                                                                     [ok]
Performing comment_update_8700                                                                                                                                                                                                    [ok]

Firewall IPTables blockiert CDN

Submitted by Gast (nicht überprüft) on Di, 05/07/2019 - 23:05

iptables aktuelle Rules

#iptables -S

-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
-N FORWARD_IN_ZONES
-N FORWARD_IN_ZONES_SOURCE
-N FORWARD_OUT_ZONES
-N FORWARD_OUT_ZONES_SOURCE
-N FORWARD_direct
-N FWDI_public
-N FWDI_public_allow
-N FWDI_public_deny
-N FWDI_public_log
-N FWDO_public
-N FWDO_public_allow
-N FWDO_public_deny
-N FWDO_public_log
-N INPUT_ZONES
-N INPUT_ZONES_SOURCE
-N INPUT_direct
-N IN_public
-N IN_public_allow
-N IN_public_deny
-N IN_public_log
-N OUTPUT_direct

 

rules nach flush

 

sieht gleich aus

WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

Submitted by Gast (nicht überprüft) on Fr, 04/26/2019 - 13:12

WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host