Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [patches]

Use it for question on structured files that consist of a list of differences between one set of files and another.

1
vote
0answers
18 views

Don't re-apply patches when requiring new module?

I keep running into the issue that, when requiring a new module with composer, existing packages are removed and reinstalled if they have patches defined in composer.json. For instance, λ lando ...
0
votes
1answer
12 views

How to generate my own patches to update core for security when fuerstnet.de's “Drupal upgrade the easy way” page is out of date?

For Drupal 7, under the current host I'm using (which doesn't provide things like drush), I've found that patching is the easiest approach to updating core. However, the commonly-referenced page which ...
0
votes
1answer
43 views

How to apply a patch file in composer to a submodule of a module?

I've added the patch to composer.json like this: "drupal/admin_toolbar_tools": { "Bring back media to dropdown menu": "https://www.drupal.org/files/issues/2019-01-16/admin_toolbar-media_link-...
0
votes
0answers
46 views

Unable to apply patch

I am unable to apply patch using composer in Drupal core 8.6.4. Can anyone help me to apply patch using composer? Here is the process what I am doing : { "name": "drupal/drupal", "description": "...
1
vote
0answers
40 views

Create a patch for core.libraries.yml

I noticed that core/jquery.cookie is referencing the jquery-cookie v1.4.1 library that is now no longer maintained. It is being superseded by js-cookie and so I would like to write a Drupal core patch ...
1
vote
1answer
137 views

Handling directory error with submitted patch [closed]

Drupal 8.x MAC OSX + Vagrant 2.2.0 How can I trace/define a directory error while trying to apply a Drupal.org patch? I have a patch submitted to a Drupal project module, and while trying to apply ...
5
votes
1answer
397 views

`composer require` fails because “Source directory docroot/core has uncommitted changes”

Symptom: You have a script that fails while executing a composer require command, resulting in output like the following: $ ./example.sh Gathering patches for root package. Removing package drupal/...
0
votes
1answer
30 views

How to associate multiple profiles per user with Profile2

I'm running a Drupal 7 site that has different profile types (created using the Profile2 module). Each user is associated with a profile, so at the time of registration, a potential user can choose a ...
1
vote
1answer
93 views

How to resolve File to Patch issue?

We are trying to apply a patch to a core module using Applying patches after updating Drupal core to 8.5.6. When running patch -p1 < patchname-issuenum-version.patch command, we get the following. ...
1
vote
0answers
297 views

Applied 2018-03 Exploit patch but getting errors [closed]

I applied the patch from here: https://www.drupal.org/sa-core-2018-002 to my Drupal 7.53 site. I can't do a full upgrade as it might break stuff. The patch caused the following error as found in my ...
0
votes
1answer
531 views

How do I check whether the patch for SA-CORE-2018-002 is applied?

How do I check whether the patch for SA-CORE-2018-002 is applied in a Drupal 7 website? I have applied the patch. How does it secure my Drupal websites?
10
votes
4answers
5k views

How to tell if my Drupal site is comprised from the SA-CORE-2018-002 — 2018 March exploit?

Just released exploit: https://www.drupal.org/sa-core-2018-002 --- Drupal core - Highly critical - Remote Code Execution - SA-CORE-2018-002 How can I tell if someone used this exploit to hack my site?...
0
votes
2answers
58 views

How to properly perform a patch so that the correct directory is used?

I attempted to make a patch using Making a Drupal patch with Git and ran into one issue after creating the patch. For some reason, I cannot get the proper location to be stored in the patch. How can ...
0
votes
1answer
42 views

How to read testbot feedback / get more info

I have created a patch for migrate_spreadsheet, unfortunately it will not pass the testbot. Instead that gives me this (to me cryptic / uninformative) message: fail: [run-tests.sh check] Line 0 of :...
2
votes
1answer
4k views

How to apply a patch with composer workflow to a drupal package

I need to include a patch in my project. I have included cweagans/composer-patches in composer.json and then I added the following lines in the extra section (example is from when trying to enable ...
0
votes
2answers
170 views

Patching .htaccess file

I need to patch .htaccess file which is located in project's root (docroot in this case), my project is written using composer and I created a patch using git, added it to the /patches directory and ...
0
votes
1answer
17 views

Core patching and version controlling across multiple versions of the same site

How can I propagate core updates from an installation of a Drupal site to other installations of the same site? I maintain a private Drupal site which the owners now want to make public. As a result, ...
0
votes
1answer
429 views

How to apply .diff and .patch file by SSH? [closed]

I use Drupal 7 and I read every article about applying patches, but I don't understand how to apply patches to Drupal files using SSH. I am administrator of a Linux server that hosts a Drupal site. ...
1
vote
1answer
279 views

Error applying patch with Git

I have read different SE posts and Drupal.org posts about applying patches using git but I am getting an error message whenever I try any of the following methods. the error is: error: modules/...
1
vote
0answers
48 views

Why don't contributors get author attribution for Drupal core issues?

I'm looking now a commit in the Date range separator should be translatable issue and I don't see the commit message like: alexpott committed a55967d on 8.3.x authored by mpdonadio And mpdonadio has ...
0
votes
1answer
450 views

Remove and uninstall module in a single patch

One of the modules I maintain contains a sub-module. The sub-module doesn't do much; just provides views integration for the main module, i.e. only have implementation of hook_views_data. I would like ...
1
vote
1answer
450 views

How to manage patches in composer when they're merged into the module?

I'm building a Lightning BLT project and recently the deploy:build failed because the features module merged a patch composer.json was set to apply. Is there a way to indicate to composer that the ...
1
vote
0answers
297 views

CAPTCHA fails every time on some forms (captcha session reuse attack detected)

I'm using/running the Captcha module 7.x-1.x-dev the latest version for D7 but on some forms I am still getting captcha session reuse attack detected I have tried 9 patches and it is STILL not ...
1
vote
2answers
61 views

How do you run Drupal core-patches and is there a single, general way?

When I run contrib-module patches I download the patch file, put it in the modules folder, navigate to there with the Linux-bash and then do git apply patch patch_file_name. I never ran a core-patch ...
2
votes
1answer
90 views

Using putty to patch to cloze module

I use Putty to apply cloze module patch. Here are my steps: I go to this directory: sites/all/modules/contrib/cloze I save the patch: wget https://www.drupal.org/files/issues/cloze-...
0
votes
1answer
49 views

warning message after uprgraded to drupal 6.38

I upgraded drupal 6.2 to drupal 6.38 to apply the security patch to ignore the vulnerabilities as mentioned in https://www.drupal.org/drupal-6.38-release-notes . But after updating to 6.38 when i ...
2
votes
1answer
182 views

Applying Patches to Drupal modules - How to deal with error messages?

I am trying to apply patch #110 from here in Drupal 7 - ViewsCalc. I am following the instructions on this page: Applying patches on Mac OS X When following the instructions, I get this error ...
1
vote
0answers
28 views

TB Mega Menu: The website encountered an unexpected error. Please try again later [duplicate]

I have installed drupal 8.0.2 on my hosting for testing purposes. I am using Zircon template and installed TB Mega Menu 8.x-1.0-alpha1. After installation, on page: admin/structure/tb-megamenu, when I ...
3
votes
2answers
191 views

How do I save patched core after new upgrade?

I had to apply custom patch on Drupal 7 core and now I'm afraid that after rolling a new minor-upgrade over, it'll overwrite my changes. Is there any way for me to preserve my changes even after ...
1
vote
1answer
67 views

Failed patching both manually and with Git in Ubuntu terminal

I am very new to both Patches and Ubuntu and I try to run this patch which fixes RTL problems for Admin_Toolbar module (8.x-1.11). I've downloaded the patch file and putted it in the module's folder. ...
4
votes
1answer
570 views

Drupal patch files - Why do Drupal patches have complicated file names?

I know almost nothing on Drupal patches but it is important for me to ask this for others and myself: Why almost every Drupal patch I've seen in discussions in Drupal.org has a long complicated file ...
0
votes
1answer
580 views

Installing Drupal patches in Ubuntu terminal [duplicate]

I'm new to Ubuntu and I never ran Drupal patches before and now is my first to do so: I've searched here in the Drupal answers with the phrase: "Patches, Ubuntu" But I didn't find instruction on how ...
2
votes
0answers
89 views

How can I manage and track the patches? [closed]

How can I manage and track the patches (functionality new and old) to the modules and sub-modules of my project in an Organization?
0
votes
1answer
26 views

Replacing the updated module in drupal 7 without effecting the database from previous module?

I have seen that whenever we apply patch to a module, without reinstalling the module, new updates of the module won't be reflected. The problem is reinstalling the module will truncate the module ...
0
votes
1answer
184 views

How to reverse a drupal patch on netbeans

Is there a way to reverse a patch on Netbeans? Does simply copying the target file and repasting it will work? Or can the patch affect mutliple modules and code?
2
votes
2answers
54 views

What does a/ and b/ stands for in patch header?

The first line of patches always has this kind of code: diff --git a/i18nviews.inc b/i18nviews.inc or diff --git a/plugins/views_plugin_localization.inc b/plugins/views_plugin_localization.in ...
0
votes
3answers
81 views

How to submit multiple patches to a contrib module?

I'm building a web application and use some contrib modules. I heavily rely on a particular module, for which I already submitted a patch a couple of months ago, which was eventually committed. On ...
2
votes
2answers
385 views

Inline Entity Form - start with first new node open

My install is using Inline Entity Forms and I would like it so that when a user visits the create node page, the inline entity form starts already visible but with all fields empty and ready to be ...
1
vote
5answers
4k views

How to apply patches?

I have installed Drupal 7 in FTP server. I am trying to apply a Drupal patch. I did see many links online but no one shows how to do it while Drupal is in FTP server of the hosting account. I think ...
3
votes
2answers
151 views

How to get a patch for the Views module reviewed and committed to the project?

Recently I found an issue with the Drupal Views module. I have submitted a patch to fix it. Does anyone know what the process is to: get this issue (and related patch) reviewed? ultimately get the ...
0
votes
2answers
156 views

Core Update: Which Is Safer, Patching or Drush?

We have a number of production sites (mostly on one AWS instance) that require an update of Drupal Core from 7.34 to 7.35. I have tested an update on one development instance using the following ...
1
vote
1answer
327 views

Drush Update to a patched module?

What happen when you drush up update a module with Drush because of security issue and the module contain few patches for other features? The reason why I'm asking is because I have patched few ...
1
vote
3answers
84 views

find all core patches

I work on site that is drupal 7.20, I am sure previous team that worked on this project patch core in some places,I want to find all of patched they did, is there any way to find all patched they did? ...
3
votes
2answers
159 views

Possibility to apply a patch to a target directory with Drush make?

Is there any way to declare target directory for a patch in a Drush make file? I need to apply a patch to a subfolder of a module. The reason is that CiviCRM's project is composed from multiple ...
0
votes
1answer
84 views

Application of patches after core/module updates

What is the recommended way to automate application of patches after updating core or contrib modules? For now, I'm doing this manually but it gets tedious for sites with a large number of modules ...
2
votes
1answer
4k views

Warning message when patch is applied?

I applied a patch and I get a Warinig message. Then it states that the patch was applied cleanly. Can I trust this? This is the complete code: example@d565:~/www$ git apply -v SA-CORE-2014-005-D7....
2
votes
1answer
155 views

Check for double escaped string - Simpletest

I am trying to create a test case against a patch which will be used for automated testing in D8 release. However, I am trying to do it to check if the page I am on it, has any multiple escaped HTML ...
1
vote
2answers
574 views

pathauto patterns showing an empty page drupal 7

When loading admin/config/search/path/patterns no content/form is showing up. Is there any way to show up the content of the patterns...?
0
votes
1answer
480 views

Drush make unable to determine mime type for js

On every .js library that needs to be downloaded, I keep getting errors like: https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js. Unable to determine mime type for jquery-ui.min....
-1
votes
1answer
278 views

update panels 3.3 to 3.4 and patch

It is my first time that I want to patch a module. when I want to update the panels module with drush some message come up that says : PDOException: SQLSTATE[42S02]: Base table or view not found: ...