๐Ÿ‡ฎ๐Ÿ‡ณIndia @abhishek@kumar

Account created on 6 October 2022, about 2 years ago
#

Recent comments

๐Ÿ‡ฎ๐Ÿ‡ณIndia abhishek@kumar

We've updated the composer.json to allow installing the Schema.org Blueprints module in its alpha version (1.0.0-alpha26). We did this by:

  1. Adding the module version to the requirements.
  2. Setting minimum-stability to alpha so Composer accepts pre-release versions.
  3. Enabling prefer-stable to keep other dependencies as stable as possible.

This ensures we can use the specific module version needed while maintaining overall project stability.

๐Ÿ‡ฎ๐Ÿ‡ณIndia abhishek@kumar

If any custom service uses config.factory, ensure that it uses dependency injection in a way that doesnโ€™t create a circular loop. Specifically, look for any direct calls to \Drupal::service('config.factory') and replace them with dependency injection.
For example

public function __construct(ConfigFactoryInterface $configFactory) {
  $this->configFactory = $configFactory;
}
๐Ÿ‡ฎ๐Ÿ‡ณIndia abhishek@kumar

If the Webform module doesnโ€™t handle the destination properly, you could override the destination parameter temporarily in a custom module or by using hook_form_alter:

function custom_module_form_webform_edit_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) {
  if (\Drupal::routeMatch()->getRouteName() == 'entity.webform.canonical') {
    $form['#action'] = '/admin/structure/webform/manage/' . $form['#webform']->id() . '/translate';
  }
}
๐Ÿ‡ฎ๐Ÿ‡ณIndia abhishek@kumar

The Disable Link Rel module is useful if you need to remove specific rel links, like shortlink or canonical, from your site's . This can help with:

  • SEO: Customizing canonical tags for better control.
  • Performance: Reducing unnecessary tags to improve load times.
  • Privacy: Hiding links that may expose internal info.

While Drupal core and Metatag module updates now handle these better, this module is a quick, targeted solution for precise control.

๐Ÿ‡ฎ๐Ÿ‡ณIndia abhishek@kumar

The Actions Permissions module was removed from VBO in version 4.3.0 to simplify permissions and improve security. It was deprecated and removed at once to prevent dependency on outdated functionality. To re-implement similar permissions, consider creating custom permissions or setting up role-specific VBO views.

๐Ÿ‡ฎ๐Ÿ‡ณIndia abhishek@kumar

diff --git thomas-aquinas\web\modules\contrib\linkit\src\Plugin\Linkit\Matcher\EntityMatcher.php
line no.326
Remove:
$url_results = $this->findEntityIdByUrl($string);
$result = array_merge($query_result, $url_results);

Add :
$url_results = (array) $this->findEntityIdByUrl($string);
$result = array_merge($query_result, $url_results);
$options = [];
To resolve the issue with entity matching, Iโ€™ve made a small adjustment to the code. The update ensures that URL query results are always treated as an array, preventing errors. Hereโ€™s the change:

๐Ÿ‡ฎ๐Ÿ‡ณIndia abhishek@kumar

Fixing cURL and SSL certificate issue in Drupal 10.3.5 on MAMP

Download SSL Certificate: To ensure secure communication between your Drupal site and external services (like APIs), we need to configure cURL with an SSL certificate.

Download the latest cacert.pem file from the official cURL website: https://curl.haxx.se/ca/cacert.pem
Move SSL Certificate to MAMP Server: After downloading, place the cacert.pem file in your MAMP serverโ€™s PHP directory.

Example path:
C:\MAMP\bin\php\cacert.pem

Configure PHP to Use SSL Certificate: To let PHP use this certificate, we need to edit the php.ini file. This file controls the configuration of PHP on your MAMP server.

Locate the php.ini file in your MAMP PHP folder.
Example path:
C:\MAMP\bin\php\php.ini

Open the php.ini file and add the following lines at the bottom:
curl.cainfo="C:\MAMP\bin\php\cacert.pem"
openssl.cafile = "C:\MAMP\bin\php\cacert.pem"

This tells PHP and cURL to use the downloaded SSL certificate for secure communications.

Restart MAMP: After saving the changes to the php.ini file, restart your MAMP server for the new settings to take effect.

By following these steps, your MAMP server will be properly configured to handle SSL connections, ensuring Drupal 10.3.5 can securely connect to external services.

๐Ÿ‡ฎ๐Ÿ‡ณIndia abhishek@kumar

Downgrade package to 2.0.0-alpha3(ckeditor_templates_ui)

Downgraded from 2.0.0-alpha4 to 2.0.0-alpha3 because alpha3 works better for my project.

Production build 0.71.5 2024