CMS MADE SIMPLE FORGE

Frontend Users

 

[#9162] CGExtensions Class Cannot Be Found Error

avatar
Created By: John Beatrice (mww)
Date Submitted: Wed Apr 17 06:09:12 -0400 2013

Assigned To: Robert Campbell (calguy1000)
Version: 1.21.11
CMSMS Version: None
Severity: Critical
Resolution: Works For Me
State: Closed
Summary:
CGExtensions Class Cannot Be Found Error
Detailed Description:
Upgraded to 1.21.11 and got Fatal Error:

[17-Apr-2013 05:49:12] PHP Fatal error:  Class 'CGExtensions' not found in
/htdocs/development/modules/FrontEndUsers/FrontEndUsers.module.php on line 41

I noticed the call to CGExtensions was missing from the top of
FrontEndUsers.module.php
So, I added the following lines from the previous version to fix the error:


$cgextensions = cms_join_path($gCms->config['root_path'],'modules',
			      'CGExtensions','CGExtensions.module.php');
if( !is_readable( $cgextensions ) )
{
echo '<h1><font color="red">ERROR: The CGExtensions module could not be
found.</font></h1>';
  return;
}
require_once($cgextensions);



History

Comments
avatar
Date: 2013-06-23 14:34
Posted By: Robert Campbell (calguy1000)

the call is not necessary any more.  
I have no problems with installing FEU on new installs.
      
avatar
Date: 2013-08-13 10:40
Posted By:  (jmmpc)

Hi. 

I think I have the same issue. Have posted on the forums about it here:
http://forum.cmsmadesimple.org/viewtopic.php?f=7&t=67507

I am running 
CMSMS v1.11.7
CGExtensions v1.37.2

and once installing FEU module v1.21.18 my whole site crashes and nothing loads
(admin or front end). I was advised in the forum to enable the debugging which I
have done, and I'm now presented with

Fatal error: Class 'CGExtensions' not found in
/var/www/vhosts/mydomain.co.uk/modules/FrontEndUsers/FrontEndUsers.module.php on
line 41

This is an old site, but it has been updated at nearly every CMSMS release over
its lifetime. All other modules are working fine. It's only recently that i've
had a requirement for FEU so need it adding to this site.

Regards
James
      
avatar
Date: 2013-12-13 01:15
Posted By: Duketown  (duketown)

The same issue here when trying to use it in combination with module
CartMadeSimple (that depends on module FrontEndUsers).

Running versions are:
CMSMS v1.11.9
CGExtensions v1.38
FEU v1.22.2

I've solved (bypassed) the problem by making a change in
CartMadeSimple.module.php by inserting the lines as John Beatrice mentions
above. I've included the lines before:
class CartMadeSimple extends CMSModule
      
avatar
Date: 2014-07-24 01:30
Posted By: Simon Jones (SimonJ)

I have just done a fresh install and this is still a problem, had I not know
where to go I would be installing another CMS right now. Very poor that this is
still a problem.
      
avatar
Date: 2015-04-29 22:10
Posted By: Guy C. Guckenberger (Guy)

I got the error message and I had to add the above code to FEU to get 1.28 to
install.

Thank you,

Guy C. Guckenberger
      
Updates

Updated: 2013-10-28 16:23
cmsms_version_id: 30005 => -1
state: Open => Closed

Updated: 2013-06-23 14:34
resolution_id: 5 => 11

Updated: 2013-04-17 06:10
description: Upgraded to 1.21.11 and got Fatal Error: [17-Apr-2013 05:49:12] PHP Fatal error: Class 'CGExtensions' not found in /htdocs/development/modules/FrontEndUsers/FrontEndUsers.module.php on line 41 I noticed the call to CGExtensions was missing from the => Upgraded to 1.21.11 and got Fatal Error: [17-Apr-2013 05:49:12] PHP Fatal error: Class 'CGExtensions' not found in /htdocs/development/modules/FrontEndUsers/FrontEndUsers.module.php on line 41 I noticed the call to CGExtensions was missing from the
resolution_id: => 5