file patch

3 posts / 0 new
Last post
zenkul
zenkul's picture
Offline
Joined: 28 Jan 2012
Points: 50
file patch

mohon petunjuk para senior, bagaimana cara menerapkan (apply) file patch pada module yang error. Setelah mencari pada drupal.org biasanya ada yang memberi solusi file patch , lalu bagaimana menggunakan-nya ?

Del Prio
Del Prio's picture
Offline
Joined: 7 Jul 2010
Points: 123
http://drupal-id.org/forum/ca

http://drupal-id.org/forum/cara-pacthing-di-windows

zenkul
zenkul's picture
Offline
Joined: 28 Jan 2012
Points: 50
sedang coba ini

Here are the steps needed to install a patch for a drupal module :

1) Download the patch and save it to the local folder of the bad file for example views-fix.patch
2) Run a command like this to fix the bad file : patch < views-fix.patch

Here is a batch installation , the fix the error on vies installation :
Error:
Undefined offset: 0 in views_handler_field_field->option_definition()

Fix Patch Install :
=============
Example on patch the views module , after saving the patch on this drupal.org node to a local file called views-fix.patch :

[root@perfrep field]# pwd
/var/www/html/sites/all/modules/views/modules/field
[root@perfrep field]# vi views-fix.patch
[root@perfrep field]# patch < views-fix.patch
patching file views_handler_field_field.inc
Hunk #1 succeeded at 283 (offset -7 lines).
Hunk #2 succeeded at 335 (offset -10 lines).
[root@perfrep field]#

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.