Style output: viewscarousel-view.tpl.php (File not found, in folder sites/all/modules/viewscarousel/),

libeco - June 9, 2009 - 11:54
Project:Views carousel
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

I'm trying to theme the jCarousel, but I'm having a hard time getting it the way I want. I decided to strip the view template files from all unneeded tags, so I went to the views theme information and this is what i saw:

Style output: viewscarousel-view.tpl.php (File not found, in folder sites/all/modules/viewscarousel/),

Is there supposed to be a template file like that? It is not in the package I downloaded.

Thanks in advance!

#1

Rob Loach - June 11, 2009 - 20:18

Clear your theme cache?

#2

libeco - June 12, 2009 - 07:12

Did that, I also have
drupal_rebuild_theme_registry();
in my template.php while doing local work on the theme.

I have never looked at the code of a views plugin before, but when I looked at viewscarousel.views.inc I saw this line:

'theme' => 'viewscarousel_view',

I temporarily commented it out and saw the error was gone, there were no names for the template suggestions though so it really seems like the file viewscarousel-view.tpl.php is missing from the module package. (It just is not there.)

Thanks in advance!

#3

friolator - June 12, 2009 - 18:28

I just noticed this today as well... exactly the same error.

#4

bengtan - June 18, 2009 - 05:06

There is definitely some sort of bug here.

The file viewscarousel-view.tpl.php used to exist in this module (see http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/viewscarous...), but then it got removed as part of the commit for http://drupal.org/cvs?commit=193996, yet Views still asks for it in 'Theme: Information'.

#5

bengtan - June 19, 2009 - 03:21

On the other hand, this is what views_theme() generates for hook_theme() on behalf of viewscarousel.module:

    [viewscarousel_view] => Array
        (
            [pattern] => viewscarousel_view__
            [file] => viewscarousel.views.inc
            [path] => sites/all/modules/viewscarousel
            [arguments] => Array
                (
                    [view] =>
                    [options] =>
                    [rows] =>
                    [title] =>
                )

        )

This declaration is for a theme('viewscarousel_view', ...) type function, not one based on template (ie .tpl.php) files.

So, one diagnosis is that Views correctly understands that there isn't a viewscarousel-view.tpl.php file, yet the "Theme: Information" link in views editing is incorrectly attempting to find it.

My opinion is that this is a small bug in Views, but I'm happy to be corrected by others.

#6

bredi - June 26, 2009 - 02:04

same here. my theming of a view stopped working today and I get this error too.

subscribe

 
 

Drupal is a registered trademark of Dries Buytaert.