Account created on 15 September 2015, almost 9 years ago
#

Merge Requests

Recent comments

🇮🇳India MukhtarM

hi @bajah1701, There is already an MR for this and it's merged in the dev version. please use votingapi:3.x-dev@dev.

Maybe this needs to be ported to the Beta version.

🇮🇳India MukhtarM

Same issue here. I am posting two images. One is the original image uploaded and the other is WebP converted.
I set the Image quality in the webP configuration as 100.

As I can not upload the webP image here, I am posting the webP image uploaded in a image hoster(https://i.postimg.cc/sgWsrrFp/webp-converted.webp)

🇮🇳India MukhtarM

I am getting an error like as follows when connecting to the db: 

TypeError: Unsupported operand types: MongoDB\Model\BSONDocument + array in Drupal\migrate\Plugin\migrate\source\SourcePluginBase->next() (line 400 of /var/www/html/web/core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php)

Any idea? 

🇮🇳India MukhtarM

Created an MR to Hide and show the Scroll to top link . Please review.

🇮🇳India MukhtarM

Can you reiterate your issue? I am getting the MediaWiki Filter API form in the text formats . Attaching ss.

🇮🇳India MukhtarM

Hi, @Marcus sent you that mail, and as suggested by @sandy we could start with a simpler one :)

🇮🇳India MukhtarM

@jcnventura you can consider granting credits to the people who have contributed :)

🇮🇳India MukhtarM

Hi, @Marcus_Johansson thanks for the detailed response. I like to work on the tasks you mentioned, But probably I need to get more on the module workflow and related modules (Also I might need a test API key to test things out). Thanks.

🇮🇳India MukhtarM

Here is a patch if you are still getting error on config page.

🇮🇳India MukhtarM

@nicxvan Created an MR to address the changes. Please review.

🇮🇳India MukhtarM

sorry about that @anybody I was trying to fix the config error, rather not checked the usage in the code. +1 for MR 👍

🇮🇳India MukhtarM

After removing the theme_display: null from the config (layout_paragraphs.modal_settings), import it again (drush cim -y), run the config-inspector report it worked for me. Attaching the screenshots.

Actually there is no way to provide a patch a MR for this, as the particular configuration is over rided after making the changes in Layout Paragraphs Modal Settings from layout_paragraphs Configuration settings.

🇮🇳India MukhtarM

Thank you @omrmankar it worked. postman things :)

🇮🇳India MukhtarM

its because the module is trying to connect to the telemetry default endpoint specified in the opentelemetry.settings.yml (http://localhost:4318). Either need to disable it or enable the server and try.

🇮🇳India MukhtarM

Please review the patch. thanks

🇮🇳India MukhtarM

Actually i was working on the MR at the same time :) .. checked in local and its working fine. attaching screenshot. Thanks

🇮🇳India MukhtarM

Thank you @VinmayiSwamy for noticing it. Here is the corrected patch.

🇮🇳India MukhtarM

Hi @Anaconda777 Please check the patch. And it is always recommended to use latest package of the module on latest Drupal version :) if you upgrading PHP to the latest.
As D7 support is already ended.

🇮🇳India MukhtarM

Tested the patch and its working fine. I guess in that case we can remove the hardset initilization too.

🇮🇳India MukhtarM

Can you please make the post to English as drupal.org served in english language :)

🇮🇳India MukhtarM

@lolgm Actually the patch didn't included the new plugin file (my bad :( ). Corrected it and included your changes also. thanks.

🇮🇳India MukhtarM

please review the patch.

🇮🇳India MukhtarM

The states API have a change recently in core, see this: https://git.drupalcode.org/project/drupal/-/compare/308e696f76fc33d6a5d8... on issue: https://www.drupal.org/project/drupal/issues/1149078 🐛 States API doesn't work with multiple select fields Needs review . Idk conditional_fields making use of states API, but posted if that helps.

🇮🇳India MukhtarM

