Skip to main content

Drupal

[Solved] Drupal taxonomy alias cannot be deleted path invalid or you don't have permission

This was an unusual problem we faced in one of our digital products.

While going to the Taxonomy Terms page and changing the url, this error popped up.

Solution

1. Check your .htaccess or WAF rules

2. If there are no rules limiting access to the taxonomy page, go to the URL Alias section
/admin/config/search/path

3. Enter the taxonomy url

/taxonomy/term/your_number

4. You will see a duplicate System path like this

/taxonomy/term/your_number /taxonomy/term/

5. Delete the entry

6. Change the URL

How to Migrate CSV to Node in Drupal (Migrate Source CSV)

1. To add a migrate from csv file feature in your Drupal site, you need three modules

Migrate Source CSV 
https://www.drupal.org/project/migrate_source_csv

Migrate Plus 
https://www.drupal.org/project/migrate_plus

Migrate Tools
https://www.drupal.org/project/migrate_tools

2. Install migrate_source_csv, migrate_plus and migrate_tools using composer commands from their respective project pages like:

How to Install Google Charts in Drupal

By enabling Charts module and Google Charts sub-module, Charts function won’t work out of the box in Drupal Views, Field or Node.

You must follow these five steps to download the relevant JavaScript files and add it to the libraries folder:

1.    Ensure that you have the `composer/installers` package installed - it is installed
"composer/installers": "^1.9",

2. Ensure you have an installer-paths for the drupal-library type in your composer.json file

How to Remove Missing or Invalid Module/Theme (Drupal)

Error Message: Currently using Missing or invalid module The following module is marked as installed in the core.extension configuration, but it is missing:

If you accidentally removed the module folder while the module is installed, you can remove the module/theme from the configuration file with a drush command

vendor/bin/drush config:delete core.extension module.<modulename>

In our example, the module tablefield is missing from the configuration file

Drupal Error - The specified file 'temporary://filename' (Fix)

Error Message: The specified file 'temporary://filename' could not be copied because the destination directory.

This Drupal error can happen from two reasons

1. Temp Folder in Unix system is not set and matched in your settings.php

Drupal reads from your settings.php file to populate:

Public file system path
sites/default/files

Public file base URL
https://<google>.com/sites/default/files

Optimized assets file system path: sites/default/files

Private file system path
<path to private file system outside>

Disable the Default Feed (rss.xml)

In Drupal 10, you are likely to see a default feed (rss.xml) file by visiting /rss.xml. If you don’t want everyone to access the default rss feed, you can disable it by following these steps:

1. Go to Views /admin/structure/views

2. Edit the Default Front Page View
admin/structure/views/view/frontpage

3. Disable the Feeds Tab by clicking the drop down near ‘View Feed’ and click Disable Feed.

4.Click Save

How to Integrate Webform with Mailchimp (Drupal 10)

1. Install Webform Mailchimp, Mailchimp and Webform modules using composer

https://www.drupal.org/project/webform

https://www.drupal.org/project/mailchimp

https://www.drupal.org/project/webform_mailchimp

2. Go to https://us1.admin.mailchimp.com/lists/

3. Add a New List https://us1.admin.mailchimp.com/lists/new-list/

4. List Name: <name of the list>

5. From Email and From Name

6. Campaign URL Settings.
Choose a verified Campaign URL Settings