Account created on 2 October 2010, over 14 years ago
#

Recent comments

🇳🇱Netherlands Marty2081

There are no plans to add this feature to the module. It surpasses the original intent of the module to use files and not bootstrap Drupal for every search.

🇳🇱Netherlands Marty2081

Scratch my previous patch. I found out the first try/catch was useless anyway, so this new patch removes that and also makes sure an empty array is returned when there is no purpose.

Here is an updated patch.

🇳🇱Netherlands Marty2081

And here is an updated patch.

🇳🇱Netherlands Marty2081

The patch is incorrect. The following code will fail:

Error::logException('a11y_form_helpers', $exception);

The logException() method requires the first argument to be a class that implements the LoggerInterface and not a string. See https://www.drupal.org/node/2932520

The code should be:

   $logger = \Drupal::logger('a11y_form_helpers');
  Error::logException($logger, $exception);

The second question is why catching the PluginException is replaced by catching Exception?

🇳🇱Netherlands Marty2081

By the way: this issue is also present in the 3.x branch. The same changes can be applied there.

🇳🇱Netherlands Marty2081

And here is a patch we use to circumvent this problem (maybe someone with proper JS skills has a nicer solution, but this works for us).

🇳🇱Netherlands Marty2081

I had a similar issue and Google pointed me to this issue. However disabling admin toolbar extra tools did nothing for me. Later I found this issue: https://www.drupal.org/project/drupal/issues/3413508 🐛 Admin page access denied even when access is given to child items RTBC and that turned out to be the actual cause.

🇳🇱Netherlands Marty2081

My apologies, here is the correct path file.

🇳🇱Netherlands Marty2081

Argh, I seem to have uploaded the wrong patch file. My bad.

🇳🇱Netherlands Marty2081

Here is a patch that handles both exception types:

🇳🇱Netherlands Marty2081

The decrypt() method potentially throws 2 types of Exceptions. This is a snippet from the comments in the interface:

   * @throws \Drupal\encrypt\Exception\EncryptException
   *   Thrown when decryption fails.
   * @throws \Drupal\encrypt\Exception\EncryptionMethodCanNotDecryptException
   *   The method should throw this exception when the plugin can not decrypt
   *   (i.e. use a public key).
Production build 0.71.5 2024