Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Smarty errors lines 1258 and 1265

  1. #1
    yakovs is offline Member
    Join Date
    May 2007
    Posts
    7

    Question Smarty errors lines 1258 and 1265

    Hi,
    I'm getting seemengly random smarty errors which apparently have to do with inability to write in templates_c.
    Line 1265:
    Code:
    Warning: Smarty::include(cache/smarty/templates_c\%%D1^D18^D18B02E6%%SavedSearchForm.tpl.php) [function.Smarty-include]: failed to open stream: No such file or directory in C:\Inetpub\wwwroot\SugarCRM\include\Smarty\Smarty.class.php on line 1265
    
    Warning: Smarty::include() [function.include]: Failed opening 'cache/smarty/templates_c\%%D1^D18^D18B02E6%%SavedSearchForm.tpl.php' for inclusion (include_path='.;C:\php5\pear') in C:\Inetpub\wwwroot\SugarCRM\include\Smarty\Smarty.class.php on line 1265
    and line 1258:
    Code:
    Warning: Smarty::include(cache/smarty/templates_c\%%C9^C90^C906B9BD%%EditView.tpl.php) [function.Smarty-include]: failed to open stream: No such file or directory in C:\Inetpub\wwwroot\SugarCRM\include\Smarty\Smarty.class.php on line 1258
    
    Warning: Smarty::include() [function.include]: Failed opening 'cache/smarty/templates_c\%%C9^C90^C906B9BD%%EditView.tpl.php' for inclusion (include_path='.;C:\php5\pear') in C:\Inetpub\wwwroot\SugarCRM\include\Smarty\Smarty.class.php on line 1258
    Yet, MOST of smarty templates being created in that templates_c just fine. I have like doesen templates there created on different days. So it can't be permission issue, cause templates are being successfully written MOST of the time.

    To me it seems to be a "race condition", where file is being reported as written, when in fact it is not. But then again it is my speculation based on research on Smarty forums and forums here.

    I'v googled extensively for lines 1258 and 1265, and didn't find any helpful hint, let alone thorough explanation why this is happening.
    Any help whould be greatly appreciated.

    System specs bellow: (It may very well be the key to this whole thing)
    Windows server 2003
    IIS6
    PHP 5.2.2
    MSSQL 2005
    SugarCRM 4.5.1c


    Thank you.

  2. #2
    stevena is offline Junior Member
    Join Date
    Jun 2007
    Location
    Oxfordshire. England
    Posts
    1

    Default Re: Smarty errors lines 1258 and 1265

    I too have experienced the same problem.

    Platform:
    Windows server 2003
    IIS6
    PHP 5.2.3
    MYSQL 5
    SugarCRM 4.5.1d (Build 1273

    With an empty SugarCRM\cache\smarty\templates_c\ directory and using the PHP5ISAPI dll the, problems you report appear on the home page where the dashlets should appear and also extensively throughout. The template_c directory does not get populated with many files.

    Switching to the IIS CGI interface solves many of these problems and the cache files appear to be created successfully.

    However in ISS CGI I have a problem with the Studio module, that when selecting the 'Edit View' of a module, the page that is displayed stays as the 'Detail View' so the 'Edit View' cannot be modified.

    If I then switch back to IIS PHP5ISAPI without clearing the template_c cache the views are fine and the 'Edit View' in the Studio module works.

    I regressed back to PHP 5.2.1 (PHP5ISAPI) cleared the cache\smarty\template_c directory and everything seems to be working fine.
    Last edited by stevena; 2007-06-07 at 02:01 PM.

  3. #3
    yakovs is offline Member
    Join Date
    May 2007
    Posts
    7

    Default Re: Smarty errors lines 1258 and 1265

    Hi, stevena
    First of all, thanks for sharing, this is very interesting. I initially went with ISAPI because this tutorial, http://www.peterguy.com/php/install_IIS6.html , which i used to setup sugar, states that ISAPI is the way to go. And it worked for me thus far..
    I've finally got rid of smarty errors by clearing C:\WINDOWS\temp of all places. Turns out smarty (PHP ?) created thousands of .tmp files there, and after clearing them, smarty errors went away. there is no mention of this anywhere I've googled.
    There is not a single sugar related .tmp file created in C:\WINDOWS\temp since then..
    I was able to zero in on those errors after enabling error tracing in system admin, and noticed C:\WINDOWS\temp being mentioned in some error traces.
    Is there any Smarty (PHP?) "smarty" out there who can breifly describe what to expect from smarty on windows?
    I'm still curious about all this. I'm very new to PHP (not to progaramming / administration though :-)), so please excuse
    me if the answer is obvious..
    Thank you.

  4. #4
    auengineer is offline Junior Member
    Join Date
    Jul 2007
    Posts
    1

    Default Re: Smarty errors lines 1258 and 1265

    I had same error with Smarty after installation on windows 2003 std server, php 5.2.3 and sql 2005

    my fix was to add iuser_machine with write permissions to the c:\windows\temp

    This is not an optimal solution and I can't figure out how to change the location of the smarty .tmp files.

  5. #5
    lordforbes is offline Sugar Community Member
    Join Date
    Aug 2006
    Posts
    36

    Default Re: Smarty errors lines 1258 and 1265

    Yes here here to the last post ...

    I had the SAME issue as everyone here having previously only ever run Sugar using the Bitrock installer and risking Windows SBS2003 and IIS for the first time. 4 DAYS LATER I'm finally there with the last error being the blakn home page... My temp directory (C:|temp) didn't have the IUSR permissions so I tried that and voila the dashlets appeared with no other action needed. Try that first ...

  6. #6
    lordforbes is offline Sugar Community Member
    Join Date
    Aug 2006
    Posts
    36

    Default Re: Smarty errors lines 1258 and 1265

    and by the way auengineer the TEMP directory is set in php.ini so if you want to change it you'll have to change the session.save_path= and upload_dir paramteres...

  7. #7
    Kalendrinn is offline Sugar Community Member
    Join Date
    Jul 2007
    Posts
    200

    Default Re: Smarty errors lines 1258 and 1265

    A very big THANK YOU to yakovs and auengineer for figuring out the solution. I am guessing that for the Windows implementation of smarty the developers decided to use Windows\temp as the temporary folder. What I do not know is if you can change this anywhere. I would prefer to use a directory of my choosing.

    At least I know the solution to my problem. Thank you again guys, I appreciate it!
    Win2k3
    SugarCE v5b
    IIS 6
    PHP 5.2.3
    MySQL 5.0.27-community

  8. #8
    Kalendrinn is offline Sugar Community Member
    Join Date
    Jul 2007
    Posts
    200

    Default Re: Smarty errors lines 1258 and 1265

    Win2k3
    SugarCE v5b
    IIS 6
    PHP 5.2.3
    MySQL 5.0.27-community

  9. #9
    dataforge is offline Member
    Join Date
    Jul 2009
    Location
    Tenerife, Spain
    Posts
    6

    Default Re: Smarty errors lines 1258 and 1265

    Quote Originally Posted by auengineer View Post
    I had same error with Smarty after installation on windows 2003 std server, php 5.2.3 and sql 2005

    my fix was to add iuser_machine with write permissions to the c:\windows\temp

    This is not an optimal solution and I can't figure out how to change the location of the smarty .tmp files.
    This worked for me - much appreciated.

  10. #10
    NguyenIvan is offline Junior Member
    Join Date
    Aug 2009
    Posts
    1

    Default Re: Smarty errors lines 1258 and 1265

    After fixing all security issues, the error still shows up in various places ... After all I go to Admin > Repair > Clear Template Data Cache and boom ... all the crap error messages go away! Thank you.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •