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

Joomla module conflict causes Fatal Error with JSON classes when importing data

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Blocker
    • Resolution: Fixed/Completed
    • Affects Version/s: 2.2.9, 3.0
    • Fix Version/s: 3.1
    • Component/s: CiviMember
    • Labels:
      None

      Description

      When other Joomla modules are installed which use their own JSON Services class (eg. K2, JomComment, Community, MyBlog, Azrul Video Mambot, Azrul System Mambot), there is a fatal error when attempting to import data; 'Fatal error: Cannot redeclare class Services_JSON'.

      In the forum at; http://forum.civicrm.org/index.php/topic,5886.msg44104.html the suggestion was to turn off conflicting modules when importing data. This may not be feasible in a number of instances, and a fix is raised at; http://forum.civicrm.org/index.php/topic,5886.msg44104.html#msg44104

      This fix has been successfully tested in versions 2.2.9 and 3.0

      Attached is a copy of JSON.php with corrections which can be used to replace the current JSON.php

      This issue has not been addressed in v3.0.1 and this patch should provide a fix there too.

        Attachments

        1. JSON.diff
          0.1 kB
          Robin Goodfellow
        2. JSON.php
          26 kB
          Robin Goodfellow

          Activity

            People

            • Assignee:
              rahulbile Rahul Bile
              Reporter:
              dirkhartog Robin Goodfellow
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: