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

samrty3 demo app smarty_internal_templatebase.php can't find

 
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
ivanlai
Smarty n00b


Joined: 20 May 2013
Posts: 2

PostPosted: Mon May 20, 2013 3:23 pm    Post subject: samrty3 demo app smarty_internal_templatebase.php can't find Reply with quote

I begin study PHP and smarty3 few days!

I use nginx + PHP5 ;
I donwload the samrty3 demo in nginx wensite directory!
it is work OK! Smarty-3.1.13/demo/index.php

but when I change the directory Smarty-3.1.13 to other name ,the website is not work, I find blow error:
PHP message: PHP Warning: include_once(): Failed opening '/usr/share/nginx/www/smarty/libs/sysplugins/smarty_internal_data.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/nginx/www/smarty/libs/Smarty.class.php on line 95
PHP message: PHP Warning: include_once(/usr/share/nginx/www/smarty/libs/sysplugins/smarty_internal_templatebase.php): failed to open stream: No such file or directory in /usr/share/nginx/www/smarty/libs/Smarty.class.php on line 96
PHP message: PHP Warning: include_once(): Failed opening '/usr/share/nginx/www/smarty/libs/sysplugins/smarty_internal_templatebase.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/nginx/www/smarty/libs/Smarty.class.php on line 96
PHP message: PHP Warning: include_once(/usr/share/nginx/www/smarty/libs/sysplugins/smarty_internal_template.php): failed to open stream: No such file or directory in /usr/share/nginx/www/smarty/libs/Smarty.class.php on line 97
PHP message: PHP Warning: include_once(): Failed opening '/usr/share/nginx/www/smarty/libs/sysplugins/smarty_internal_template.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/nginx/www/smarty/libs/Smarty.class.php on line 97
PHP message: PHP Warning: include_once(/usr/share/nginx/www/smarty/libs/sysplugins/smarty_resource.php): failed to open stream: No such file or directory in /usr/share/nginx/www/smarty/libs/Smarty.class.php on line 98
PHP message: PHP Warning: include_once(): Failed opening '/usr/share/nginx/www/smarty/libs/sysplugins/smarty_resource.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/nginx/www/smarty/libs/Smarty.class.php on line 98
PHP message: PHP Warning: include_once(/usr/s
2013/05/20 22:59:16 [error] 336#0: *7 upstream sent too big header while reading response header from upstream, client: 192.168.1.177, server: localhost, request: "GET /Smarty-3.1.13/demo/index.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "192.168.1.186"


but when I clear the templates_c and restart the php ,the website work well !

Could someone tell me why!

In my mind any name website will OK! why after change name
is website is not access!

Thanks for any idea!
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Mon May 20, 2013 3:46 pm    Post subject: Reply with quote

If you change any filepaths, it is a good idea to clear the compiled folder too.
Back to top
View user's profile Send private message Visit poster's website
ivanlai
Smarty n00b


Joined: 20 May 2013
Posts: 2

PostPosted: Mon May 20, 2013 3:58 pm    Post subject: Reply with quote

mohrt wrote:
If you change any filepaths, it is a good idea to clear the compiled folder too.



Only clear the compiled folder ,the website also not access, must be restart the php sudo /etc/init.d/php5-fpm restart!

Is any configure will cache in php program?
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Mon May 20, 2013 4:02 pm    Post subject: Reply with quote

compiled files and cache files can certainly be affected by file system changes. if you change any filepaths, plugins, upgrade smarty, etc. always clear the compiled and cache files. I don't think you need to restart apache unless you are storing caches in memory, or you are not testing for op-code cache updates. in that case a restart may be in order too.
Back to top
View user's profile Send private message Visit poster's website
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