Install New Joomla in Emkompass Hosting

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.

Updated on September 27, 2018

Was this article helpful?

Leave a Comment

Need Help?
Submit a ticket to us and let our professional team assists you

Support Billing Sales
Support
Billing
Sales