Possible Duplicate:
How do I apply a patch file?

It is obvious latest colorbox plugin needs patching because even with drush install it is not working to load images and I've been at it all day, literally.

So found this http://drupal.org/files/patch-colorbox-1_3_21-2.patch which is recommended for the drush install of colorbox plugin with only the one colorbox folder.

But where and how do I patch it?

Very kind volunteers have been trying to help throughout the day but I am yet to get this fixed.

  • If you mean without git then everything you need to know is on the Applying Patches documentation page – Clive Jan 24 '13 at 8:58
  • thanks but I can't see where the module needs patching, the changes are already there. – Ann Jan 24 '13 at 9:22
  • none of this makes sense, i am at my wits end and really there is no-one who can help even though plenty have tried – Ann Jan 24 '13 at 9:23
  • It sounds like the patch file you've got doesn't apply to the version of the module you've got, so only the maintainers of that patch/module are going to be able to help really. Without reviewing the entire diff for the date ranges in question I'm not sure how anyone without prior knowledge would be able to help – Clive Jan 24 '13 at 9:27
  • it is latest release of colorbox and plugin for drupal 7.19 – Ann Jan 24 '13 at 9:34

You could either do it through the patch program or git. you have a good documentation here

Or do it manually.

  --- colorbox.module.old   2013-01-17 12:36:37.000000000 -0700
    +++ colorbox.module 2013-01-17 12:35:46.000000000 -0700
    @@ -80,9 +80,9 @@
         'download url' => 'http://www.jacklmoore.com/colorbox',
         'path' => 'colorbox',
         'version arguments' => array(
    -      'file' => 'colorbox/jquery.colorbox-min.js',
    +      'file' => 'jquery.colorbox-min.js',
           'pattern' => '@ColorBox v([0-9\.a-z]+)@',
    -      'lines' => 1,
    +      'lines' => 2,
         'files' => array(
           'js' => array(

What this says is in the colorbox.module file and find the line which says

'file' => 'colorbox/jquery.colorbox-min.js',

replace that with

'file' => 'jquery.colorbox-min.js',

and find the line with

'lines' => 1,

and change that to

'lines' => 2,

@@ -80,9 +80,9 @@ this tells you that you would be looking some were near line number 80.

  • Mohammed, do you think this will fix the issue of images not loading and js file not being found? – Ann Jan 24 '13 at 9:05
  • It depends on lots of other things. Some time it could be the file permission. as you have mentioned in the other post. you apache server does not have the permission to access the file. Have you tried installing it through the interface rather than through drush? – Mohammed Shameem Jan 24 '13 at 9:07
  • Well I see no 'file'=> 'colorbox/ only what it should be file => nameofile.js...i've tried 8 hours worth of ways. – Ann Jan 24 '13 at 9:12
  • do you know how to use irc? – Mohammed Shameem Jan 24 '13 at 9:13
  • yes i do know how to use irc. – Ann Jan 24 '13 at 9:17

Not the answer you're looking for? Browse other questions tagged or ask your own question.