phpgroupware-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-tracker] [Bug #1618] Angelmail tries to set the dir of the


From: nobody
Subject: [Phpgroupware-tracker] [Bug #1618] Angelmail tries to set the dir of the selected template, which does not exist
Date: Wed, 20 Nov 2002 21:12:06 -0500

=================== BUG #1618: LATEST MODIFICATIONS ==================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=1618&group_id=509

Changes by: Alejandro Borges (lex) <address@hidden>
Date: 2002-Nov-20 20:12 (Mexico/General)

            What     | Removed                   | Added
---------------------------------------------------------------------------
          Resolution | None                      | Fixed




=================== BUG #1618: FULL BUG SNAPSHOT ===================


Submitted by: ralfbecker                Project: phpGroupWare                   
Submitted on: 2002-Nov-05 08:18
Category:  email                        Bug Group:  devel cvs                   
Severity:  9 - Critical                 Priority:  High                         
Resolution:  Fixed                      Assigned to:  alexbsa                   
Status:  Open                           Component Version:  None                
Platform Version:  Linux - Debian       Reproducibility:  Every Time            

Summary:  Angelmail tries to set the dir of the selected template, which does 
not exist

Original Submission:  I use Angelmail from HEAD cvs in a up-to-date 0.9.14 
environment. When i select a template/layout like verdilak, which has no 
directory in Angelmail/email. A call to angelmail's compose fails with the 
following error:
Warning: stat failed for /www/drock/html/phpgroupware/email/templates/verdilak 
(errno=2 - No such file or directory) in 
/www/drock/html/phpgroupware/phpgwapi/inc/class.Template.inc.php on line 62
Template Error: set_root: /www/drock/html/phpgroupware/email/templates/verdilak 
is not a directory.
Halted.

It seems to me angelmail is setting (function set_root) the dir of the selected 
template, which does NOT necessarely exist, eg. for verdilak. When i create an 
empty verdilak subdir in email/templates the error is gone.

Ralf

Follow-up Comments
*******************

-------------------------------------------------------
Date: 2002-Nov-20 19:07             By: alexbsa
Skwashd fixed this and its okay now

-------------------------------------------------------
Date: 2002-Nov-11 10:29             By: alexbsa
Yeah, definitively my fault.... im wondering though, how to achieve this. The 
idea is that the addybook should be usable outside the email app as a 
component. That is all, thats why i have to use my own instance of the template 
class, attempting to do otherwise (through globals[phpgw]->template) will make 
it fail since it will look for templates in the current (calling) app's 
directory.

Im not shure of how to handle this, but im getting back on track for this week 
and ill get to it sooner than one might think. 

-------------------------------------------------------
Date: 2002-Nov-10 16:23             By: skwashd
This is in lex's jsaddressbook code ... I will get him to sort it out :)

-------------------------------------------------------
Date: 2002-Nov-09 15:39             By: skwashd
hey ralf,

I have been looking into this one myself.  I had the same solution ... but i 
don't think it is optimal ... but i can find anywhere compose calls the 
set_root method of the templates object.  Leave it with me.

Cheers


CC list is empty


No files currently attached


For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=1618&group_id=509




reply via email to

[Prev in Thread] Current Thread [Next in Thread]