CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Optout warning
Pages: [1]

Author Topic: Optout warning  (Read 3122 times)

crayon

  • I post occasionally
  • **
  • Posts: 69
  • Karma: 1
  • CiviCRM version: 3.3.6
  • CMS version: Drupal 6.2
  • MySQL version: 5.0.91
  • PHP version: 5.2.17
Optout warning
September 19, 2008, 02:33:05 pm
I am trying to set up bulk emails.  I was checking the link from action.optOutUrl.  It works, but the page includes this warning:

Optout
warning: Invalid argument supplied for foreach() in

/home/earthsav/public_html/donations/sites/all/modules/civicrm/CRM/Mailing/Event/BAO/Unsubscribe

.php on line 265.


What's going on here and how can I remove it?

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Optout warning
September 20, 2008, 10:12:22 am
Can you update your profile. i was not able to replicate it.

Kurund
Found this reply helpful? Support CiviCRM

crayon

  • I post occasionally
  • **
  • Posts: 69
  • Karma: 1
  • CiviCRM version: 3.3.6
  • CMS version: Drupal 6.2
  • MySQL version: 5.0.91
  • PHP version: 5.2.17
Re: Optout warning
September 21, 2008, 04:58:20 pm
I don't know what you mean by updating my profile.  What do you need?  The application is at http://donations.earthsave.org.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Optout warning
September 21, 2008, 07:47:59 pm

Your SMF forum profile. Click on PROFILE at the top menu bar and Profile settings on that screen

You need to enter your CiviCRM and platform info, so we know what version etc u r using

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

crayon

  • I post occasionally
  • **
  • Posts: 69
  • Karma: 1
  • CiviCRM version: 3.3.6
  • CMS version: Drupal 6.2
  • MySQL version: 5.0.91
  • PHP version: 5.2.17
Re: Optout warning
September 22, 2008, 07:26:13 am
Okay, profile update.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Optout warning
September 22, 2008, 11:48:10 am

1.9 is no longer supported. You should upgrade to the 2.x series

if you cannot upgrade, you might want to edit that file and change line 265 onwards

Code: [Select]
        foreach ( $groups as $key => $value ) {
            if (!$value) {
                unset($groups[$key]);
            }

TO

Code: [Select]
if ( $groups ) {
        foreach ( $groups as $key => $value ) {
            if (!$value) {
                unset($groups[$key]);
            }
}
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Andrew Perry

  • I post occasionally
  • **
  • Posts: 98
  • Karma: 1
  • Building empowering tools that comply with rules
    • Community Builders Australia
  • CiviCRM version: 3.x, 4.x
  • CMS version: Joomla 1.0.x, 1.5.x -> Drupal 6.x, 7.x, WordPress
  • MySQL version: 5.1, 5.5, 5.6
  • PHP version: 5.2, 5.3, 5.4
Re: Optout warning
October 24, 2008, 12:44:48 pm
Thanks - that helped me too!
Community Builders Australia Pty Ltd
www.communitybuilders.com.au

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Optout warning

This forum was archived on 2017-11-26.