Installation fails due to incorrect patch
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3536329. -->
Reported by: [michal.magdziarek](https://www.drupal.org/user/3584893)
Related to !51
>>>
<h3 id="summary-context">Context</h3>
<p>Open Intranet installation is currently failing due to patches in composer.json that reference merge requests instead of stable patches. The specific issue is with the ckeditor_media_resize module patch that was updated in the merge request to change core_version_requirement from "^10.3 || ^11" to "^10.5 || ^11.2", but Open Intranet uses Drupal 11.1 which doesn't match this requirement.</p>
<p>This causes config import failures during installation, making the entire site non-functional and preventing users from successfully installing Open Intranet.</p>
<h3 id="summary-task-type">Task Type</h3>
<p><strong>Type:</strong> Bug</p>
<h3 id="summary-what-to-do">What To Do</h3>
<p>Replace all patches in composer.json that reference merge requests with stable, committed patches or alternative solutions. The failing patch and two other merge request-based patches need to be addressed:</p>
<ul>
<li><strong>ckeditor_media_resize:</strong> "Fix for CKEditor v45.02": "<a href="https://git.drupalcode.org/project/ckeditor_media_resize/-/merge_requests/16.patch">https://git.drupalcode.org/project/ckeditor_media_resize/-/merge_requests/16.patch</a>"</li>
<li>Two additional patches that also reference merge requests</li>
</ul>
<p>The solution should ensure stable installation process regardless of minor version updates to referenced merge requests.</p>
<h3 id="summary-how-to-do">How To Do / Proposed Approach</h3>
<p>1. <strong>Immediate fix:</strong> Remove or replace the problematic ckeditor_media_resize patch to allow installation</p>
<p>2. <strong>Long-term solution:</strong> Review all three merge request-based patches and replace them with:</p>
<ul>
<li>Stable patches from committed issues</li>
<li>Alternative modules or approaches</li>
<li>Custom patches maintained in the Open Intranet repository</li>
</ul>
<p>3. <strong>Testing:</strong> Verify that Open Intranet installs successfully on Drupal 11.1 without the problematic patches</p>
<p>4. <strong>Documentation:</strong> Update contribution guidelines to avoid merge request-based patches in the future</p>
<h3 id="summary-when-version">When / Version / Related Tasks</h3>
<p><strong>Priority:</strong> Critical - blocks installation</p>
<p><strong>Target version:</strong> 1.2.x branch</p>
<p><strong>Drupal version:</strong> 11.1 (with consideration for 11.2 upgrade path)</p>
<h3 id="reproduction-steps">Steps to Reproduce</h3>
<ol>
<li>Clone Open Intranet repository</li>
<li>Run ./launch-intranet.sh</li>
<li>Installation fails during config import</li>
<li>Site becomes non-functional</li>
</ol>
<h3 id="current-workaround">Current Workaround</h3>
<p>Temporarily remove the ckeditor_media_resize patch from composer.json to allow installation, but this is only a temporary solution that doesn't address the underlying issue.</p>
<h3 id="additional-context">Additional Context</h3>
<p>The team identified that there were issues with Drupal 11.2 upgrade (referenced in task 3532288), which is why the project remains on 11.1. However, patches should not depend on unstable merge requests that can change requirements unexpectedly.</p>
issue