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.

CommentFileSizeAuthor
#8 panels_views_patch.txt503 bytescbutera

Comments

yched’s picture

Have you tried with recent Views 1.3 ? I think this was fixed in this commit : http://drupal.org/cvs?commit=47550

harriska2’s picture

Yes, 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.

merlinofchaos’s picture

For 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.

harriska2’s picture

Thanks Merlin - that did it. I have successfully create a panel by using predifined views.

notarealperson’s picture

I'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!

harriska2’s picture

edit:
/modules/panels/content_types/views.inc

find the line:
$default_views = _views_get_default_views();

Just before that line, add:

views_load_cache();

notarealperson’s picture

Thanks so much for the reply!

cbutera’s picture

Status: Active » Needs review
StatusFileSize
new503 bytes

Worked for me thanks. Attached is a patch.

Tobias Maier’s picture

Status: Needs review » Reviewed & tested by the community

the proposed fix worked for me, too

jacauc’s picture

Version: 6.x-2.x-dev » 5.x-1.0

I added the line of code, and it fixed my problem too.
Using panels 5-1.0 and views 5-1.5

Thanks

Southpaw’s picture

I can also verify that the patch works: Panels 1.1 + Views 1.5

llribas’s picture

This solution worked for me too. Nice support

merlinofchaos’s picture

Status: Reviewed & tested by the community » Fixed

Looks like this has been in -dev for awhile. New 1.1 release will have this, later today.

Anonymous’s picture

Status: Fixed » Closed (fixed)