Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-21208

Directories configuration page broken on Joomla 3.8

    Details

    • 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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              andrewpthompson Andrew Thompson
            • Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: