Jump to content

Smarty exception hosting on IIS caused by mixed slash and backslash path


Recommended Posts

Hosting Prestashop on IIS, I get write access exception about Cache and Compile Smarty folders.

Looking at exceptions I can notice that the file path where prestashop go to write is generated mixing slash and backslash(/ \), look below:

Fatal error: Uncaught exception 'SmartyException' with message 'unable to write file C:\inetpub\prestashop\Negozio1/cache/smarty/compile\5c\2f\55\wrt53df99bb95d018.79536926' in C:\inetpub\prestashop\Negozio1\tools\smarty\sysplugins\smarty_internal_write_file.php:44 Stack trace: #0 C:\inetpub\prestashop\Negozio1\tools\smarty\sysplugins\smarty_internal_template.php(201): Smarty_Internal_Write_File::writeFile('C:\inetpub\pres...', 'compileTemplateSource() #2 C:\inetpub\prestashop\Negozio1\classes\controller\AdminController.php(1936): Smarty_Internal_TemplateBase->fetch('controllers/mod...') #3 C:\inetpub\prestashop\Negozio1\classes\controller\AdminController.php(2337): AdminControllerCore->initModal() #4 C:\inetpub\prestashop\Negozio1\classes\controller\Controller.php(163): AdminControllerCore->init() #5 C:\inetpub\prestashop\Negozio1\classes\Dispatcher.php(373): Cont in C:\inetpub\prestashop\Negozio1\tools\smarty\sysplugins\smarty_internal_write_file.php on line 44

 

I think that smarty_internal_write_file.php code need to be fixed for running on IIS for Windows Server!

Anyone has solved this problem?

Thanks!

Edited by scippy (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...