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.