Class 'CheddarGetter_Client_CurlAdapter' not found

tommycrush's Avatar

tommycrush

27 Jul, 2012 06:55 PM

PHP Fatal error: Class 'CheddarGetter_Client_CurlAdapter' not found in CheddarGetter/Client.php on line 87

this is my code

require('Client.php');
require('Client/Exception.php');
require('Response.php');
require('Response/Exception.php');

$CG = new CheddarGetter_Client(

'https://cheddargetter.com/',
'[redacted]',
'[redacted]',
'[redacted]'

);

$data = array(
    'code'      => 'BUSINESS_'.$business_id,
    'firstName' => $user["first_name"],
    'lastName'  => $user["last_name"],
    'email'     => $user["email"],
    'subscription' => array(
        'planCode'      => '050_CUSTOMERS'
    )
);
$customer = $CG->newCustomer($data);
  1. Support Staff 1 Posted by Marc Guyer on 27 Jul, 2012 07:12 PM

    Marc Guyer's Avatar

    Hi Tommy -- There've been some changes to the wrapper since the docs that show the include files. You'll also need to include some other classes:

    require('CheddarGetter/Http/AdapterInterface.php');
    require('CheddarGetter/Http/NativeAdapter.php');
    require('CheddarGetter/Client/AdapterInterface.php');
    require('CheddarGetter/Client/CurlAdapter.php');
    

    I think that's everything. Can you tell me where you got those original require statements? I like to update those docs.

  2. 2 Posted by tommycrush on 27 Jul, 2012 08:45 PM

    tommycrush's Avatar

    gah I'll try to find it. It's slipped out of my history some how.

    And thanks, that resolved the issue.

  3. 3 Posted by tommycrush on 27 Jul, 2012 08:46 PM

    tommycrush's Avatar
  4. Support Staff 4 Posted by Marc Guyer on 27 Jul, 2012 08:58 PM

    Marc Guyer's Avatar

    Much appreciated.

  5. Marc Guyer closed this discussion on 27 Jul, 2012 08:58 PM.

Discussions are closed to public comments.
If you need help with Cheddar please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

28 Mar, 2024 10:45 PM
24 Jan, 2024 08:33 AM
11 Jan, 2024 07:13 AM
30 Nov, 2023 02:07 AM
22 Nov, 2023 08:41 AM