I have the issue that views simply won't find my template files. Over 3 weeks I have now spent several days on this - unquestionably the biggest time sink of any software problem of my life - though since I am not a developer, this may say more about my lack of knowledge than the difficulty of the problem.

Everything worked fine until I upgraded to Drupal6.15 and Views 2.8 on Jan 7. Since then, Views can't rescan my template files (or any new ones I make). That is, the bold stays with the least specific files and there are no changes to formats. The template files are very simple, only changing e.g. font sizes or adding h2 tags to titles. Here's everything I have done in the last 3 weeks, some of them multiple times:

- made sure admin theme is the same as the default theme (minelli)
- double checked I have the right filenames (by copying them and making sure I can find the name in the theme information list with them)
- put them in the right place (the main folder of the parent theme - garland - but have also tried garland/Views, minelli and minelli/Views for good measure
- reverted to D6.14 and the prior version of Views
- upgraded to D6.15 and Views 2.8 again
- though the template files worked before, have remade them from the script in the theme information links, and by copying and renaming from modules/views/theme
- have tried to rescan them unedited, as well as edited to the formats I want
- cleared the views cache (under tools in views)
- also the theme cache under performance, and by re-saving the theme
- implemented the admin-theme module (which wasn't there), and removed it again
- made sure the template files are saved in utf-8 not ansi (please don't laugh if this irrelevant- I have tried everything I can think of)
- rerun update.php (every time I messed with themes of modules)
- re-uploaded the theme
- put all the less-specific templates into a Views folder in the theme too, along with the one I am trying to get to scan 9as a one-off trial which didn't work)
- put a specific template into the views/theme folder (I am sure this is wrong, and it didn't work, but I am desperate)
- set the theme widget in theme information variously to minelli and garland

The only things that have happened that might be of note; when I tried to resave the theme (minelli) it failed because it couldn't write to sites/all/files, which I fixed. When I put the whole cascade of templates into the theme, nothing happened until I removed them - then Views told me it couldn't find the generic template in the theme folder (I thought it was supposed to find that one in the views/theme folder). Anyhow, at some point I forget about it stopped complaining and presumably uses the right generic one again, though if I remove the generic one from views/theme, it doesn't seem to notice or complain (still shows the least specific in bold).

Can anyone see what I am missing?

thank you

Comments

timdp’s picture

Finally found it.

There is a views-view-field.tpl.php template inside public download count which always took precedence. Removed module, solved problem. Perhaps someone who is a developer can convey the news to that group, if indeed it's their issue and not some switch I should have set.

I'm sure if I could use Devel module (or was a developer) I could have peered into themeing and found out which template was being used, or something, but as a mere mortal trying to maintain a site for my business ( which isn't s/w development) this was a giant waste of time.

Hope it helps someone else.

idevconsulting’s picture

Could you please be clearer in the way you solve the pb ? We have the same...Did you remove the file views-view.tpl.php ? Where ?

Thanks a lot,
Claire