Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Wierd random errors

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Installation and Setup
View previous topic :: View next topic  
Author Message
driverfiles
Smarty Rookie


Joined: 10 Aug 2003
Posts: 26
Location: Epe, The Netherlands

PostPosted: Tue Nov 25, 2003 12:37 pm    Post subject: Wierd random errors Reply with quote

Hi Smile

I've just finished a website for a client of mine (im a freelance php programmer). I'm using smarty for 6 months now and it's been great.

But now I've got my client complaining telling me he's getting an error sometimes. I also noticed the error which appears plusminus one out of ten times.

The errors I get:

Warning: Smarty error: problem writing temporary file '/www/ramon/verkoopjijdat/templates_c/%%-13/%%-135052920/3fc33b0971ec9' in /var/opt/zx/apache-1.3.27/htdocs/ramon/verkoopjijdat/libs/Smarty.class.php on line 1042

Warning: touch() [function.touch]: Unable to create file /www/ramon/verkoopjijdat/templates_c/%%-13/%%-135052920/header.tpl.php because No such file or directory in /var/opt/zx/apache-1.3.27/htdocs/ramon/verkoopjijdat/libs/Smarty.class.php on line 1576

Warning: _smarty_include(/www/ramon/verkoopjijdat/templates_c/%%-13/%%-135052920/header.tpl.php) [function.-smarty-include]: failed to create stream: No such file or directory in /var/opt/zx/apache-1.3.27/htdocs/ramon/verkoopjijdat/libs/Smarty.class.php on line 1770

Warning: _smarty_include() [function.-smarty-include]: Failed opening '/www/ramon/verkoopjijdat/templates_c/%%-13/%%-135052920/header.tpl.php' for inclusion (include_path='.:/var/opt/zx/php-4.3.0/lib/php') in /var/opt/zx/apache-1.3.27/htdocs/ramon/verkoopjijdat/libs/Smarty.class.php on line 1770

My index.php:

// Define constants
$UPLOADPATH = "/www/ramon/verkoopjijdat/upload/";
$TEMPLATESPATH = "/www/ramon/verkoopjijdat/templates/";
$WWWPATH = "/www/ramon/verkoopjijdat/";
$MAINEMAIL = "info@verkoopjijdat.nl";
$WWW = "http://www.verkoopjijdat.nl";
$USERNAME = "verkoopjijdat";
$PASSWORD = "*******";

// Require classes and libraries
require './libs/Smarty.class.php';
require './libs/mysql.class';
require 'my_classes.php';
require 'my_library.php';

// Initialize smarty and attributes
$smarty = new Smarty;
$smarty->debugging = false;
$smarty->clear_compiled_tpl();
$smarty->caching = false;
$smarty->compile_check = false;

// Set smarty paths
$smarty->template_dir = $WWWPATH . "templates/";
$smarty->compile_dir = $WWWPATH . "templates_c";
$smarty->config_dir = $WWWPATH . "configs/";
$smarty->cache_dir = $WWWPATH . "cache/";

I'm really confused, I tried everything. Ofcourse I chmodded the templates_c (and templates directory as well) to 777 but it just doesn't
work Sad
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Tue Nov 25, 2003 1:02 pm    Post subject: Reply with quote

dunno. you can try an upgrade to 2.6.0 and see if that helps. you can also set $smarty->use_sub_dirs to false and check if that cures the symptoms. but i don't know where you errors come from.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
driverfiles
Smarty Rookie


Joined: 10 Aug 2003
Posts: 26
Location: Epe, The Netherlands

PostPosted: Wed Nov 26, 2003 9:48 am    Post subject: Reply with quote

I tried it and it seems to work Smile Thanks as always messju Very Happy
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Installation and Setup All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP