Posted by LxT on March 3, 2010 at 2:02am
4 followers
Jump to:
| Project: | Google Maps Tools |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed |
Issue Summary
There's an issue with gmaps and Views 3. I get a php white screen of death when using gmaps in a view. (My other views not using gmaps work ok) The error log shows
PHP Fatal error: Call to undefined method views_plugin_display_page::get_cache_plugin() in ...\\sites\\all\\modules\\gmaps\\modules\\gmaps_views\\includes\\handlers\\gmaps_views_plugin_style_map.inc on line 46
I reported it to Views issues and was told by the maintainer that it's a problem with gmaps because the get_cache_plugin() method no longer exists. I thought I should report it here.
Comments
#1
#2
I cured this problem by replacing near line 50 of /gmaps_views_plugin_style_map.inc
$cache_plugin = $this->view->display_handler->get_cache_plugin();
with
$cache_plugin = $this->view->display_handler->get_plugin('cache');
Your mileage may vary
#3
same issue here- works fine with the "patch".
@xmarket why did you postpone it? won't views 3.x support be supported in the drupal 6 branch?