lewiswharf / mailchimp Goto Github PK
View Code? Open in Web Editor NEWSupports subscribing a new address, first name, last name to your MailChimp account.
Home Page: http://casadelewis.com
License: Other
Supports subscribing a new address, first name, last name to your MailChimp account.
Home Page: http://casadelewis.com
License: Other
Hi!
I get an issue with this extension. I can't get the "success result" also when I fill out all the fields correctly. The event is triggered (an email is sent to the user to confirm) but in /?debug xml the "events" node is null, there's only:
So I can't return the success message to users.
I use other fields in my form besides name and email. Is it possible that with other fields in the form, "the extension" doesn't create the //events/mailchimp[@Result = 'success'] node?
The //events/mailchimp[@Result = 'error'] works instead, this node is generated!!
Can you help me please?
Mailchimp has a new API http://apidocs.mailchimp.com/api/downloads/#php
I found that this wrapper would be enough https://github.com/drewm/mailchimp-api
I may update the extension in a near future, I just wanted to share what I found.
$(function () {
$('#the-form').mailChimp({
complete: completeCallback,
error: errorCallback
})
});
Should be mailchimp without capital letter
On the last pull request, in the commit named "Code style + whitespace fixes", the definition of the abstract class JSONPage was removed in content.login.php. I think this part of the code is mandatory because otherwise, the Symphony JSONPage class will be used and will generate an error.
A folder ("Drewm") has been added for the mailchimp api. SO the include path in the event does not point to the right location. Also, in the same event, the "use" line must include the Drewm namspace (\Drewm\MailChimp) for it to work in php 5.3
Symphony 2.6.7
Error when trying to access Symphony > Events
Symphony Warning: The use statement with non-compound name 'MailChimp' has no effect
event.mailchimp.php
Edit: This issue ended up focussing in a different area, the title now reflects this.
I've set the extension up as described, and have included the subscribe.js file before my primary js doc (referenced in that error, as main.min.js
)
However I'm getting the following error on page load:
Uncaught ReferenceError: data is not defined main.min.js:2 (anonymous function)
I've left the form (id, structure etc.) as it is in the docs to avoid any discrepancies.
The docs throw me off a little here:
Note: In the callbacks (error and complete) the context of the function (the "this" keyword) will be set to #the-form. The "data" parameters contains all the values in the event XML as JSON.
There is no this
usage in the example, so what's it referencing?
Feel like I'm maybe missing something!
Using the extension to add an email address to the subscriber list where the email address already exists in the list results in a Symphony error page.
Argument 1 passed to XMLElement::appendChild() must be an instance of XMLElement, null given, called in /homepages/24/d373944667/htdocs/goleudy.org.uk/extensions/mailchimp/events/event.mailchimp.php on line 103 and defined
/homepages/24/d373944667/htdocs/goleudy.org.uk/symphony/lib/toolkit/class.xmlelement.php line 327
322 /**
323 * Adds an XMLElement to the children array
324 *
325 * @param XMLElement $child
326 */
327 public function appendChild(XMLElement $child){
328 $this->_children[] = $child;
329 }
330
331 /**
My quick fix was to add in event.mailchimp.php
$error = new XMLElement("error", "Unknown error. Have you already subscribed?");
After
$result->setAttribute("result", "error");
Hello,
When I try to enable/install or disable this extension I get the following error on the top of the page:
fwrite() expects parameter 1 to be resource, boolean given
Nothing shows up in the PHP error log.
If I try to actually uninstall it (after the above error the extension name turns black, as if it was installed, however there are no Mailchimp options in the Symphony Preferences page), I get a blank page and this shows up in the PHP error log:
PHP Fatal error: Call to undefined method Configuration::saveConfig() in /path/to/symphony/install/www/extensions/mailchimp/extension.driver.php on line 9
Could you please help me out?
Thank you :)
I do not know how to add them...
Hi Lewis,
I recently added the mailchimp extension as a submodule using the command from the symphonyextensions.com website but it did not pull in the MailChimp.class.php file in the lib directory.
This causes Symphony to throw an error (file not found) when you try to view events or add a new page.
I think this might because the MailChimp.class.php file is linked from another repo?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.