Results 1 to 6 of 6

Thread: Smarty Errors, Please help

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

    Default Smarty Errors, Please help

    So I don't know what happened, but I am getting Smarty errors and nothing that uses Smarty is showing. I don't know if it was an update from MS (rolling back didn't help) or if something just got corrupted or an ini got changed. Any help at all would be GREATLY appreciated. It affects everything on my dev box that uses Smarty. I tried reinstalling to make it go away in case there were just files that somehow got deleted and I got these errors (same type, just different files) on Step 8.

    Error:
    Warning: Smarty::include(cache/smarty/templates_c\%%D4^D4D^D4D49BFB%%PackageForm.tpl.php ) [function.Smarty-include]: failed to open stream: No such file or directory in G:\webs\miscWebs\intranet\include\Smarty\Smarty.cl ass.php on line 1265

    Warning: Smarty::include() [function.include]: Failed opening 'cache/smarty/templates_c\%%D4^D4D^D4D49BFB%%PackageForm.tpl.php ' for inclusion (include_path='.;c:\PHP\PEAR') in G:\webs\miscWebs\intranet\include\Smarty\Smarty.cl ass.php on line 1265

    PHP 5.2.3
    MySQL 5.0.27-community
    SugarCRM OS 4.5.1e
    IIS 6
    Win2k3
    Win2k3
    SugarCE v5b
    IIS 6
    PHP 5.2.3
    MySQL 5.0.27-community

  2. #2
    chrikkers is offline Junior Member
    Join Date
    Aug 2007
    Posts
    2

    Default Re: Smarty Errors, Please help

    Hi.

    I had the same Smarty template issues with my install on Win Server 2k3 using PHP 5.2.3. Reverting to version 5.2.1 seems to fix it (I just overwrote all the relevant DLLs with the older ones). Alternatively I found that the Smarty problems go away if you change the IIS anonymous user account to one with Power User rights, but this is probably not the bast way to go.

    Hope this helps!

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

    Default Re: Smarty Errors, Please help

    I will have to try replacing the PHP files and see if that helps. If you did a reversion back to 5.2.1 then doing a recopy of 5.2.3 should help. It seems to me to be a Windows filesystem and security issue. I want to say it is related to an update that I recently did on my dev box, but I don't know that for sure. It's just convenient that the update was the last thing that was done before it stopped working. I will let you know how it works.

    Btw, the anonymous should NEVER have power user rights...anyone doing that is just asking for their server to go down in flames due to a malicious hacker or the like.
    Win2k3
    SugarCE v5b
    IIS 6
    PHP 5.2.3
    MySQL 5.0.27-community

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

    Default Re: Smarty Errors, Please help

    After some fiddling and another look for an answer, I came across the real answer here in the Sugar forums. Interesting. For the answer, read the below topic:

    https://www.sugarcrm.com/forums/showthread.php?p=85540

    You need to add read/write perms to the C:\Windows\Temp directory for your anonymous IIS account (usually IUSER_). Smarty uses it to create temporary files.
    Win2k3
    SugarCE v5b
    IIS 6
    PHP 5.2.3
    MySQL 5.0.27-community

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

    Default Re: Smarty Errors, Please help

    For more info, check this thread:

    http://www.phpinsider.com/smarty-for...ic.php?p=44704
    Win2k3
    SugarCE v5b
    IIS 6
    PHP 5.2.3
    MySQL 5.0.27-community

  6. #6
    Axel Arnold Bangert is offline Junior Member
    Join Date
    Apr 2011
    Posts
    1

    Default IIS6 - Smarty Errors, Please help

    Hi,
    for IIS6 you have to enter the absolute paths - for example like:
    __________________________________________________ ________________________
    index.php
    __________________________________________________ ________________________
    <?php
    // load Smarty library
    require("C:/Inetpub/wwwroot/smartyTest/smartySource/libs/Smarty.class.php");
    $smarty = new Smarty;
    $smarty->template_dir = "C:/Inetpub/wwwroot/smartyTest/smartySource/demo/templates/";
    $smarty->config_dir = "C:/Inetpub/wwwroot/smartyTest/smartySource/demo/configs/";
    $smarty->cache_dir = "C:/Inetpub/wwwroot/smartyTest/smartySource/demo/cache/";
    $smarty->compile_dir = "C:/Inetpub/wwwroot/smartyTest/smartySource/demo/templates_c/";
    $smarty->assign("name","Axel");
    $smarty->assign("meldung","es klappt!");
    $smarty->display("test.tpl");
    ?>
    __________________________________________________ _________________________
    test.tpl
    __________________________________________________ _________________________
    <html>
    <body>
    Hallo {$name}, {$meldung}
    </body>
    </html>
    __________________________________________________ __________________________
    That works!
    Best regards
    Axel Arnold Bangert - Herzogenrath 2011

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Smarty errors lines 1258 and 1265
    By yakovs in forum Help
    Replies: 10
    Last Post: 2012-03-21, 02:50 PM
  2. Module builder errors
    By gregorvek in forum Help
    Replies: 2
    Last Post: 2007-10-24, 07:38 AM
  3. kick start me on these smarty errors
    By rbolwerk in forum Installation and Upgrade Help
    Replies: 3
    Last Post: 2007-09-04, 04:31 PM
  4. Smarty errors from Bitrock fresh install
    By gremjs03 in forum Help
    Replies: 1
    Last Post: 2007-01-30, 06:10 PM
  5. Smarty Errors
    By Jweldon in forum Help
    Replies: 0
    Last Post: 2006-05-10, 09:49 PM

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
  •