Hello,

Does somebody knows about a specific procedure on how to install a patch for a module?
I've looked all over the website and I am unable to find clear or consistent information about this.

This is the patch that I am trying to apply:

http://drupal.org/node/169593

However, I don't see any instructions about how patching modules (and it seems everybody already knows).
I appreciate all your help.

Johann

Comments

hagrin’s picture

Depends on the module. Read the README and other included .txt files.

_______________________________________________________________________________
http://www.hagrin.com - Just my little slice of the Interweb

styro’s picture

jgonzalez-1’s picture

Hello Styro,

From what I have checked this information is for patching the Drupal core itself and from what I think this is not related to module patching.

styro’s picture

Nothing in those handbook pages implies that patches are a core only thing.

The patching process isn't even specific to Drupal - the same utilities and procedure applies to patching anything. The diff and patch utilities have been standard utilities for software development since the dark ages :)

But patches aren't intended for general consumption. They are only intended for programmers and testers to share bug fixes or new features. If you apply a patch, you have "forked" your codebase into a version (probably) only you have - additional patches might not apply properly and future updates to those files will overwrite your changes.

If you don't understand what you are doing, I wouldn't recommend you install patches.

--
Anton
New to Drupal? | Troubleshooting FAQ
Example knowledge base built with Drupal

jgonzalez-1’s picture

I was able to patch the module using the link you have provided me:

http://drupal.org/patch

I was somehow confused if there were different ways to apply patches, however while using this guide I confirmed there is one way to patch all modules.

Have a good day!

jgonzalez-1’s picture

Thanks for your answer, however I have already checked the Read me and there is no documentation on how to apply patches for this specific module.

bomarmonk’s picture

Open the patch file in a text editor and you will see how the patch is updating code. You can even apply the patch manually by paying attention to the "+" and "-" symbols (although its easier to introduce errors this way). In the end, ask the person who provided the patch with more detail on how to apply it, if there are no instructions. Ask nicely, and the developer might help you try out the new code.

ahmedhanyfawzy’s picture

I wrote small blog post describing how to install the patch using the linux path utility ; linked here.