$ drush en hashcash
...
Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42000]: Syntax error or access violation: 1071
Specified key was too long; max key length is 767 bytes: CREATE TABLE {hashcash} (
`hashcash` VARCHAR(255) NOT NULL COMMENT 'The hashcash value', 
`hcdate` VARCHAR(6) NOT NULL COMMENT 'When this hashcash was submitted', 
PRIMARY KEY (`hashcash`), 
INDEX `hashcash_date_index` (`hcdate`)
) ENGINE = InnoDB DEFAULT CHARACTER SET utf8mb4 COMMENT 'Stores the hashcash values that have been
submitted,…'; Array
(
)
 in
.../core/lib/Drupal/Core/Database/Connection.php:671

Comments

axel.rutz created an issue.

dunot’s picture

Yep, i've got it too in php 7.1.11 or php 7.0 with core D8.6.7

Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; 
        max key length is 767 bytes: CREATE TABLE {hashcash} ( `hashcash` VARCHAR(255) NOT NULL COMMENT 'The hashcash value', `hcdate` VARCHAR(6) NOT NULL COMMENT 'When this hashcash was submitted', PRIMARY KEY (`hashcash`), INDEX `hashcash_date_index` (`hcdate`) ) ENGINE = InnoDB DEFAULT CHARACTER SET utf8mb4 COMMENT 'Stores the hashcash values that have been submitted,…'; 
        Array ( ) in drupal_install_schema() (line 122 of ... core\includes\schema.inc)

plus

Fatal error: Class Drupal\hashcash\Form\Settings contains 1 abstract method and must therefore be declared abstract 
        or implement the remaining methods (Drupal\Core\Form\ConfigFormBase::getEditableConfigNames) 
        in modules\contrib\hashcash\src\Form\Settings.php on line 84

while flushing Drupal cache.