Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.7.24
-
Fix Version/s: 4.7.28
-
Component/s: Joomla Integration
-
Labels:
-
Versioning Impact:Patch (backwards-compatible bug fixes)
-
Documentation Required?:None
-
Funding Source:Contributed Code
-
Verified?:Yes
Description
The Administer > System Settings > Directories page fails to load on Joomla 3.8 installations.
An error is logged:
RuntimeException: Cannot resolve path using "cms.root.path" in /var/www/html/membership/administrator/components/com_civicrm/civicrm/Civi/Core/Paths.php on line 104
The problem lies in the cmsRootPath() function in CRM/Utils/System/Joomla.php. This code was added by CRM-18058 and as part of determining the Joomla root path it tests for the existence of a particular file, $siteRoot/libraries/cms/version/version.php.
$includePath = "$siteRoot/libraries/cms/version"; if (file_exists("$includePath/version.php")
In Joomla 3.8.0 that file doesn't exist; it's been moved to $siteRoot/libraries/src/Version.php