Huelva
Account created on 13 August 2013, over 11 years ago
#

Merge Requests

Recent comments

🇪🇸Spain psf_ Huelva

Updated to Drupal 10.3.10:

services:
  # Allow use string how twig templates.
  twig.extension.stringloader:
    class: Twig\Extension\StringLoaderExtension
    tags:
      - { name: 'twig.extension' }
🇪🇸Spain psf_ Huelva

Updated issue status, I changed it before by mistake.

Merged and released in v1.0.4 : )

🇪🇸Spain psf_ Huelva

With drush I can remove the versión number to refresh the table:

$ drush config:set browscap.settings version 0

🇪🇸Spain psf_ Huelva

I just checked the ddev installation, and now the database is empty, too. :/ I don't know why.

🇪🇸Spain psf_ Huelva

psf_ created an issue.

🇪🇸Spain psf_ Huelva

@juandels3 , please, could you release the 1.0.x-dev branch?

🇪🇸Spain psf_ Huelva

I fix a minimal style issue in README.md.

I added a output to the field formatter.

I extend the field widget to allow select any bundable content entity type in widget settings.

🇪🇸Spain psf_ Huelva

Yes, I've already changed it, it was hard to find where... I found instructions in the issue of another project https://www.drupal.org/project/form_mode_manager/issues/3399176 📌 Set correct default branch (8.x-2.x) in GitLab Fixed

Regards :)

🇪🇸Spain psf_ Huelva

In the hook_ENTITY_TYPE_predelete PHPStan fail with the message:

Call to deprecated method deleteRevision() of interface
Drupal\Core\Entity\EntityStorageInterface:
in drupal:10.1.0 and is removed from drupal:11.0.0. Use
\Drupal\Core\Entity\RevisionableStorageInterface::deleteRevision instead.

We only need add a var type comment to the $storage variable:

  // Delete checkout country alerts that belong to this account.
  /** @var \Drupal\Core\Entity\RevisionableStorageInterface $storage */
  $storage = \Drupal::entityTypeManager()->getStorage('my_custom_entity');

I added "/** @var" line, and PHPStan go OK.

🇪🇸Spain psf_ Huelva

I see it OK, but I don't tested it.

I'm so busy, when I get free I will try it, or apply it if anyother tested it.

Thx so much

🇪🇸Spain psf_ Huelva

I get the issue error so many times in my site, and I don't know why. I started to see it after update to D10.1, or D10.2. I added the patch from the MR 6299, and it not fix my errors:

Warning: Undefined array key "function" in Drupal\Core\Utility\Error::decodeException() (line 70 of core/lib/Drupal/Core/Utility/Error.php).

Drupal\Core\Utility\Error::decodeException(Object) (Line: 69)
Drupal\Core\EventSubscriber\ExceptionLoggingSubscriber->onError(Object) (Line: 118)
Drupal\Core\EventSubscriber\ExceptionLoggingSubscriber->onException(Object, 'kernel.exception', Object)
call_user_func(Array, Object, 'kernel.exception', Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.exception') (Line: 239)
Symfony\Component\HttpKernel\HttpKernel->handleThrowable(Object, Object, 1) (Line: 91)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 53)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 53)
Asm89\Stack\Cors->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 741)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

We are using D10.3.2, update many times from D9.5, with Olivero subtheme, and so many custom and contrib modules.

Sorry for not get more information, I hope that this trace get the trick.

🇪🇸Spain psf_ Huelva

I do the change by Chris64 in #19.

I'm sorry, I don't know how do the interdiff.

🇪🇸Spain psf_ Huelva

Hi, thanks for the offer. I've already added you as a co-maintainer. I believe I've given you the necessary permissions, if you need anything else just ask.

🇪🇸Spain psf_ Huelva

After a clean install we get this error.

🇪🇸Spain psf_ Huelva

The contrib module csv_imported is affected the same way of core.

Issue: https://www.drupal.org/project/csv_importer/issues/3468099#comment-15743933 💬 No available releases found with Drupal 10.3.2 Active

🇪🇸Spain psf_ Huelva

We have a issue open in core: https://www.drupal.org/project/drupal/issues/3470230 🐛 No available releases found Active

🇪🇸Spain psf_ Huelva

I see the same error with Drupal core 10.3.1. The not available version message appear in this module and in core. Maybe a problem with the update service and not with this module?

🇪🇸Spain psf_ Huelva

Hi, thx by the report.

I just upload a new update to the DEV branch, could you try it?

🇪🇸Spain psf_ Huelva

