CMS MADE SIMPLE FORGE

CGExtensions

 

[#5767] unable to install other module after the version of CgExtension 1.21.5 [update : it's now ok in 1.21.6]

avatar
Created By: bess (bess)
Date Submitted: Sun Nov 28 08:01:46 -0500 2010

Assigned To: Robert Campbell (calguy1000)
Version: 1.21.5
CMSMS Version: None
Severity: Major
Resolution: Fixed
State: Closed
Summary:
unable to install other module after the version of CgExtension 1.21.5 [update : it's now ok in 1.21.6]
Detailed Description:
update with success last version of CGExtension. 

But when i'm trying to install another module with the ModuleManager i receive
this message :

Fatal error: Uncaught exception 'Exception' with message 'Instance of
cms_filecache_driver already exists' in
/home/cmsmadesimple2/www/modules/CGExtensions/lib/class.cms_filecache_driver.php:18
Stack trace:
#0 /home/cmsmadesimple2/www/modules/CGExtensions/CGExtensions.module.php(77):
cms_filecache_driver->__construct(Array)
#1 /home/cmsmadesimple2/www/lib/classes/class.moduleloader.inc.php(84):
CGExtensions->__construct()
#2
/home/cmsmadesimple2/www/modules/ModuleManager/ModuleManager.module.php(1539):
ModuleLoader->LoadModules(true)
#3
/home/cmsmadesimple2/www/modules/ModuleManager/ModuleManager.module.php(1125):
ModuleManager->_GetInstalledModules(true, true)
#4
/home/cmsmadesimple2/www/modules/ModuleManager/ModuleManager.module.php(1182):
ModuleManager->_DetermineUnfulfilledDependencies(Array)
#5 /home/cmsmadesimple2/www/modules/ModuleManager/ModuleManager.module.php(317):
ModuleManager->_DoRecursiveInstall('m1_', Array, '') #6
/home/cmsmadesimple2/www/lib/classes/class.module.inc.php(2038):
ModuleManager->DoAction('in in
/home/cmsmadesimple2/www/modules/CGExtensions/lib/class.cms_filecache_driver.php
on line 18


History

Comments
avatar
Date: 2010-11-28 08:03
Posted By: bess (bess)

can avoid this error 

in /modules/cGExtension/lib/clss.cms_filecache_driver.php

line 15 : change

  public function __construct($opts)
  {
    if( is_object(self::$_instance) )
      throw new Exception('Instance of cms_filecache_driver already exists');

by

  public function __construct($opts)
  {
    if( is_object(self::$_instance) )
      return;

it's may not be very clean but i can install other module.
      
avatar
Date: 2010-11-30 10:20
Posted By: bess (bess)

it's ok in the next version : 1.21.6
      
Updates

Updated: 2010-11-30 10:22
summary: unable to install other module after this last version of CgExtension => unable to install other module after the version of CgExtension 1.21.5 [update : it's now ok in 1.21.6]
resolution_id: 5 => 7
state: Open => Closed

Updated: 2010-11-28 08:03
summary: unable to install other module after this last version of => unable to install other module after this last version of CgExtension
resolution_id: => 5