Well by default Smarty writes the compiled templates to the file system, (in the templates_c) folder.
http://www.smarty.net/docsv2/en/variable.compile.dir.tpl But on appengine, the filesystem is read only. So smarty won't be able write to the compiled versions. You will have to redirect smarty to write the compiled templates (and cached version if use caching!) to somewhere else. I know there are plugins for putting the cached files in memcache, bit not sure about the compiled dir. Because it must work by include, it really is expecting filesystem. havnt tried it, but it should be possible to use Google Storage for your compiled template directory https://cloud.google.com/appengine/docs/php/googlestorage/ https://cloud.google.com/appengine/docs/php/googlestorage/advanced#using_php_include_and_require On 25 November 2014 at 10:39, <[email protected]> wrote: > 03:54 PM Application: **-deals; version: 1 > 03:54 PM Host: appengine.google.com > 03:54 PM > Starting update of app: **-deals, version: 1 > 03:54 PM Getting current resource limits. > Email: dev@**.lk > Password for dev@**.lk: > 03:55 PM Scanning files on local disk. > 2014-11-25 15:55:11,224 ERROR appcfg.py:1912 Invalid character in > filename: includes/smarty/templates_c/%%45^45E^45E480CD%%index.tpl.php > 03:55 PM Scanned 500 files. > 03:55 PM Scanned 1000 files. > 03:55 PM Scanned 1500 files. > 03:55 PM Cloning 1681 application files. > 03:55 PM Compilation starting. > 03:55 PM Compilation completed. > 03:55 PM Starting deployment. > 03:55 PM Checking if deployment succeeded. > 03:55 PM Deployment successful. > 03:55 PM Checking if updated app version is serving. > 03:55 PM Completed update of app: **-deals, version: 1 > > > This would be my ERROR: > > PHP Warning: > include(/base/data/home/apps/s~**-deals/1.380349057364915830/includes/smarty/templates_c/%%45^45E^45E480CD%%index.tpl.php): > failed to open stream: No such file or directory in > /base/data/home/apps/s~**-deals/1.380349057364915830/includes/smarty/libs/Smarty.class.php > on line 1254 > W 15:47:53.476 > PHP Warning: include(): Failed opening > '/base/data/home/apps/s~**-deals/1.380349057364915830/includes/smarty/templates_c/%%45^45E^45E480CD%%index.tpl.php' > for inclusion > (include_path='.;/base/data/home/apps/s~**-deals/1.380349057364915830/;/base/data/home/runtimes/php/sdk') > in > /base/data/home/apps/s~**-deals/1.380349057364915830/includes/smarty/libs/Smarty.class.php > on line 1254 > I 15:47:53.479 > This request caused a new process to be started for your application, and > thus caused your application code to be loaded for the first time. This > request may thus take longer and use more CPU than a typical request for > your application. > > I'm new to google app engine and SMARTY and I have no idea what to do. > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/google-appengine. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
