CRM-13213 Error configuring CiviCRM language on Joomla 3.1.x

    Details

      Description

      At CiviCRM 4.3.5 working on Joomla! 3.1.5 with PHP version is 5.3.26, on trying to change the default language to something different then English, the system gives error as follows:

      Fatal error: Call to undefined method JRegistry::getValue() in com_civicrm/civicrm/CRM/Utils/System/Joomla.php on line 567

      Giving a look at the forums, this happened to others:
      http://forum.civicrm.org/index.php?topic=28895.0

      I couldn't reproduce the proposed solution, so I keep searching and found other problems, outside CiviCRM, with "undefined method JRegistry::getValue()" and the proposal to change "getValue" to "get". This worked for me.

      I can't check this in the demo, as long as that is Joomla! 2.x.

      I'm submitting the diff of that solution.

      Thanks!

        Attachments

          Activity

          [CRM-13213] Error configuring CiviCRM language on Joomla 3.1.x
          Pratik Joshi added a comment - - edited

          Hello Diego,

          Thanks for submitting the patch. Did some minor modifcation ( please refer to https://github.com/civicrm/civicrm-core/pull/1425 ).

          Can you please verify if this patch works for you : https://github.com/pratik-joshi/civicrm-core/commit/4965d8e99cec6b2777386c9c8d0edeaa241cf3f6 .

          Thanks,
          Pratik.

          Diego Viegas added a comment -

          Hello Pratik,

          Yes, this code worked for me on both Joomla! 2.5.14 and 3.1.5.

          Thanks,
          Diego

            People

            • Assignee:
              Pratik Joshi
              Reporter:
              Diego Viegas

              Dates

              • Created:
                Updated:
                Resolved: