ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

EE 2.2 Email Module Broken

June 22, 2011 6:47pm

Subscribe [3]
  • #1 / Jun 22, 2011 6:47pm

    Bransin

    157 posts

    I uninstalled it and then reinstalled it. Still no dice. This was working on version 2.1.5 prior to upgrading to version 2.2.

    Fatal error: Call to undefined method CI_DB_mysql_driver::ar_andor_string() in /var/www/system/expressionengine/modules/email/mod.email.php on line 258

    {exp:email:tell_a_friend channel="channel1|channel2|channel3|channel4" redirect="none" charset="utf-8" allow_html="no" status="{article_status}"}
                
                    <label for="to">To:</label>
                    <input type="text" id="to" class="text required email" name="to" size="40" maxlength="35" />
                
                
                    <label for="from">Your Email:</label>
                    <input type="text" id="from" class="text required email" name="from" size="40" maxlength="35" value="{member_email}" />
                
                
                    <label for="name">Your Name:</label>
                    <input type="text" id="name" class="text required" name="name" size="40" maxlength="35" value="{member_name}" />
                
                
                    <label for="subject">Subject:</label>
                    <input type="text" id="subject" class="subject required text" name="subject" size="40" value="{title}{if article_deck_title}: {article_deck_title}{/if}" />
                
                
                    <label for="message">Message:</label>
    <textarea id="message" class="required" name="message" readonly="readonly" rows="5" cols="40">Check out this awesome article!
    {message}
    </textarea>
                
                <input name="submit" type="submit" class="submit" value="Send" /></p>
    {/exp:email:tell_a_friend}

    Do you know of a quick simple fix?

  • #2 / Jun 23, 2011 12:14pm

    Sue Crocker

    26054 posts

    Hi, Bransin. Before I start troubleshooting, can you send mail OK through Communicate?

  • #3 / Jun 23, 2011 3:37pm

    Bransin

    157 posts

    Hi Sue,

    Yes I was able to send a test email through communicate.

  • #4 / Jun 23, 2011 3:58pm

    Greg Aker

    6022 posts

    Hi Bransin,

    If you open up system/expressionengine/modules/email/mod.email.php, and change line 258 to:

    $this->EE->functions->ar_andor_string($channel, 'c.channel_name');

    This should fix it up for you.  Let us know if that does it.

    Thanks!

    -greg

  • #5 / Jun 23, 2011 4:19pm

    Bransin

    157 posts

    That did the trick! Thanks for the quick response!

  • #6 / Jun 23, 2011 4:27pm

    Greg Aker

    6022 posts

    Alright, excellent!  I’m glad that did the trick.  Have the fix in for the next release.

    Closing this one out, but if you have anything else come up, don’t hesitate to start a new thread.

    Regards,

    -greg

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases