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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • 'Alter Contact Communication Preferences' Search Action Fails
Pages: [1]

Author Topic: 'Alter Contact Communication Preferences' Search Action Fails  (Read 1860 times)

aglozier

  • I post frequently
  • ***
  • Posts: 135
  • Karma: 9
    • Phoenix Academy
  • CiviCRM version: 4.7.9
  • CMS version: WordPress 4.6.1
  • MySQL version: 5.7.14
  • PHP version: 5.6.21
'Alter Contact Communication Preferences' Search Action Fails
May 28, 2013, 10:29:56 am
I tried to use the 'Alter Contact Communication Preferences' Search Action for the first time and it fail with the following message:
Code: [Select]
Warning: Cannot modify header information - headers already sent by (output started at /home/phoenix/www/www/wp-content/plugins/civicrm/civicrm/CRM/Contact/Form/Task/AlterPreferences.php:2) in /home/phoenix/www/www/wp-content/plugins/civicrm/civicrm/CRM/Utils/System.php on line 348
I tried using the 'Alter Contact Communication Preferences' Search Action on the sandbox and it works.  It also works on a clone of our website on a physically separate test server (Ubuntu box in my basement).

However it fails on a test subdomain on our host 'CiviHosting.com'.  I have a vanilla installation of WordPress and CiviCRM (& sample DB) on the test subdomain.

Based on this I suspect there is the problem is caused by CiviHosting or my installation there.

Any ideas?
« Last Edit: June 01, 2013, 02:01:30 pm by aglozier »

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: 'Alter Contact Communication Preferences' Search Action Fails on CiviHosting
May 28, 2013, 10:49:32 am

can you try and reproduce this on our demo servers

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

aglozier

  • I post frequently
  • ***
  • Posts: 135
  • Karma: 9
    • Phoenix Academy
  • CiviCRM version: 4.7.9
  • CMS version: WordPress 4.6.1
  • MySQL version: 5.7.14
  • PHP version: 5.6.21
Re: 'Alter Contact Communication Preferences' Search Action Fails
May 28, 2013, 11:09:30 am
The sandbox I referred to is the WordPress demo server.  It works fine there as it does on my Ubuntu box.   It fails on our production and test domains on CiviHosting.  Weird!

As far as triggering the error.  I just run a search, select some contact, select the 'Alter Contact Communication Preferences' action and 'bang' it fails.  I'm not doing anything special.  It always fails on our two CiviHosting domains and never on the other servers.
« Last Edit: June 01, 2013, 02:03:10 pm by aglozier »

aglozier

  • I post frequently
  • ***
  • Posts: 135
  • Karma: 9
    • Phoenix Academy
  • CiviCRM version: 4.7.9
  • CMS version: WordPress 4.6.1
  • MySQL version: 5.7.14
  • PHP version: 5.6.21
Re: 'Alter Contact Communication Preferences' Search Action Fails
June 01, 2013, 12:06:34 pm
I got some time to look into this again.  I completely deleted CiviCRM (code, DB, files) from my test domain and did a fresh install of 4.3 with the sample data.  I get the exact same error when I try to use the  'Alter Contact Communication Preferences' action.
« Last Edit: June 01, 2013, 02:02:21 pm by aglozier »

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: 'Alter Contact Communication Preferences' Search Action Fails
June 01, 2013, 01:42:41 pm
I investigated this and found some invalid characters in the AlterPreferences.php file referenced in your first post. I fixed that on your test site, aglozier, and now it works fine. I also fixed this file on your main site.

I raised an Issue here:

http://issues.civicrm.org/jira/browse/CRM-12745

with a good version of the file.
« Last Edit: June 01, 2013, 02:16:09 pm by Hershel »
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

aglozier

  • I post frequently
  • ***
  • Posts: 135
  • Karma: 9
    • Phoenix Academy
  • CiviCRM version: 4.7.9
  • CMS version: WordPress 4.6.1
  • MySQL version: 5.7.14
  • PHP version: 5.6.21
Re: 'Alter Contact Communication Preferences' Search Action Fails
June 01, 2013, 02:17:37 pm
Thank a lot Hershel.  I tested my main site and it works.

It is really weird that this bug only affects some hosts.  This points out the importance of testing on as many environments as possible.  If you use CiviCRM you should help with alpha and beta test.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • 'Alter Contact Communication Preferences' Search Action Fails

This forum was archived on 2017-11-26.