CMS MADE SIMPLE FORGE

AdvancedContent

 

[#7726] Fatal error: Class 'ac_admin_ops' not found

avatar
Created By: jean-christophe ghio (jissey)
Date Submitted: Thu Mar 22 05:05:00 -0400 2012

Assigned To: Georg Busch (nan)
Version: AdvancedContent 0.9.3
CMSMS Version: 1.10.2
Severity: Critical
Resolution: Fixed
State: Closed
Summary:
Fatal error: Class 'ac_admin_ops' not found
Detailed Description:
Fatal error: Class 'ac_admin_ops' not found in
/homez.xx/xxxxxl/www/modules/AdvancedContent/method.install.php on line 66

CMS version : 1.10.3

Install OK with XML method but site down!!! :
Fatal error: Cannot break/continue 1 level in
/homez.xx/xxxx/www/lib/classes/contenttypes/Content.inc.php on line 793


History

Comments
avatar
Date: 2012-03-22 05:47
Posted By: Georg Busch (nan)

Dear Jean

The error "Class 'ac_admin_ops' not found" ist fixed.

The error "Cannot break/continue 1 level in
/lib/classes/contenttypes/Content.inc.php on line 793" has nothing to do with
AdvancedContent but with the core content type. You're using a {content_module}
Block where the module is not installed.
      
avatar
Date: 2012-03-22 05:57
Posted By: jean-christophe ghio (jissey)

yeah!
Thanks a lot!!
"You're using a {content_module} Block where the module is not installed."
Yes that's what I've just seen...shame on me...

Many thanks, GB
      
avatar
Date: 2012-03-28 12:40
Posted By: Christoph Huhn (codemonkey)

I just did a clean install of CMSMS v1.10.3 and tried to install AdvancedContent
v0.9.3 via ModuleManager.

It still breaks with "Fatal error: Class 'ac_admin_ops' not found". I tracked it
down to Line 303 in AdvancedContent.module.php:

After changing

$fn     = cms_join_path($config['root_path'], 'module_custom',
'AdvancedContent', 'lib', 'class.'.$classname.'.php');

to

$fn     = cms_join_path($config['root_path'], 'modules', 'AdvancedContent',
'lib', 'class.'.$classname.'.php');

it's working. Would have been easier with a 

trigger_error("$fn not found!\n");

before the "return FALSE;"
      
avatar
Date: 2012-04-02 17:47
Posted By: Georg Busch (nan)

Hm. Interesting.
This should be loaded automatically by the CMSms core.
That's why its not in the AdvancedContent.module.php.
The problem seems to be a general issue in CMSms autoloading stuff.
The autoloader loads only classes of modules that are *already installed*.
Since i'm accessing a class of AdvancedContent *during* the install - wich means
*before* it is installed - the core does not load this class automatically. So
it breaks. Silly me.
Not sure if this should be fixed in CMSms core or if module developers have to
take care of this by themselves. (I think the latter might be the real deal here
but i will ask the devs for an addittional advise.)

Anyway thanks for report.
I fixed this in SVN.
But be careful with the latest SVN release since it is already adapted for CMSms
1.11
It *should* also work with CMSms 1.10 but i did not enough tests yet.
If you have any trouble downgrade (wich means uninstall+remove+reinstall older
version) and take a look in the AdvancedContent.module.php of the SVN. At the
bottom of the file there is an autoloader function "AdvancedContent_Autoloader".
Just copy and paste this to the file of the older version.

Kind regards.
      
avatar
Date: 2013-02-04 14:55
Posted By: Georg Busch (nan)

Version 0.9.4.3 is out.
      
Updates

Updated: 2013-02-04 14:55
state: Open => Closed

Updated: 2012-04-02 18:22
resolution_id: 9 => 7

Updated: 2012-03-22 05:48
resolution_id: 5 => 9

Updated: 2012-03-22 05:47
resolution_id: => 5