Unable to install MyTheme, MyTheme.settings already exists in active configuration.

I have a sub theme, when trying to install it, I get this message: Unable to install MyTheme, MyTheme.settings already exists in active configuration. This sub theme was previously working, so I do not believe this is a misconfiguration or error in theme build. The theme is now not installed. 

I'm on drupal 8.8.1 / nginx/1.8.1 / php 7.3.12.

There is mytheme.settings.yaml file in the config/install directory, but I suspect this is not a file problem but rather a problem inside drupal database.

How to generate a number for Drupal Commerce SKU ?

I have a site on Drupal 8 and Commerce 2.16 with a marketplace (several merchants with several stores).

Each merchant can fill in the SKU field with their product variations. The problem is that the SKU must be unique. How can I insert a code at the start of the SKU ? For example the parent product ID.

In my case the product is created without variation and the variations must be added afterwards.

Here is an example :
[product id]-[merchant sku]

The [product id] part should be automatically filled in and locked.

An extremely newbish question about views

So I began learning drupal a couple of months ago and have mostly been playing around with it while trying to absorb all of the knowledge I can. I have my first project in the works but I'm wondering how to actually go about its construction.

php warning: Deprecated function, after form submit

Hi,

I have an ajax callback function in the form submit:

$form['display'] = [
     
      '#type' => 'button',
      '#value' => $this->t('More'),
       '#ajax' => [
        'callback' => 'Drupal\heritage_ui\Controller\HeritageTextContent::metadataDisplay',
        'effect' => 'slide',
        'event' => 'click',
      ],
    ];

I am getting a php warning:

Problem Updating Drupal 8

I have been updating Drupal for years using Drush. Now I want to update a Drupal 8.7.1 site to current. My older version of Drush (8.0.2) throws an error, so I updated Drush to v10, and started over.

Now it seems there is no longer an update command in Drush 10?

So I looked to see how to update, and it looks like I need to do it with Composer. I went to do that, using:

"composer update drupal/core --with-dependencies"

and it says "drupal/core" is not installed. What?

Does Migrate help me with my D7 to D8 project?

I have a D7 site I am migrating to D8; but not a standard migration for numerous reasons:

1. the bundle structure is not the same in all cases, as an example:

- Contact node and User entity are being combined into User entity

2. some fields are being changed, for example:

- old D7 site used List fields in many places which are being replaced by Term Ref fields

3. the bundles are already built on the D8 site but content including user's can all be deleted if this helps my cause

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x