Plugin

Archived
Forum
(read-only)

Jeremy Worboys does not actively monitor this forum
(but you can still get help from other EE users).

Simple MailChimp

ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From Jeremy Worboys

     

You must be logged in to post.

Error when submitting email address

Support (Resolved)

al3700
al3700

added form and receiving the following error upon test submission:

A PHP Error was encountered
Severity: Notice
Message: Undefined variable: MC
Filename: simple_mailchimp/pi.simple_mailchimp.php
Line Number: 94

Fatal error: Call to a member function listSubscribe() on a non-object in /home/content/08/10206108/html/content/system/expressionengine/third_party/simple_mailchimp/pi.simple_mailchimp.php on line 94

{exp:simple_mailchimp
    api_key
="myapikeyhere"
    
list_id="mylistidhere"
    
error_delimeters='<p class="error">|</p>'
}
    {if success}
        
<class="success">SuccessCheck your email to activate your subscription.</p>
    
{if:else}
        
<p>
            
{label:EMAIL}
            {merge
:EMAIL}
            {error
:EMAIL}
        
</p>
        
{submit value="JOIN"}
    {
/if}
{
/exp:simple_mailchimp} 
Jeremy Worboys
# 1
Developer
Jeremy Worboys

Hey, thanks for reporting this issue.

To help me diagnose what is causing the error, can you provide the version of SimpleMailchimp, EE and PHP that you are getting this with.

al3700
# 2
al3700

Simple MailChimp: 1.5.1

EE: 2.6.1

PHP: 5.3.24

thanks!

Jeremy Worboys
# 3
Developer
Jeremy Worboys

All sorted in v1.5.2, now available for download.

al3700
# 4
al3700

perfect, that worked. thanks again!