Remember me? forgot password | register

SilverStripe Forum

1172 Posts in 334 Topics by 320 members

Jump to:

Website Authors

If this is your first visit, you will need to register before you can post. However, you can browse all messages below.

Community » SilverStripe Forum » Website Authors » Ecommerce Error
Page: 1 go to end Reply
Author Topic: Ecommerce Error 641 views
  • tomato
    tomato's avatar
    Community Member
    4 posts

    Ecommerce Error Link to this post

    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

  • 247hosting
    247hosting's avatar
    Community Member
    4 posts
    2 SilverStripe Sites

    Re: Ecommerce Error Link to this post

    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');
    }

  • Pixel
    avatar
    Community Member
    78 posts
    3 SilverStripe Sites

    Re: Ecommerce Error Link to this post

    That goes into your _config file in e commerce module.

  • Briohny
    avatar
    Community Member
    64 posts

    Re: Ecommerce Error Link to this post

    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

    641 views
go to top Reply

Currently Online:

SonicHedgehog, Hamish, motoservo

Welcome to our latest member: sarahlynn