In this line:
$token = empty($token) ? $this->getApiToken() : '';

"$this->getApiToken()" can return a NULL value if the user don't configure the module.

I change your commit with:

public function getClient(string $token = ''): Client {
    if (empty($token)) {
      $token = $this->getApiToken();
    }
    $token = !$token ? '' : $token;
    return \OpenAI::client($token);
  }

But I don't tested it.

🇪🇸Spain psf_ Huelva

Hi,

The library that we use to connect to OpenAI have compatiblity with tests: https://github.com/openai-php/client?tab=readme-ov-file#testing

But I don't have time to implement it, can anyone create tests?

🇪🇸Spain psf_ Huelva

Hi, thx by the patch.

I have some notes:

- In "src/OpenAIClientWrapper.php" you were erased all comments, it's are required by code styling that we have comments.
- In the protected method getApiToken() we can't send any status message, because that will spawn the user with messages. This method is called so many times.

🇪🇸Spain psf_ Huelva

psf_ made their first commit to this issue’s fork.

🇪🇸Spain psf_ Huelva

Hi @aman_lnwebworks,

Thx by the patch.

What PHP version are you using?

🇪🇸Spain psf_ Huelva

Is this issue about Drupal core? I don't see relation between system.date/country.default and currency module.

🇪🇸Spain psf_ Huelva

Hi, I want to note that the workaround does not work with custom entities that have field groups in them.

🇪🇸Spain psf_ Huelva

Great solution in #8. Maybe it should be added to the documentation?

🇪🇸Spain psf_ Huelva

If we have more that one importer for a entity type, the "Select importer" input don't filter by permissions.

🇪🇸Spain psf_ Huelva

After select entity type the module display a select with all plugins of selected entity type.

Sorry :_ D

🇪🇸Spain psf_ Huelva

Work for me, but it need a bit of debug.

🇪🇸Spain psf_ Huelva

I'll move the 'CSV Importer' menu link from the 'Configuration > Development' section to the 'Content' section to improve accessibility and relevance. This change aligns the import feature with content-related functionalities, making it more intuitive for content editors and administrators who commonly use this feature as part of their content workflows.

🇪🇸Spain psf_ Huelva

All code is committed in dev branch.

🇪🇸Spain psf_ Huelva

psf_ created an issue.

🇪🇸Spain psf_ Huelva

Nice see this issue patch : ))

Could you commit the to the issue folk?

Thx

🇪🇸Spain psf_ Huelva

#9 tested with version 1.0.0-beta6. Work for me.

In buildForm() I have:

$form['legal_links'] = [
      '#type' => 'multivalue',
      '#title' => $this->t('Legal links'),
      '#description' => $this->t('Links to legal documents in the enrollment form. Leave empty a row to remove it.'),
      '#cardinality' => MultiValue::CARDINALITY_UNLIMITED,
      '#default_value' => $links,
      'link_title' => [
        '#type' => 'textfield',
        '#title' => $this->t('Title'),
        '#description' => $this->t('To include a link, please provide a title as well.'),
      ],
      'link' => [
        '#type' => 'textfield',
        '#title' => $this->t('Link'),
        '#maxlength' => 2048,
        '#element_validate' => [[static::class, 'validateUriElement']],
        '#link_type' => LinkItemInterface::LINK_GENERIC,
        '#description' => $this->t(
          'You can enter an internal path such as %add-node or an external URL such as %url. Enter %front to link to the front page. Enter %nolink to display link text only. Enter %button to display keyboard-accessible link text only.',
          [
            '%front' => '<front>',
            '%add-node' => '/node/add',
            '%url' => 'http://example.com',
            '%nolink' => '<nolink>',
            '%button' => '<button>',
          ]
        ),
      ],
    ];

And to save, in submitForm():

$this->config('mymodule.settings')
      ->set('legal_links', $form_state->getValue('legal_links'))
      ->save();
🇪🇸Spain psf_ Huelva

I added this issue to the module description.

Thx

🇪🇸Spain psf_ Huelva

The patch in #9 don't work for me.

To do the work I need to change

autoPlaceholder: "polite",

to

autoPlaceholder: "off",

in js/phone_international.js

I will try to do a new patch.

🇪🇸Spain psf_ Huelva

Nice, thx for the job.

The next time I will install PHPcs before publish code. I use it daily but when I created the module don't have it installed.

If anyone want integrate PHPcs in DDEV, I writed this commands: https://gist.github.com/PSF1/aedf54d8a62e192e72c9de616ac6e04e

Production build 0.71.5 2024