Page 1 of 2

CGEcommerce admin page shows blank after option change

Posted: Thu Jul 14, 2011 1:10 pm
by wazman21
Hello all, I hope someone has a solution or tip for my problem.

I have had the Paypal payment gateway set as the "Online Payment Gateway Module:" in the Payment Settings tab of CGEcommerceBase for a while during development. The other day I updated several Ecommerce modules as they became available, site never skipped a beat.

Tonight when tinkering with options, I noticed that CGEcommerceBase showed "none" as the payment gateway to use - despite the fact Paypal buttons appeared when checking out. Naturally, I altered the dropdown to Paypal Gateway and.... broken :-(

Now my CGEcommerceBase page appears as a blank page, none of the tabs clickable, and on the front end, that Add-to-cart option breaks the page.

I have removed and re-installed the previous version of CGEcommerceBase (1.3.1), but that hasn;t solved the problem, so I repeated the process, and have left no payment gateway available for now.

Has anyone encountered the problem, or know which module has the issue so I can rollback that particular module?

System details below:

CMS Version
1.9.4.2

Installed Modules
CMSMailer
2.0.1
FileManager
1.1.0
MenuManager
1.7.6
ModuleManager
1.4.2
News
2.11.3
nuSOAP
1.0.2
Printing
1.1.2
Search
1.6.10
ThemeManager
1.1.4
TinyMCE
2.8.4
CGExtensions
1.26.3
CGEcommerceBase
1.3.1
Cart
1.8.1
CGSimpleSmarty
1.4.8
FrontEndUsers
1.12.16
CustomContent
1.7.3
SelfRegistration
1.6.10
Products
2.13.1
PaypalGateway
2.3.5
CGPaymentGatewayBase
1.0.10
FRShipping
1.2.1
Orders
1.12.8
FormBuilder
0.7
JQueryTools
1.0.10

Current PHP Version (phpversion):
5.3.3

I tried looking for a muddled option in PHPMYADMIN also, but I don;t really know where to start there.
Thanks in advance for any help.

Re: CGEcommerce admin page shows blank after option change

Posted: Thu Jul 14, 2011 10:54 pm
by wazman21
To update, the only function the *appears* genuinely broken on the front end is adding an item to the shopping cart - I can view the (empty) cart, view the {Orders} page and products, but adding an item to cart sends everything haywire.

There is no "error" on the page as such - the page source code stops where the content area should start, so that must be where the error (whatever it is) begins :-(

Re: CGEcommerce admin page shows blank after option change

Posted: Sun Jul 17, 2011 8:27 am
by Lahuindai
I am getting the same problem as well now with the latest versions and downgrading does not solve the problem as above. However when switching debug on I get the following;

otice: Undefined property: cg_ecomm_cartitem::$_item_tota in C:\Domains\dfa.org.nz\wwwroot\modules\CGEcommerceBase\lib\class.cg_ecomm_cartitem.php on line 271

Notice: Undefined property: cg_ecomm_cartitem::$_item_tota in C:\Domains\dfa.org.nz\wwwroot\modules\CGEcommerceBase\lib\class.cg_ecomm_cartitem.php on line 271

Notice: Undefined property: cg_ecomm_cartitem::$_item_tota in C:\Domains\dfa.org.nz\wwwroot\modules\CGEcommerceBase\lib\class.cg_ecomm_cartitem.php on line 271

Notice: Undefined property: cg_ecomm_cartitem::$_item_tota in C:\Domains\dfa.org.nz\wwwroot\modules\CGEcommerceBase\lib\class.cg_ecomm_cartitem.php on line 271

Notice: Undefined property: cg_ecomm_cartitem::$_item_tota in C:\Domains\dfa.org.nz\wwwroot\modules\CGEcommerceBase\lib\class.cg_ecomm_cartitem.php on line 271

Notice: Undefined property: cg_ecomm_cartitem::$_item_tota in C:\Domains\dfa.org.nz\wwwroot\modules\CGEcommerceBase\lib\class.cg_ecomm_cartitem.php on line 271

Notice: Undefined property: line_item::$_master_price in C:\Domains\dfa.org.nz\wwwroot\modules\Orders\lib\class.line_item.php on line 108

Fatal error: Call to undefined method Orders::RequiresCreditCardInfo() in C:\Domains\dfa.org.nz\wwwroot\modules\Orders\lib\class.orders_helper.php on line 137

Any help would be appreciated

Re: CGEcommerce admin page shows blank after option change

Posted: Mon Jul 18, 2011 6:28 pm
by caciavar
I'm seeing the same behaviour.

This is a new store with all the latest ecommerce modules installed, except for "products" which is a svn behind.

I was working in stages, and I installed the paypalgateway last. Everything got broken when I set the payment gateway in CGEcommerceBase. If you look at the source for that page, you see the following error at the bottom:

<b>Fatal error</b>: Call to undefined method CGEcommerceBase::get_cartitem_policy() in <b>/home1/thebigfi/public_html/jwfoods/modules/CGEcommerceBase/lib/class.cg_ecomm.php</b> on line <b>291</b><br />

I installed the following versions of modules, because they have all worked for me in the past:

Cart
1.7.5

CGEcommerceBase
1.2.4

CGPaymentGatewayBase
1.0.9

PaypalGateway
2.3.2

Products
2.12.1


The only difference is the versions of the followig (these are all new):

CGSimple Smarty
1.4.8

CGExtensions
1.26.3

CMSMS
1.9.4.2


I'm going to try rolling these back to see what happens.

Re: CGEcommerce admin page shows blank after option change

Posted: Mon Jul 18, 2011 8:08 pm
by caciavar
Looks like it is not broken if using CGExtensions 1.25.3

I haven't had time to do extensive testing but at least CGEcommerce Base is not showing that error message anymore, and I can set the paypalpayment gateway.

Re: CGEcommerce admin page shows blank after option change

Posted: Mon Jul 18, 2011 10:37 pm
by wazman21
Love your work! I was hoping to not have to downgrade such a critical module with so many dependents, but going to be the only way by the looks of it!

Re: CGEcommerce admin page shows blank after option change

Posted: Tue Jul 19, 2011 8:39 am
by wazman21
I can confirm that CGExtensions 1.25.3 does NOT have the problem - I have rolled back versions and the Ecommerce problem is completely solved. Hopefully Calguy stumbles upon this forum post and notices the issues. I had to re-enter every product back to the store though due to the nature of the rollback, so be aware it's painful.

Re: CGEcommerce admin page shows blank after option change

Posted: Tue Jul 19, 2011 9:52 pm
by Lahuindai
Rolling back is not an option for me as I have created many profiles in FEU etc.

From what I have been able to figure out the problem arises due to the get_cartitem_policy function and if you trace back to the get_paygateway (or somesuch) call not returning the PaypalGateway instance. I hard coded 'PaypalGateway' into the call and things started working. The call was returning 0 instead of the Gateway name. I can post my fixed file if anybody is interested.

Re: CGEcommerce admin page shows blank after option change

Posted: Tue Jul 19, 2011 10:18 pm
by wazman21
I'd love see the fixed file just in case, thanks!

Re: CGEcommerce admin page shows blank after option change

Posted: Tue Jul 19, 2011 10:46 pm
by Lahuindai
I'll do a diff later today and post the changes, buggered if I can remember the exact files, made the changes late at night.

Re: CGEcommerce admin page shows blank after option change

Posted: Thu Jul 21, 2011 3:43 pm
by kube
Same problem here ! Does your fix break the paypal checkout ? CAN you post it here plz ?

Re: CGEcommerce admin page shows blank after option change

Posted: Thu Jul 21, 2011 7:39 pm
by Lahuindai
Yes it does break the paypal checkout, i'm busy trying to figure that one out. I'll post what I have today and if somebody has any ideas about the paypal that would be most appreciated.

Re: CGEcommerce admin page shows blank after option change

Posted: Fri Jul 22, 2011 9:43 am
by Coldman
Hi there!
Just so you know
http://forum.cmsmadesimple.org/viewtopi ... 65#p238765
OFFICIAL:

For the reasons discussed above, among others, the policy is now official. As of September 2010, the CMSMS Dev Team agreed that the posting of, discussion of, or promotion of hacks to CMSMS or it's modules would not be permitted on this forum. Any such posts will be deleted.

Just to let you know. I should have posted this 3 months ago... just never got around to it. I apologize for that.
EDIT:
If you found a bug please post in forge. In your case post here http://dev.cmsmadesimple.org/bug/list/830

/Coldman

Re: CGEcommerce admin page shows blank after option change

Posted: Fri Jul 22, 2011 8:37 pm
by Lahuindai
My apology Coldman, i will post my findings in a bug report.

Re: CGEcommerce admin page shows blank after option change

Posted: Mon Aug 01, 2011 9:21 pm
by rab
I get same error when selecting Authorize.net/AIM in CGEcommerceBase, so not sure the error has anything to do with PayPal.