 |
Smarty
The discussions here are for Smarty, a template engine for the PHP programming language. Dedicated server web hosting provided by Guru-host.eu. |
| View previous topic :: View next topic |
| Author |
Message |
bonduu01 Smarty n00b
Joined: 26 Jul 2012 Posts: 4
|
Posted: Thu Jul 26, 2012 12:25 pm Post subject: Beginning PHP and MySQL E-Commerce-ERRNO: 2 |
|
|
Help wanted: I have been reading Beginning PHP and MySQL E-Commerce to build my website, I am not a good php programmer and i have a problem I have been battling to resolve in chapter 4.
This is the error i receive below:
ERRNO: 2
TEXT: unlink(C:\tshirtshop/presentation/templates_c\%%41^412^412F4E3D%%store_front.tpl.php): No such file or directory
LOCATION: C:\tshirtshop\libs\smarty\internals\core.write_file.php, line 44, at July 26, 2012, 2:09 pm
Showing backtrace:
unlink("C:\tshirtshop/presentation/templates_c\%%41^412^412F4E3D%%store_...") # line 44, file: C:\tshirtshop\libs\smarty\internals\core.write_file.php
smarty_core_write_file(Array[3], Object: Application) # line 29, file: C:\tshirtshop\libs\smarty\internals\core.write_compiled_resource.php
smarty_core_write_compiled_resource(Array[2], Object: Application) # line 1431, file: C:\tshirtshop\libs\smarty\Smarty.class.php
Smarty._compile_resource("store_front.tpl", "C:\tshirtshop/presentation/templates_c\%%41^412^412F4E3D%%store_...") # line 1254, file: C:\tshirtshop\libs\smarty\Smarty.class.php
Smarty.fetch("store_front.tpl", null, null, true) # line 1106, file: C:\tshirtshop\libs\smarty\Smarty.class.php
Smarty.display("store_front.tpl") # line 23, file: C:\tshirtshop\index.php
The version of smarty am using is 2.6.0 and xampp. |
|
| Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7038 Location: Lincoln Nebraska, USA
|
Posted: Thu Jul 26, 2012 12:35 pm Post subject: |
|
|
| I'm guessing it is a file permission problem on the templates_c dir. |
|
| Back to top |
|
bonduu01 Smarty n00b
Joined: 26 Jul 2012 Posts: 4
|
Posted: Thu Jul 26, 2012 12:46 pm Post subject: |
|
|
| mohrt wrote: | | I'm guessing it is a file permission problem on the templates_c dir. |
Please help, how do I resolve it? the codes seems to b in good order. I have read through help Blogs that I should configure libs\smarty\internals\core.write_file by inputting:
if (file_exists($params['filename']))
@unlink($params['filename']);
@rename($_tmp_file, $params['filename']);
@chmod($params['filename'], $smarty->_file_perms);
return true;
}
Did just that but still get errors. |
|
| Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7038 Location: Lincoln Nebraska, USA
|
Posted: Thu Jul 26, 2012 1:19 pm Post subject: |
|
|
| google for windows file permissions, learn how to adjust them. I don't use windows, I'm the wrong person to ask. |
|
| Back to top |
|
bonduu01 Smarty n00b
Joined: 26 Jul 2012 Posts: 4
|
Posted: Thu Jul 26, 2012 1:37 pm Post subject: |
|
|
| mohrt wrote: | | google for windows file permissions, learn how to adjust them. I don't use windows, I'm the wrong person to ask. |
ok |
|
| 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
|