1

I have problem with my views module. In some occasions it displays this deterrent warning:

Notice: Undefined property: views_handler_field_field::$original_value in views_handler_field->render_text() (line 1118 of C:\wamp\www\novine\sites\all\modules\views\handlers\views_handler_field.inc).

I think I found the patch that could work and save me from this buggy thing. My problem is how to apply downloaded patch to views module. I placed patch file in views folder, cached site, and nothing happened. That was obviously naive try. Can someone help me and tell all applying patch procedure? Thanks in advance!

1 Answer 1

2

If it is a standard Drupal patch, you use a program named git (part of ambience in most Gnu/Linux configurations) to apply it. The correct procedure is to first clone the newest released version of the project, apply the patch, then install the patched version in the views folder. If the patch file is named views-bugfix.patch you download it, and then:

git clone --recursive --branch 7.x-3.x http://git.drupal.org/project/views.git
git apply -v views-bugfix.patch

In some cases, the patch is not for the released branch, but some other branch (this will be mentioned along with the patch). In that case you need to clone this branch instead.

Source for this info.

If you're stuck in a Microsoft environment and don't have git here is something that may help you: Patching in Windows (haven't tested this myself - I don't do windows.)

1
  • Thank you, very much. I am going to investigate this in detail.
    – natttan
    Commented Feb 12, 2013 at 15:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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