CMS MADE SIMPLE FORGE

Authorize.Net AIM

 

[#10125] Installing AuthNetAim 1.4 causes PHP Fatal Error and crashes front end of content site

avatar
Created By: Jon Reese (iNetSpec)
Date Submitted: Thu Jul 24 12:58:27 -0400 2014

Assigned To: Robert Campbell (calguy1000)
Version: 1.4
CMSMS Version: 1.11.10
Severity: Major
Resolution: Accepted
State: Open
Summary:
Installing AuthNetAim 1.4 causes PHP Fatal Error and crashes front end of content site
Detailed Description:
After Installing the module, I get this error in the httpd log (as well as a
blank 'Home' page):

[Thu Jul 24 10:33:26 2014] [error] [client 127.0.0.1] PHP Fatal error:  Class
'CGExtensions' not found in
C:\\Users\\reesejb\\Documents\\MySandbox\\cmsms\\modules\\CGPaymentGatewayBase\\CGPaymentGatewayBase.module.php
on line 101, referer: http://localhost:55682/

This looks like other similar errors where CGExtensions are missing for various
modules.

System: Windows 7 (32-bit), MySQL 5.1.73, Apache/2.2.15 (Win32) DAV/2 PHP/5.3.3

Installed Dependencies:
CGExtensions			1.38.10
CGPaymentGatewayBase	1.3.1

Have repeated on a clean install several times.

The Paypal gateway seems to install just fine, but need AuthNet for this site..

Thanks in Advance...


History

Comments
avatar
Date: 2014-07-25 18:44
Posted By: Jon Reese (iNetSpec)

The easiest (and dirtiest) fix for this is to edit the AuthNetAim.module.php
file and put the following code above the code that requires the
CGPaymentGatewayBase.  This method is used elsewhere and points to a problem
with the autoload feature failing early in the script process.


$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. 
Please install it</font></h1>';
	return;
}
if( !class_exists('CGExtensions') )
{
  require_once($cgextensions);
}


      
avatar
Date: 2014-07-26 13:03
Posted By: Jon Reese (iNetSpec)

A patch has been made available to temporarily fix this module so that it loads
correctly.

Please see:
ftp://ftp.inetspec.com/pub/download/CMSMS/modules/AuthNetAim/AuthNetAim-1.4-cge.patch


      
avatar
Date: 2014-07-30 10:51
Posted By: Jon Reese (iNetSpec)

This problem can be resolved by using the patch available in bug
http://dev.cmsmadesimple.org/bug/view/10128
      
Updates

Updated: 2014-07-26 13:03
resolution_id: 5 => 6

Updated: 2014-07-25 18:44
resolution_id: => 5