Instance a service class once in a form

I have a form that is used to play a game (users select between one of two images multiple times) that utilizes a service class that manages loading images, calculating results, etc. How can I instance this service class one time so that it doesn't get re-instanced every time I rebuild the form, do you have to do it in form_state?

I was trying to do it in `__construct` because I thought that was only called when you first instanced the form, but when you rebuild the form it gets called again so my service class gets re-instanced. 

The alias /store/my-store is already in use in this language

I have a store type that contains a paragraph field.

When I create a store, it works perfectly. But when I update the store by adding a paragraph, I have an error in the form :

The alias /store/my-store is already in use in this language

This error occurs since the update to Commerce 2.17

How can I correct this ?

UPDATE

If I edit my store and save without changing anything, it works.

It's not just the paragraph, if I change the store logo I get the same error.

There is nothing in the logs.

Need help correcting 2 warnings in my logs

Hi, when I go to my site, I have two warnings in them that appear regularly. I can't find the source of the problem. Can you help me ? Thank you

https:/www.s1biose.com

Workaround for Drupal Logger's extreme inefficiency

The default Drupal logger is so inefficient it can't even print out an array containing two content-types, what gives? I'm trying to log an array that contains two content-types but I keep getting the error that I've ran out of memory, which is ridiculous because I currently have my setting at `512M`. 

It seems crazy to me that it takes Drupal more than 512MB to log some text.... 

How to take a migrated site live, when content is being added to the old site.

After you migrate content from an old site (currently the live site), images users, etc.. into a new Drupal site. And the new site is still being worked on by developers, it is not ready to go live yet. Editors are adding new content to the old live site. The question is do editors need to add new content to the old live site and the new Drupal site until the new site goes live?

Drupal commerce

After so much testing

I have decided to migrate my development from a virtual store from ubercart to Drupal commerce but I have a problem as

I can create a product catalog to display on the main page of the store. is there any module for it ???

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x