Issue
Error message will appear when installing Joomla in Emkompass Hosting
Cause
None
Symptoms
Whenever you installing Joomla in Emkompass Hosting, below error message will appear
Warning: Invalid argument supplied for foreach() in ****\libraries\joomla\language\language.php on line 714
OR
500 Internal Server Error (if the ‘Detailed Errors’ are not enabled for your website)
Workaround
FYI, the clean function in <install.dir>\library\joomla\filesystem\path.php was stripping the leading ‘double’ \ in the UNC path. The \\ in a Windows world is not an escaped \ – and it’s required to find the home directory path, on my hosting server (Not needed on my home test setup, as I have a drive letter designation).
You may modify the IF condition (at line 172 on version 1.5.20) to look as follows:
if (empty($path)) {
$path = JPATH_ROOT;
} ElseIf (($path[0] == ‘\\’ ) && ( $path[1] == ‘\\’ )) {
// Remove double slashes and backslahses and convert all slashes and backslashes to DS
$path = preg_replace(‘#[/\\\\]+#’, $ds, $path);
// Put the UNC-required backslash back in – remember to escape it by double
$path = “\\”.$path;
} else {
// Remove double slashes and backslahses and convert all slashes and backslashes to DS
$path = preg_replace(‘#[/\\\\]+#’, $ds, $path);
}
Additional Information
If you are unable to perform the steps, kindly issue a ticket to our Support Team.