$entity->access('permission') has been deprecated since D10 and gives the warning( https://www.drupal.org/node/3201242 ).

Relying on entity queries to check access by default is deprecated in  
         drupal:9.2.0 and an error will be thrown from drupal:10.0.0. Call      
         \Drupal\Core\Entity\Query\QueryInterface::accessCheck() with TRUE or   
         FALSE to specify whether access should be checked.

Anyway to check explicit access for the entity in getDefaultOperations?

for eg:

public function getDefaultOperations(EntityInterface $entity) {
    $exists = isset($this->templates[$entity->getGathercontentTemplateId()]);
    $operations = [];
    if ($exists && $entity->access('update') && $entity->hasLinkTemplate('edit-form')) {
      $operations['edit'] = [
        'title' => $entity->hasMapping() ? $this->t('Edit') : $this->t('Create'),
        'weight' => 10,
        'url' => $entity->toUrl('edit-form'),
      ];
    }
    if ($entity->access('delete') && $entity->hasLinkTemplate('delete-form')) {
      $operations['delete'] = [
        'title' => $this->t('Delete'),
        'weight' => 100,
        'url' => $entity->toUrl('delete-form'),
      ];
    }
    return $operations;
  }

here i think its explicitly checking access for 'update' or 'delete'. So the entityQuery->accessCheck(TRUE) would work? as its for the whole access right?

🇮🇳India MukhtarM

Please review the patch. thanks

🇮🇳India MukhtarM

Thanks for the update @agentrickard.

🇮🇳India MukhtarM

I am working on this. will raise a new MR for coding standard and modify the current one.

🇮🇳India MukhtarM

hi @AstonVictor the translation string can be corrected, and i couldn't see any error if by default i am not selecting any permission or roles assigned to it (If that is meant by validation returns FALSE if the admin doesn't add configurations on the settings page.).

yea didn't added the new permission but thought to manage in the configuration form itself (Not sure about this).

But your way works too 👍. rather than these this workflow need to be confirmed to be correct by @aronne. Thanks

🇮🇳India MukhtarM

@codesquatch I wonder why the hook_update is used in place for to add these fields? drush updb created the fields for me.

🇮🇳India MukhtarM

Way to go. This patch is not yet available in '2.0.0' version. The installation still fails on D10 :(

🇮🇳India MukhtarM

@geocalleo i raised against 2.0.0 now. First i tried to raise in the git UI itself (as there no code change), but it didn't worked. Thats why there is a intermediate MR :)

🇮🇳India MukhtarM

Yea sure @geocalleo i will do that

🇮🇳India MukhtarM

@mahyarsbt sure i am interested to contribute. Hope you don’t mind giving credits:)

🇮🇳India MukhtarM

@aronne thats correct. I also think creating a new configurable permission, that can be assigned to a role by an administrative role user.

🇮🇳India MukhtarM

I think you have to typecast to string in this case along with the empty check. Please check: https://github.com/symfony/symfony/issues/45179
I have updated the MR, please check.

🇮🇳India MukhtarM

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

🇮🇳India MukhtarM

I am too not geting this reproduced in local. In fact i wonder when i enable Enable/Disable local tasks display what are the changes would effect? As node edit and delete already there. (may somebody point here would help)

🇮🇳India MukhtarM

Hi I am using D9.5 and here is the patch that works for the custom date fields (I combined the #18 and #3 basically, but there were some tweaks needed as #18 was not applying cleanly). It works well to apply the custom SQL format to the custom field. Thanks

🇮🇳India MukhtarM

@sandipta There are some Eslint and phpcs errors in the pipeline. Can you please check?
https://git.drupalcode.org/issue/select2_all-3399753/-/jobs/285274

🇮🇳India MukhtarM

I think it would make sense. If that is here is the patch :)

🇮🇳India MukhtarM

Hi @solarDog You have to change the cocoen_beforeafter.js to

(function ($, Drupal, once) {

  Drupal.behaviors.beforeafter = {
    attach: function (context, settings) {
      once('.cocoen-beforeafter-container', context).cocoen();
    }
  }

})(jQuery, Drupal, once);

As well as point the core/once library in cocoen_beforeafter.libraries.yml (Which will remove the once error for you). I will provide a patch soon.
As jquery.once is deprecated in favour of core/once as you said.

🇮🇳India MukhtarM

Hi @clarkssquared The patch from MR is applying fine for me. Please follow this instruction to apply the patch MR: https://drupal.stackexchange.com/questions/303436/how-do-i-apply-patches...

