Smarty错误:media_player.php不可读

时间:2011-09-24 21:02:43

标签: php smarty

我将rareculture.net的网站复制到我的本地机器上,以便我可以使用它。该网站使用CS Cart,它使用Smarty,我收到以下错误:

( ! ) Warning: Smarty error:     http://localhost/cscart/skins/projection/customer/media_player.php is not readable in  C:\wamp\www\cscart\lib\templater\Smarty.class.php on line 1095
Call Stack
#   Time    Memory  Function    Location
1   0.0006  676392  {main}( )   ..\index.php:0
2   0.1292  14141136    fn_dispatch( )  ..\index.php:28
3   0.1890  16676848    Templater->display( )   ..\fn.control.php:505
4   0.1891  16677472    Smarty->display( )  ..\class.templater.php:122
5   0.1891  16677616    Smarty->fetch( )    ..\Smarty.class.php:1108
6   0.1920  17133376    include( 'C:\wamp\www\cscart\var\compiled\customer\%%45^45E^45E480CD%%index.tpl.php' )  ..\Smarty.class.php:1258
7   0.2102  17289304    Templater->_smarty_include( )   ..\%%45^45E^45E480CD%%index.tpl.php:394
8   0.2115  17454696    include( 'C:\wamp\www\cscart\var\compiled\customer\%%72^72D^72DAF6E8%%main.tpl.php' )   ..\class.templater.php:88
9   0.2378  17828056    smarty_core_smarty_include_php( )   ..\%%72^72D^72DAF6E8%%main.tpl.php:141
10  0.2384  17852528    smarty_core_get_php_resource( ) ..\core.smarty_include_php.php:25
11  0.2397  17874168    Smarty->trigger_error( )    ..\core.get_php_resource.php:66
12  0.2397  17874432    trigger_error ( )   ..\Smarty.class.php:1095

首先,我的本地服务器的media_player.php路径不正确,它给了我3个错误。在此处更改main.tpl的路径后:

<div id="homepage-meida">
{include_php file='http://localhost/cscart/skins/projection/customer/media_player.php}
</div><!-- #homepage-media -->

我得到了一个错误。我尝试更改Windows 7中的权限,让Everyone完全访问文件和包含文件夹,并且它没有更改任何内容。

有人能指出我正确的方向吗?谢谢。

0 个答案:

没有答案