Ok, I'm half insane now...

For some unknown reason I'm unable to apply the patch on views.module, it always fails anything I do. So I decided to add the 3 lines in views.module by hand. I know this shouldn't be difficult at all but for some reason I'm not able to get this working. Here's what I have:

line 1331 
<?php
function _views_build_filters_form($view) {
//When the form is retrieved through an AJAX callback, the cache hasn't
// been loaded yet. The cache is necesssary for _views_get_filters().
 views_load_cache();

  $filters = _views_get_filters();
  foreach ($view->exposed_filter as $count => $expose) {
    $id = $expose['id'];
    $filterinfo = $filters[$id];
    foreach ($view->filter as $filter) {
      if ($filter['id'] == $id) {
        break;
      }
    }?>

Can please someone let me know where I am wrong? It would be a real life saver!

Thanks!

Comments

rvarkonyi’s picture

Sorry I forgot to mention I use views 5.x-1.6

I was looking for a newer edition but I couldn't find it anywhere.

Thanks!

rvarkonyi’s picture

Title: A requiem of a person fighting with the patch... » A requiem of a person fighting with the views patch...
Joanzo’s picture

Yes it's the same for me when i patch that i got this error message, and i can't open my sites at all

Fatal error: Call to undefined function views_get_all_urls() in F:\xampp\htdocs\recipestemp\sites\all\modules\nodewords\nodewords.module on line 933
please someone figure this out

and after i change back to the original i got this warning :

* warning: include_once(./sites/all/modules/views/views.module) [function.include-once]: failed to open stream: Permission denied in F:\xampp\htdocs\recipestemp\includes\bootstrap.inc on line 512.
* warning: include_once() [function.include]: Failed opening './sites/all/modules/views/views.module' for inclusion (include_path='.;F:\xampp\php\pear\') in F:\xampp\htdocs\recipestemp\includes\bootstrap.inc on line 512.

Joanzo’s picture

oh i find my solution
using chmod og=rw [patched_file]
hope this helps

wim leers’s picture

Assigned: Unassigned » wim leers
Priority: Normal » Minor
Status: Active » Fixed

crooke: You forgot to copy the 2 spaces at the beginning of each line.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.