Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8140275
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T12:06:36+00:00 2026-06-06T12:06:36+00:00

I’m trying to get the Mailchimp datasource from Springest working, and I’m having issues.

  • 0

I’m trying to get the Mailchimp datasource from Springest working, and I’m having issues. I had to modify some code to get rid of CakePHP errors. Now it happens without errors, but there is no actual API request made to Mailchimp.

The Model, Datasource and Controller function code is exactly the same as in the download from Springest.

The code in my database.php file is:

public $mailchimp = array(
    'datasource' => 'MailchimpSubscriber',
    'apiKey' => '<my mailchimp API key>',
    'defaultListId' => '<my list identifier>',
    'baseUrl' => 'http://us1.api.mailchimp.com/1.2/'
);

I am running CakePHP 2.1.0 on XAMPP on my Macbook Pro.

Anybody got any clues?

==UPDATE==

I’ve uploaded a stripped-out controller here: https://gist.github.com/3011716

Here is the code for my view:

<h2>Subscribe to Mailchimp</h2>
<?php
    echo $this->Form->create('People', array('action' => 'subscribe'));

    echo $this->Form->input('id');
    echo $this->Form->input('emailaddress');
    echo $this->Form->input('FNAME');
    echo $this->Form->input('LNAME');
    echo $this->Form->input('GENDER');

    echo $this->Form->end('Submit');
?>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T12:06:37+00:00Added an answer on June 6, 2026 at 12:06 pm

    Thanks for trying out our Mailchimp Datasource. One of the problems might be that is was written for CakePHP 1.2+ and that a lot of stuff has changed in CakePHP since the 2.0 release.

    Note that we’re still using Cake 1.3 with the datasource and experience no errors whatsoever.

    Did you check out the migration guide from CakePHP 1.3 to 2.0? Right at the bottom there’s some mentioning of changes done to DataSources, so the error might be related to that.

    We’ll try to take it for a spin in Cake 2.0 and see what goes wrong, but in the mean time, this might be helpful.

    ==UPDATE==

    Yup, it was CakePHP 2.0 that was not compatible. I’ve ported the datasource to support CakePHP 2.0, please check the updated repository.

    == SECOND UPDATE==

    You’ve made one error in your view: because you’ve created the form with $this->Form->create('People', array('action' => 'subscribe')); the data of the form will be in the $this->data array with key People whereas it should have the key MailchimpSubscriber. Because there’s no key with that name in your $this->data the MailchimpSubscriber model will ignore the save action. You’ll need to change your submission form in such a way that the submitted data has the right model name as key.

    Another note: you’re now loading the MailchimpSubscriber model twice. The first time in the $uses array in the controller and the second time through the $this->loadModel() method in the controller action. I would only use the latter.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
Basically, what I'm trying to create is a page of div tags, each has
I am trying to understand how to use SyndicationItem to display feed which is
I have just tried to save a simple *.rtf file with some websites and
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am trying to render a haml file in a javascript response like so:
I have this code to decode numeric html entities to the UTF8 equivalent character.
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.