Cannot apply patch #3363948 - Fix D10 compatibility issues

Created on 12 August 2023, 11 months ago
Updated 8 November 2023, 8 months ago

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"

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

🐛 Bug report
Status

Closed: works as designed

Version

3.0

Component

Code

Created by

🇮🇳India Manav

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Manav
  • Status changed to Needs review 11 months ago
  • 🇮🇳India keshav.k

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

  • Apologies but something in this procedure is NOT working.

    what do you mean "You can remove the patch as module"

    To use the demo we are suppose to edit your install stuff so it does not patch? How?

  • 🇮🇱Israel jsacksick

    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.

  • 🇺🇸United States jasonmacer

    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?

  • 🇩🇰Denmark Stizzi

    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".

  • 🇺🇸United States jasonmacer

    @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.

  • Status changed to RTBC 8 months ago
  • 🇺🇸United States jasonmacer

    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

  • Status changed to Closed: works as designed 8 months ago
Production build 0.69.0 2024