After Installing CiviCRM 5.4.0 under IIS on Windows Server, Dashboard Returns White Screen
- Truncate descriptions
The following message was found in the php error log: Uncaught Symfony\Component\Filesystem\Exception\IOException: Cannot rename ...
The file path in the rename contains the two characters "\/" as a folder delimiter, instead of just one, "\". This causes cached files that are created to not be retrieved. There are other placed where the path containing the two characters "\\" as a folder delimiter, instead of just one, "\", is found in Smarty.
Not sure if this behavior is specific to Windows Server 2012, Azure, or what. Patched problem by changing three files:
Symfony - Filesystem.php line 272
if (true !== @rename(str_replace(array("\\\\", "\\/"), "\\", $origin), str_replace(array("\\\\", "\\/"), "\\", $target))) {
Smarty - Smarty.class.php line 1253
$_smarty_compile_path = str_replace(array("\\\\", "\\/"), "\\", $this->_get_compile_path($resource_name));`
Smarty - core.write_file.php line 45
@rename(str_replace(array("\\\\", "\\/"), "\\", $_tmp_file), str_replace(array("\\\\", "\\/"), "\\", $params['filename']));
I realize that Symphony and Smarty are third party code, but I wanted to report it.
- Show labels
- Show closed items