A patch is a structured file that consists of a list of differences between one set of files and another. The Drupal community makes extensive use of patches to communicate code changes, additions, or deletions between developers.

learn more… | top users | synonyms

2
votes
1answer
56 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
16 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
32 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
17 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 ...
2
votes
2answers
46 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
31 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. ...
5
votes
1answer
538 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
50 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 ...
1
vote
0answers
27 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
27 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
35 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
62 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 ...
1
vote
2answers
139 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
112 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
141 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
123 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
159 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
79 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
94 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
63 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 ...
1
vote
1answer
642 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
127 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
431 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
399 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....
-2
votes
1answer
262 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: ...
2
votes
1answer
485 views

How make patch in PHPStorm suitable for Drupal.org?

PHPStorm will create patch in this form: Index: core/modules/node/templates/node-edit-form.html.twig IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 ====...
1
vote
3answers
327 views

Place to put patched module under contrib or custom

I am using a contrib module which has a patch in queue to be reviewed, the patch solves my issue. Where should I keep the patched module, keep it inside contrib module or should I move it under custom ...
0
votes
2answers
234 views

How to make changes to the database schema?

I am trying to follow edits made in a php file to patch a module and the instructions just say "In your database schema add this", which I could do if I knew where to find the file. When I look up ...
1
vote
1answer
674 views

How to patch module files with netbeans 7.4? [closed]

Trying to apply patch https://drupal.org/files/webform_preview-435232_1.patch to webform 7.x-3.19 via Netbeans tool - apply dif-patch. Downloaded this patch and put into drupal root directory. When ...
5
votes
3answers
2k views

File structure for custom modules in Drupal 7

I want to organize non-core (modules that are not bundled with core) modules in Drupal 7. This is my proposed structure: Contributed modules - downloaded modules that are untouched Custom modules - ...
1
vote
0answers
537 views

drush make fails on patch download

drush make unsuccessful, because download of patch fails - I have (apparently equal) boxes, on one my drush make fails, on the other it's fine. Unable to download ...
0
votes
1answer
43 views

Writing a patch on a sandbox/dev install using a git branch

I'm working with a Sandbox/Dev hosted VM with Drupal 7 and Commons 3. I want to write and perhaps contribute a patch. Having the site under local version control with git, I create a new branch write ...
10
votes
1answer
6k views

How do I update Drupal 7 Core with only security patches?

I have a old Drupal 7 installation and I would like to update my Drupal 7 to the latest release, but I know for a fact that some of my custom module will break on the latest update. All I want ...
2
votes
1answer
371 views

Patch a module loaded by a distribution

I am trying to make an installation profile that inherits the commerce kickstart distribution. In order to get this to work, I need to apply a bunch of patches through drush make. First I have to ...
2
votes
1answer
186 views

Commit doesn't show up in profile on Drupal site

I submitted my first, (and very small patch) here, by following the instructions here. It looks like the patch worked, but when I look at the Commits tab of my profile, I don't see any entries. When ...
9
votes
2answers
309 views

How do you contribute patches to Drupal core?

What is the proper process to contribute patches to Drupal core? Let's say I find a bug in Drupal core, fix it, and create a patch. How do I submit it? If the bug is in Drupal 7, do I have to also ...
3
votes
3answers
3k views

Overriding contributed module functionality

Every so often, I need to make a little hack to a contributed module to add a bit of needed functionality, usually something specific to the project that the module maintainers probably would not want ...
0
votes
1answer
93 views

Why is my patch failing a test?

When a patch fails testing because it doesn't apply, and the error reads "Ensure the patch applies to the tip of the chosen code-base." what does this mean?
0
votes
1answer
125 views

Save patch changes after module upgrading

Am I need to apply patch after every module upgrading? I had a patch, I changed manually handler of views module but yesterday after upgrading Views module I lost all my changes. Is it possible to ...
4
votes
1answer
126 views

detect patches and custom code in core and contrib of an installation [duplicate]

Possible Duplicate: Finding modified modules I've been given a 3 years old Drupal 6 installation. I'm afraid that the original developer has hacked the hell out of core and many contrib ...
1
vote
1answer
190 views

How to apply a patch for a Drupal module?

I'm trying to us this patch http://qa.drupal.org/pifr/test/298933 Save the patch file to the root directory of feeds module (sites/all/modules/feeds) then apply the patch by using git bash. So I ...
0
votes
1answer
5k views

How to install a patch to drupal 7

I recently exprience one problem that requires a patch. I downloaded that file .patch, but have no idea how properly to install that to my hosted website. Thanks in Advance!
4
votes
2answers
502 views

How to manage version control for patched contrib modules?

I got some great feedback regarding patching contrib modules. Is there a good way to keep track of patches to contrib modules? For example, let's say I create a patch for a contrib module and submit ...
5
votes
2answers
138 views

What does test status postponed for a patch on d.o mean?

I've added a patch for the rules module. The patch detail page says the test status is postponed. What does that exactly mean? Is there anything I should do to get the patch tested?
9
votes
2answers
22k views

How do I apply a patch file? [closed]

I downloaded a patch file from mailhandler module and need to apply the changes in order to fix the problem of pop3 accounts not deleting emails after download (import). How do I install it?
0
votes
2answers
3k views

Cygwin Patch fails

I have failed to get my first patch to implement. I loaded cygwin, maneuver to the directory, and enter patch -p0 < ThePatchName.patch Cygwin returns bash: patch: command not found I searched ...
5
votes
1answer
135 views

What does testing a patch mean?

In drupal.org issues when someone creates a patch, in attachment table there is a column named Test result which has a value like FAILED: [[SimpleTest]]: [MySQL] 32,869 pass(es), 2 fail(s), and 0 ...
3
votes
5answers
11k views

Applying a patch doesn't work

I'm having trouble with applying a patch for a Drupal module. I thought it was as simple as using "git apply thepatch.patch," but when I do this in the main directory that holds the .git directory, I ...