You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I applied a quick fix for now in Smarty.class.php > _realpath function and added this snippet at the top. It basically checks if the path starts with gs:// and returns it as is, and skips all the normalize path processes.
// If GS:// then return direct
if( substr($path, 0, 5) == "gs://" ) {
return $path;
}
Hi,
I'm using setCompileDir("gs://[project]/[bucket]") and somewhere along the way; Smarty is rewriting the compileDir and trying to write to:
[path to index.php]/gs:/[project]/[bucket]
An uncaught Exception was encountered
Type: SmartyException
Message: unable to write file /base/data/home/apps/e~ xxxxx-xxxxx/production-004.390238181818785776/public_html/app/gs:/xxxxx/xxxxx/templates_c/wrt56a6795f58bba5_81503512
Filename: /base/data/home/apps/e~xxxxx-xxxxx/production-004.390238181818785776/system/smarty/libs/sysplugins/smarty_internal_runtime_writefile.php
Line Number: 59
PS: The above gs:// used to work fine with Smarty2; but does not work with latest version Smarty 3.1.29
The text was updated successfully, but these errors were encountered: