Closed (fixed)
Project:
Panels
Version:
5.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Dec 2006 at 02:29 UTC
Updated:
29 Mar 2007 at 18:21 UTC
Jump to comment: Most recent file
Installed fine onto:
Drupal 5 beta 2
Views - Head
Views bonus
CCK - 1.0 beta
Tapir, custom breadcrumbs, fckeditor (disabled), imce, og
Installed fine. When going to Administer » Site building >> Panels and picking a panel style - I get the error:
Fatal error: Call to undefined function: _views_get_default_views() in /home/harriska/public_html/di/modules/panels/content_types/views.inc on line 56
All views are working fine right now - there are 7 views created.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | panels_views_patch.txt | 503 bytes | cbutera |
Comments
Comment #1
yched commentedHave you tried with recent Views 1.3 ? I think this was fixed in this commit : http://drupal.org/cvs?commit=47550
Comment #2
harriska2 commentedYes, I tried with v1.3 then switched to v1.4 for views. I searched here and found views used to have this problem. I also have v1.1 of panels. I suspect it is not happy with a created view and will likely remove all views to see if I can at least get panels to create a new panel without error. I thought I would log it here just in case.
Comment #3
merlinofchaos commentedFor a quick workaround, look in content_types/views.inc for _views_get_default_views().
Just before that line, add 'views_load_cache()' -- that should get you working until I can make a fix official.
Comment #4
harriska2 commentedThanks Merlin - that did it. I have successfully create a panel by using predifined views.
Comment #5
notarealperson commentedI'm having this same problem. Could you be more specific as to where to add in that line? I apologize but I kept getting different errors - could you post a snippet of the entire two lines as they should be displayed. THANKS!
Comment #6
harriska2 commentededit:
/modules/panels/content_types/views.inc
find the line:
$default_views = _views_get_default_views();
Just before that line, add:
views_load_cache();
Comment #7
notarealperson commentedThanks so much for the reply!
Comment #8
cbutera commentedWorked for me thanks. Attached is a patch.
Comment #9
Tobias Maier commentedthe proposed fix worked for me, too
Comment #10
jacauc commentedI added the line of code, and it fixed my problem too.
Using panels 5-1.0 and views 5-1.5
Thanks
Comment #11
Southpaw commentedI can also verify that the patch works: Panels 1.1 + Views 1.5
Comment #12
llribas commentedThis solution worked for me too. Nice support
Comment #13
merlinofchaos commentedLooks like this has been in -dev for awhile. New 1.1 release will have this, later today.
Comment #14
(not verified) commented