Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
Smarty temp files ending up in ./tmp instead of pnTemp
  • Posted: 04.02.2006, 09:12
     
    shiner68467
    rank:
    Freshman Freshman
    registered:
     May 2004
    Status:
    offline
    last visit:
    05.05.06
    Posts:
    11
    It was pointed out to me that the module I developed tRSSNews is placing Smarty temp files in ./tmp instead of pnTemp. The temp files are not being deleted either. This is leading to the tmp directory continuously growing. I've been unable to track down when it's happening exactly, but there are no variables overwriting the pnTemp variable. It seems to be happening with PN750 and up. BTW the files appear to be the htm templates and the PHP source code (ie. pnadminapi.php) just with tmp names. Nothing seems to be modified. Does anyone have a clue why this might be happening, or suggestions of where to start looking. I'm using the latest PostNuke .761 and the pnTemp variable is set in config.php. This is not a fluke as it seems to be happening on other's installs.

    Thanks for any help.
    Shiner

    PS. One of the tmp files on another persons setup appears as:

    Code

    <?php /* Smarty version 2.6.4-dev, created on 2006-02-02 15:50:36
             compiled from trssnews_user_item_row.htm */
    ?>

    This does not occur with my setup.

    **Update** I did notice that the versions of the files appearing in ./tmp are old versions, like really old. Have no clue where they are coming from.
  • Posted: 04.02.2006, 17:41
     
    Simon
    rank:
    Steering Committee Steering Committee
    registered:
     December 2002
    Status:
    offline
    last visit:
    02.12.08
    Posts:
    13418
    I take it that your module uses pnRender rather than its own Smarty installation?

    --
    Regards,
    Simon

    itbegins.co.uk - Zikula Consulting

    Please read the Support Guide
  • Posted: 05.02.2006, 00:46
     
    shiner68467
    rank:
    Freshman Freshman
    registered:
     May 2004
    Status:
    offline
    last visit:
    05.05.06
    Posts:
    11
    Yah it does use pnRender and not it's own Smarty implementation. I did check the temp variable in Smarty and it says it's writing to pnTemp/pnRender_compiled and I varified this. What's really interesting is that the temp files that are appearing are from versions of the software that in some cases are almost 2 months old. None of the installs of tRSSNews are using these old versions. The source is available at http://www.trever.org and the files that are showing up are both the PHP files and htm (templates)

    Shiner

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula