Code Monkey home page Code Monkey logo

mailchimp's People

Contributors

beaubbe avatar brendo avatar cmnstmntmn avatar codecommander avatar lewiswharf avatar nitriques avatar pascalpiche avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

mailchimp's Issues

Duplicate email addresses leads to Symphony Recoverable Error

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.

Error Message

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 temporary fix

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");

MailChimp.class.php not be included

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?

Error in the readme

$(function () {
$('#the-form').mailChimp({
complete: completeCallback,
error: errorCallback
})
});

Should be mailchimp without capital letter

Injclude path for mailchimp api is wrong

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

500 errors when using Ajax

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!

No @result = 'success' maybe because I insert other fields?

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?

Cannot install, disable, or uninstall extension

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 :)

Missing abstract class JSONPage?

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.