🐛 | Drupal core | Fatals in make_menu_link_content_revisionable when combined with make_taxonomy_term_revisionable
🇩🇪Germany rhiss
Hello @ll, thanks for the effort and discussion so far. I have the joy of updateing an old Drupal 8.6.1, in times of Drupal 11, and also came to this issue, hopefully the last one ever, but just in case:
drupal/web/core/lib/Drupal/Core/Database/Driver/mysql/Schema.php -> renameTable()
public function renameTable($table, $new_name) {
if (!$this->tableExists($table)) {
$this->connection->schema()->dropTable($table);
// throw new SchemaObjectDoesNotExistException("Cannot rename '$table' to '$new_name': table '$table' doesn't exist.");
}
if ($this->tableExists($new_name)) {
$this->connection->schema()->dropTable($new_name);
// throw new SchemaObjectExistsException("Cannot rename '$table' to '$new_name': table '$new_name' already exists.");
}
$info = $this->getPrefixInfo($new_name);
$this->connection->query('ALTER TABLE {' . $table . '} RENAME TO `' . $info['table'] . '`');
}
🇩🇪Germany rhiss
🇩🇪Germany rhiss
🇩🇪Germany rhiss
🇩🇪Germany rhiss
Please read:
https://www.drupal.org/node/3322420 →
We need to enable the phpass module using Drush.
🇩🇪Germany rhiss
I just added the 12 support: "drush.services.yml": "^9 || ^10 || ^11 || ^12"
🇩🇪Germany rhiss
Hi, just a little change to the patch because of "The 'core_version_requirement' constraint (^9.2 || ^10) requires the 'core' key not be set ..."
🇩🇪Germany rhiss
the patch #2 did not apply for me. created a new patch.
🇩🇪Germany rhiss
<a href="https://www.mydomain.com" class="use-ajax" data-dialog-type="modal" data-dialog-options="{"width":"700px"}"> <i class="fa fa-book" aria-hidden="true"></i> Benutzerhandbuch</a>
$build['open_in_modal'] = [
'#type' => 'link',
'#url' =>Url::fromRoute('my-example-route'),
'#title' => t('Open in fullscreen'),
'#attributes' => [
'class' => ['use-ajax'],
'data-dialog-type' => 'full_screen',
],
'#attached' => [
'library' => ['core/drupal.dialog.ajax'],
],
];