Problem/Motivation

As per the description try to run the 1st composer command mentioned in the commerce_demo modules page. The installation process will start smoothly but when the composer tries to install "bootstrap_basic_image_gallery" module and apply patch.
Process failed at the at patching process and got this error

"https://www.drupal.org/files/issues/2023-06-01/3363948-3.patch (#3363948 - Fix D10 compatibility issues)
Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2023-06-01/3363948-3.patch"

issue image

Steps to reproduce

Try to install commerce_demo using composer create-project -s dev centarro/commerce-kickstart-project kickstart as mentioned on the modules page.

Proposed resolution

Remaining tasks

CommentFileSizeAuthor
#7 2023-11-07 (1).png205.65 KBstizzi
Capture.JPG49.71 KBmanav

Comments

Manav created an issue. See original summary.

manav’s picture

Version: 8.x-2.0 » 3.0.x-dev
keshavv’s picture

Status: Active » Needs review

@manav You can remove the patch as module Bootstrap Basic Image Gallery already released for Drupal 10.

webengr’s picture

Apologies but something in this procedure is NOT working.

Unable to try the 3.0 kickstart demo.

Maybe go to github and download and edit the json?

don't use 1.5 but "drupal/bootstrap_basic_image_gallery": "^1.6"
and don't patch???

This issue is more than a month old.

jsacksick’s picture

Project: Commerce Demo » Commerce Kickstart
Version: 3.0.x-dev » 3.x-dev

I just reviewed this, Kickstart installs properly for me. And we do need the patch as there was no 1.7 version release so it's still needed for the 1.6 version.

Also this issue belongs to the wrong project.

jasonmacer’s picture

I am getting this issue as well.

I am attempting to install Commerce Kickstart from scratch using the following commands:

$ composer create-project -s dev centarro/commerce-kickstart-project portal4 --ignore-platform-req=php <-- ignore is due to square/square having a php requirement of up to 8.2 and i'm running 8.2.12 -->

it starts the install and at the end of this I receive the following error for "Applying patches for drupal/bootstrap_basic_image_gallery"

Could not apply patch! Skipping. The error was: cannot apply patch https://www.drupal.org/files/issues/2023-06-01/3363948-3.patch in pathces.php line 331: cannot apply patch #3363948 - Fix D10 compatibility issues ...

$ cd portal4
$ composer require drupal/commerce_demo:^3.0 --ignore-platform-req=php <-- same reason as above -->

it starts the install and again at the end i get the same error as above stating it cannot install the patch.

Then when i visit domain.com/portal4/web/ i only get the file listing when I then try to go to domain.com/portal4/web/core/install.php i get a 500 error.

When i compare a default drupal composer install to the kickstart one, there seems to be quite a few files missing and I have a feeling it is due to the error not applying the patch and killing the install. OR am i missing something here?

stizzi’s picture

StatusFileSize
new205.65 KB

If the error occurs on an Oracle Linux (8) (and Fedora?), one possibility for the error could be this.

Try this in project folder:
Run composer install -vvv

Look for: sh: patch: command not found

If the error message can be confirmed...
Run dnf install --assumeyes --quiet patch

I don't know if --assumeyes --quiet are necessary, I don't know anything about this OS, but I would think they can be dispensed with, but it works with them anyway. The problem is not on Ubuntu, but may be other distros are missing this "patch installation".

jasonmacer’s picture

@Stizzi is correct, and his suggestion did correct the issue. By running sudo dnf install -y patch the issue was resolved and I was able to run both commands.

Now i'm just working to resolve the issue of a timeout!

Thank you @Stizzi.

jasonmacer’s picture

Status: Needs review » Reviewed & tested by the community

For some reason it did not do the update for the "reviewed & tested by the community" on my last comment.

To reiterate, the installation of the patch (at least on fedora based systems) resolves the issues.

Jason

jsacksick’s picture

Status: Reviewed & tested by the community » Closed (works as designed)