tasfe / silverstripe-ecommerce

Automatically exported from code.google.com/p/silverstripe-ecommerce
0 stars 0 forks source link

Error showin login form if an AccountPage does not exist #439

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
eCommerce version affected: r3105
SilverStripe version: 2.4.7

Not exactly sure how to reproduce, or why this just popped up now and not 
before.
When attempting to access the CMS via /admin I get the following error:

Fatal error: Call to a member function Link() on a non-object in 
C:\wamp\www\derm-topaz\ecommerce\code\model\extensions\EcommerceSiteTreeExtensio
n.php on line 54

The code on that line is:
$link = $this->EcomConfig()->AccountPage->Link();

Perhaps it should be
$link = $this->EcomConfig()->AccountPageLink(); 

I'm guessing the problem is that I don't have an AccountPage, but 
AccountPageLink() takes care of that possibility.

Original issue reported on code.google.com by st...@klundthosmer.com on 24 Jul 2012 at 9:12

GoogleCodeExporter commented 9 years ago
FIXED - THANK YOU !

Original comment by nfranc...@gmail.com on 9 Sep 2012 at 1:44