I am trying to apply a patch to a Drupal 7 module using Cygwin in Windows, but I get the following result when I run this snippet in Cygwin (I have also tried with the -p0 option):

$ patch < field-collection-2599248-2.patch

... I get this message:

patching file field_collection.module patch: **** Failed to set the owning group of file ./field_collection.module.oll UIML : Permission denied

I run my site locally under Acquia Dev Desktop, which I have stopped, and the file does not seem to be protected in any way... Can someone suggest what to do?

Comments

computerbarry’s picture

Hi Tommy

I updated this module myself a few days ago, using the same patch.
Much easier to update this module patch manually if you're having issues.

There is only one line of code that needs changing.

Open up your modules folder and locate 'field_collection' and open the file: field_collection.module

As the patch says:

- $all_boolean = $instances && !(bool) array_filter('_field_collection_field_is_not_boolean');
+ $all_boolean = $instances && !(bool) array_filter($instances, '_field_collection_field_is_not_boolean');

- means remove
+ means add

Simply replace one line with the other.
Thats it, thats all that is needed from this patch.

Barry

The more you learn.... the more you learn there is more to learn.

Tommy_001’s picture

Hello Barry
Finally I did it manually as you suggest, and that worked fine.
Thanks for answering :)

computerbarry’s picture

No worries, and good work!

Barry

The more you learn.... the more you learn there is more to learn.