Bug 331852 - kaddressbook "Template not found, contact.htmlTemplate not found, contact_embedded.html"
Summary: kaddressbook "Template not found, contact.htmlTemplate not found, contact_emb...
Status: RESOLVED FIXED
Alias: None
Product: kaddressbook
Classification: Applications
Component: general (show other bugs)
Version: 4.11.5
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-07 14:21 UTC by kolAflash
Modified: 2014-07-02 07:43 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kolAflash 2014-03-07 14:21:20 UTC
kaddressbook shows the error

Template not found, contact.htmlTemplate not found, contact_embedded.html

in the right contact-preview pane (in two and three columns mode) instead of the contacts details. There are any further details why this happens.


Via strace I found out, that kaddressbook looks for the mentioned files in

~/.kde4/share/apps/kaddressbook/viewertemplates/

After deleting that directory, the preview pane works fine again. Don't know why the directory was existing in the first place.


For any less experienced user this might be an unresolvable problem. And also me it had cost some time. Please fix!

Either apply user-defined templates only if the html-file really exists (and not just the directory). Of put more details on how to resolve the problem into the error message shown by kaddressbook
Comment 1 Laurent Montel 2014-03-13 08:24:56 UTC
I can't reproduce.
It was fixed in new version.
Retest in new 4.12 or 4.13
Comment 2 Pascal Vandeputte 2014-03-21 11:59:21 UTC
Hi,

I get the same error using Kontact in version 4.12 (kubuntu backports on 12.04LTS).

I recentently upgraded to Kubuntu 14.04 beta:
KAddressbook Version 4.13 beta2
Using KDE Development Platform 4.12.90

Still the same. When I delete ~/.kde/share/apps/kaddressbook/viewertemplates/ , an empty folder is recreated when starting Kontact.

Then I started KAddressbook itself (not embedded in Kontact!) and... everything just works. It also creates the empty folder but the contact info, QR etc is shown.

Tried Kontact again, same error.
Comment 3 Pascal Vandeputte 2014-03-21 12:05:35 UTC
Nevermind, must be somehow profile-related. I tried the same from a fresh useraccount and there everything works flawlessly.
Comment 4 Marcel A. W. Spitau 2014-04-26 13:40:44 UTC
I had the same issue. I copied the default files into my home-path and now it works propper!

I did this on ubuntu-linux 14.04:

cp /usr/share/kde4/apps/kaddressbook/viewertemplates/default/* ~/.kde/share/apps/kaddressbook/viewertemplates
Comment 5 Marcel A. W. Spitau 2014-04-26 14:55:35 UTC
Damn. after shutting kontact down and starting it again, I have the same issue... 

kontact 4.13
kde 4.13.0

Help would be great :)
Comment 6 Laurent Montel 2014-04-27 05:32:54 UTC
(In reply to comment #4)
> I had the same issue. I copied the default files into my home-path and now
> it works propper!
> 
> I did this on ubuntu-linux 14.04:
> 
> cp /usr/share/kde4/apps/kaddressbook/viewertemplates/default/*
> ~/.kde/share/apps/kaddressbook/viewertemplates

Why copy and not delete ??
Comment 7 Marcel A. W. Spitau 2014-04-27 13:29:38 UTC
(In reply to comment #6)
> Why copy and not delete ??

Because that did not work either.

If kaddressbook starts allone - everthing looks fine. But having it inside kontact I get the upper errormsg. 

I noticed that new keyboard-shortcuts I defined are gone after I restarted kontact. May be it is the same problem ... who knows. 

I wanted to give kontact a chance (I am using thunderbird right now.), but we will not getting friends it that won't work. ;)

Marcel
Comment 8 Claudio Monteleone 2014-04-30 17:55:54 UTC
Same issue here with fresh install of Kubuntu 14.04

Claudio
Comment 9 Mikhail Krasilnikov 2014-05-15 07:01:41 UTC
This is NOT fixed in 4.13.1. Please, reopen this bug.
Comment 10 Adrian Piotrowicz 2014-05-19 11:37:03 UTC
It's a problem with Kontact. I think that Kontact breaks theme selection in KMail and KAddressBook. When both parts are started via Kontact they are using same theme name but from correct paths.
In KMail I'm using theme from path "/usr/share/kde4/apps/messageviewer/themes/letterhead" and when I've  made a symlink inside "/usr/share/kde4/apps/kaddressbook/viewertemplates" named "letterhead" pointing do "default" KAddressBook stopped complaining about missing template.
I'm using KDE 4.13.1
Comment 11 Mikhail Krasilnikov 2014-05-20 05:51:05 UTC
So may be product for this issue should be changed from KAddressBook to Kontact?
Comment 12 Adrian Piotrowicz 2014-05-21 08:15:59 UTC
I've added a new bug report: https://bugs.kde.org/show_bug.cgi?id=335118
Comment 13 Laurent Montel 2014-05-21 08:23:55 UTC
REopen it.
I close new one.
Comment 14 Laurent Montel 2014-05-21 08:24:14 UTC
*** Bug 335118 has been marked as a duplicate of this bug. ***
Comment 15 Christux 2014-07-01 17:40:44 UTC
Same here, using KDE version 4.12.5.

KAddress Book works fine!
Kontact Address Book don't! 

Error:
Template not found, contact.html
Template not found, contact_embedded.html
Comment 16 Laurent Montel 2014-07-02 07:43:33 UTC
(In reply to comment #15)
> Same here, using KDE version 4.12.5.
> 
> KAddress Book works fine!
> Kontact Address Book don't! 
> 
> Error:
> Template not found, contact.html
> Template not found, contact_embedded.html

Fixed in 4.13.2