Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Ecommerce Error


Reply


4 Posts   1926 Views

Avatar
tomato

Community Member, 13 Posts

1 August 2008 at 1:37pm

Hi

I am new to this but just wondering if anyone can tell me what this error message is usually caused by
Fatal error: Call to a member function validate() on a non-object in /home/hortsoft/domains/hortsoft.co.nz/public_html/sapphire/forms/CompositeField.php on line 213

http://www.hortsoft.co.nz/checkout/?executeForm=OrderForm

I am attempting to integrate PayPal into the shop.

thanks

Avatar
247hosting

Community Member, 4 Posts

12 August 2008 at 6:42pm

Starting to wonder if there is any community support for this.....

Getting the same error.

Out of interest, where did you put:

// Check if the site is in 'live' mode, use the live credentials.
// otherwise, use test credentials instead to be careful.
if(Director::isLive()) {
   PayPalPayment::set_account_email('mymail@mydomain.com');
} else {
   PayPalPayment::set_test_mode('mymailtest@mydomaintest.com');
}

Avatar
Pixel

Community Member, 78 Posts

12 August 2008 at 8:45pm

That goes into your _config file in e commerce module.

Avatar
Briohny

Community Member, 199 Posts

24 September 2008 at 8:39pm

I'm having same problem. If i put this code:

// Check if the site is in 'live' mode, use the live credentials.
// otherwise, use test credentials instead to be careful.
if(Director::isLive()) {
PayPalPayment::set_account_email('mymail@mydomain.com');
} else {
PayPalPayment::set_test_mode('mymailtest@mydomaintest.com');
}

into ecommerce/_config.php i get the following error:

Fatal error: Call to undefined method PayPalPayment::set_account_email() in C:\wamp\www\isa\ecommerce\_config.php on line 30

I really need to get Paypal working. Has anyone solved this?

Thanks