Page 1 of 1

ORDERS: Blank Confirmation page if Payment Gateway selected

Posted: Wed Nov 25, 2015 8:20 am
by spinfold
Hi,

With the release of CMSMS2.0, I've been looking again at the CGeCommerce series of modules. I've had problems with various versions/features of this series of modules for the past two years, and whenever I do an eCommerce site I have to use a particular combination of modules from late 2013 to get everything I need to work.

So with the release of CMSMS2, I've been looking again to see if it's suitable for use on a new eCommerce site I will be starting in the new year.

The only problem I've encountered so far (with only the Promotions module left to fully test) is that when a payment gateway is selected in CGECommerceBase, the Orders module doesn't show the final confirmation page. Here is that page WITHOUT a payment gateway selected:

Image

As soon as I select a payment gateway in CGECommerceBase, I just get a blank page:

Image

I've tried with both StripeGateway and PayPalGateway, both of which appear to be correctly configured.

When trying with a payment gateway selected, the PHP error log states:
PHP Fatal error: Call to a member function fetch() on null in /home/stuartp/public_html/cmsms2/lib/classes/internal/module_support/modtemplates.inc.php on line 173
Here is that code (line 173 is the one that starts $result, five lines up from the bottom):

Code: Select all

/**
 * @access private
 */
function cms_module_ProcessTemplateFromDatabase(&$modinstance, $tpl_name, $designation = '', $cache = false, $modulename = '')
{
    $smarty = $modinstance->GetActionTemplateObject();
	if( $modulename == '' ) $modulename = $modinstance->GetName();

	$oldcache = $smarty->caching;
	if( $smarty->caching != Smarty::CACHING_OFF ) {
		$smarty->caching = ($modinstance->can_cache_output())?Smarty::CACHING_LIFETIME_CURRENT:Smarty::CACHING_OFF;
	}
	$result = $smarty->fetch('module_db_tpl:'.$modulename.';'.$tpl_name, '', ($designation != ''?$designation:$modulename));
	$smarty->caching = $oldcache;

	return $result;
}
Here is my CMSMS config:
CMSMS Version 2.0.1.1

Installed Modules
CGSimpleSmarty 2.0.2
CMSContentManager 1.0.1
DesignManager 1.0.1
FileManager 1.5.1
JQueryTools 1.3.7
MicroTiny 2.0
ModuleManager 2.0
Navigator 1.0.1
PaypalGateway 2.4
Search 1.50.1
CMSMailer 5.2.4
CGExtensions 1.49.11
CGEcommerceBase 1.5.2
CGPaymentGatewayBase 1.3.1
CGSmartImage 1.20.5
Cart2 1.1.3
FrontEndUsers 1.30.6
Orders 1.16.5
DestinationBasedShipping 1.1.2
FRTaxes 1.2.2
FRShipping 1.2.3
MinPriceHandling 1.0.1
Products 2.24.2
PriceBasedShipping 1.1.3
Promotions 1.2
SelfRegistration 1.9.3
StripeGateway 1.1.1
As this is a pure testing sandbox, I can grant access to FTP and CMSMS Admin if you'd like to check this out yourself. Let me know via PM.

Re: ORDERS: Blank Confirmation page if Payment Gateway selec

Posted: Thu Nov 26, 2015 11:55 am
by spinfold
No-one else has this problem?

Re: ORDERS: Blank Confirmation page if Payment Gateway selec

Posted: Thu Nov 26, 2015 12:01 pm
by Jo Morg
I believe this has been fixed in SVN already and should be in next release of CMSMS.

Re: ORDERS: Blank Confirmation page if Payment Gateway selec

Posted: Thu Nov 26, 2015 7:48 pm
by spinfold
Thanks. Any idea of release date? And any link to the source of this bug report/SVN entry?

(In my testing with Promotions, I also discovered that some condition/reward combinations also triggered this blank page error)

Stuart

Re: ORDERS: Blank Confirmation page if Payment Gateway selec

Posted: Tue Dec 15, 2015 5:23 pm
by spinfold
Does anyone know if this is fixed with CMSMS 2.1?

Re: ORDERS: Blank Confirmation page if Payment Gateway selec

Posted: Fri Dec 18, 2015 12:00 pm
by spinfold
Just to confirm to anyone else with the same problem, this issue appears to be fixed in CMSMS 2.1

Stuart