Closed (fixed)
Project:
Hierarchical Select
Version:
5.x-3.0-rc3
Component:
Code - Content Taxonomy Views
Priority:
Minor
Category:
Support request
Assigned:
Reporter:
Created:
11 Sep 2008 at 16:25 UTC
Updated:
14 Jul 2012 at 19:37 UTC
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
Comment #1
rvarkonyi commentedSorry 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!
Comment #2
rvarkonyi commentedComment #3
Joanzo commentedYes 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.
Comment #4
Joanzo commentedoh i find my solution
using chmod og=rw [patched_file]
hope this helps
Comment #5
wim leerscrooke: You forgot to copy the 2 spaces at the beginning of each line.
Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.