|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
driverfiles Smarty Rookie
Joined: 10 Aug 2003 Posts: 26 Location: Epe, The Netherlands
|
Posted: Tue Nov 25, 2003 12:37 pm Post subject: Wierd random errors |
|
|
Hi
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 |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Tue Nov 25, 2003 1:02 pm Post subject: |
|
|
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 |
|
driverfiles Smarty Rookie
Joined: 10 Aug 2003 Posts: 26 Location: Epe, The Netherlands
|
Posted: Wed Nov 26, 2003 9:48 am Post subject: |
|
|
I tried it and it seems to work Thanks as always messju |
|
Back to top |
|
|
|
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
|