🇮🇳India MukhtarM

Ok here is a workaround that is serving the private blob files directly using SAS token (We don't need to save locally to save the storage). Also resolves #15 📌 Support private containers and try to serve locally from the server Needs review . Thanks

🇮🇳India MukhtarM

Here is the patch that works for me. BTW i am using D9.5 and az_blob_fs:2.x-dev@dev

🇮🇳India MukhtarM

Hi @bharath-kondeti do you have a patch this? It will be helpful if you provide.

we are SAS tokens and we have created a patch for this module that will generate image url along with SAS token.

🇮🇳India MukhtarM

I still can't replicate it. I uninstalled and removed bartik theme. I am using D9.x version. May be the issue is only in D10 (As bartik removed after that)

🇮🇳India MukhtarM

I am not sure how to reproduce this issue as you mentioned. Can you please add more details? I also have kickstart:^3.0 installed in my local and the default theme is Belgrade. I also tried to switched bartik and then checked. But i couldn't find the specified error in log.

🇮🇳India MukhtarM

Updated the MR with hook_update that tested locally. Note that if you applied https://git.drupalcode.org/project/pub_options/-/merge_requests/15/diffs... already, it wont have any effects. Or you have to revert it to the earlier and run drush updb.

🇮🇳India MukhtarM

Yes now the issue is fixed. Thanks @Xiaohua Guan

🇮🇳India MukhtarM

Thanks @vasike, The issue is fixed for me after applied the latest MR(https://git.drupalcode.org/project/drupal/-/compare/308e696f76fc33d6a5d8...).

Exactly was in the section:

Array(reference, value) {
      // Make sure value is an array.
      if (!Array.isArray(value)) {
        return false;
      }
      // Convert all comparisons to strings for indexOf to work with integers
      // comparing to strings.
      reference = reference.map(String);
      value = value.map(String);
      // We iterate through each value provided in the reference. If all of them
      // exist in value array, we return true. Otherwise return false.
      return Object.entries(reference).every(([key, referenceValue]) =>
        value.includes(referenceValue),
      );
    },

Correct solution for me is:

   '#states' => array(
        'visible' => array(
          'select[name="configuration[link_type_plus][payment_methods][]"]' =>   [['value' => ['cvs']], ['value' => ['payeasy']]],
        ),
      )

if that helps anybody in future. This will show and hide the fieldset when either 'cvs' or 'payeasy' is selected

🇮🇳India MukhtarM

I don't have psr/http-message package listed in my composer.json in D10. Although i could see an entry in the composer.lock as follows:

{
            "name": "psr/http-client",
            "version": "1.0.3",
            "source": {
                "type": "git",
                "url": "https://github.com/php-fig/http-client.git",
                "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/php-fig/http-client/zipball/bb5906edc1c324c9a05aa0873d40117941e5fa90",
                "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90",
                "shasum": ""
            },
            "require": {
                "php": "^7.0 || ^8.0",
                "psr/http-message": "^1.0 || ^2.0"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "1.0.x-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "Psr\\Http\\Client\\": "src/"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "PHP-FIG",
                    "homepage": "https://www.php-fig.org/"
                }
            ],
            "description": "Common interface for HTTP clients",
            "homepage": "https://github.com/php-fig/http-client",
            "keywords": [
                "http",
                "http-client",
                "psr",
                "psr-18"
            ],
            "support": {
                "source": "https://github.com/php-fig/http-client"
            },
            "time": "2023-09-23T14:17:50+00:00"
        },

Can you explain more how can downgrade the psr/http-message package to 1.1?

🇮🇳India MukhtarM

I think its a typo in the hook implementation. Its implmenting hook_search_api_solr_search_results_alter as mentioned in modules/contrib/search_api_solr/search_api_solr.api.php. please review the patch. thanks

🇮🇳India MukhtarM

@e2tha-e How about maintaining a single version, that is portable to all (8 , 9, 10) if D10 version can be back ported? So that users wont accidentally install the older version. And please mark this issue as Closed(Won't fix). Thanks

🇮🇳India MukhtarM

I reviewed the MR. On the publishing_options_bundles table the better primary key option would on the pubid as it does for the publishing_options table. Updated the MR, please review

Production build 0.69.0 2024