Account created on 12 February 2007, almost 18 years ago
#

Recent comments

🇦🇷Argentina cesarmiquel

I also experienced this issue and noticed the problem was the same as in comment #8: by commenting out the theme__preprocess_block__simple_block(&$variables) in the custom theme, rebuilding registry and I was able to run the update without problems. I don't think deleting templates is the correct way to fix this. I would recommend looking into your .theme file.

🇦🇷Argentina cesarmiquel

This worked for me as well on Drupal 9.5.11 (version 2.0.4 of decoupled_router).

🇦🇷Argentina cesarmiquel

Is somebody working on this? I hit this issue so I'd like the rule to be added. I volunteer to try to do it if someone can point me to a similar rule I can use as reference.

🇦🇷Argentina cesarmiquel

I looked at the .install for this module and the problem is that the fields are added in rest_api_access_token_update_8021() but they should also be added to the rest_api_access_token_schema() function. The way Drupal works is if you install the module for the first time Drupal saves the ID of the last update (8021) and only applies updates that are larger than 8021 but will not run any of the previous updates. For fresh installs you need to put the current version of the table in hook_schema(). Currently I don't have time to create a patch but that is the correct way to fix this AFAIK.
The rest_api_access_token_schema() should be something like this:

  $schema['rest_api_access_token'] = [
    'description' => 'Stores access tokens.',
    'fields' => [
      'user_id' => [
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ],
      'public_token' => [
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
      ],
      'secret' => [
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
      ],
      'created_at' => [
        'description' => 'Created time.',
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
      ],
      'refreshed_at' => [
        'description' => 'Updated time.',
        'type' => 'int',
       'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
      ],
    ],
    'indexes' => [
      'public_token' => ['public_token'],
      'user_id' => ['user_id'],
    ],
    'primary key' => ['public_token'],
  ];

  return $schema
 

Also I'm pretty sure that the 'default' => time() doesn't work as the author of the module expected. You can't set a dynamic default value. You should use 0 and make sure to add the timestamp via code.

🇦🇷Argentina cesarmiquel

The core entry is not in the main module but is inside the submodule audio_embed_media. That's why this patch is needed.

🇦🇷Argentina cesarmiquel

Just FYI we are on version 8.x-3.15 which is the latest stable version of the module and we had all our site (production) crash because a user cloned a layout and this error started appearing on all pages. Of course it's not a good idea to mess around with layouts in production and we were able to fix it by reverting the configuration. I think it might not be a bad idea to add this patch to the next minimal maintenance mode specially because there is still no stable 8.x-5.0 release.

🇦🇷Argentina cesarmiquel

Not sure why this issue derailed. The patch in #45 🐛 Avoid loading all terms on the taxonomy overview form RTBC worked for me in several tests/sites with large taxonomies and had the blessing by Catch . All that remained was to add a comment. In all honesty I didn't understand exactly what the comment was but I believe once that comment is added this was RTBC.

There is also a version for 10.x. in #54 🐛 Avoid loading all terms on the taxonomy overview form RTBC . I recommend you test that version and leave a comment if it works.

I don't recommend the solutions that try to increase the memory size as suggested as they will eventually break. The proposed solution worked for me on two large sites I tested.

Production build 0.71.5 2024