Answers.Body: <p>This looks like a bug. Can you try to replicate it on d45.demo.civicrm.org? Please create an issue for it at issues.civicrm.org indicating if you were able to replicate it on the demo site or not. As export errors can arise because of interactions involving the field mapping configuration and / or data, it might be useful to include a screen shot showing your specific field mapping when creating the issue.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-20T05:31:06.723Z
Answers.Text: Hi Joe. I have tried to replicate on d45.demo.civicrm.org, but cannot. It works fine on the demo site.
  
  I have just migrated our system to 4.6.2 this weekend.I get the same problem on 4.6.2. So it seems maybe, an issue specific to my installation.  
  
  My Wordpress version is 4.1.1
Answers.UserDisplayName: Sudesh
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-19T00:15:07.877Z
Answers.LastActivityDate: 2015-04-19T00:15:07.877Z
Answers.UserDisplayName: Joe Murray
Answers.Body: <p>It's likely an issue with the code. The fastest "fix" is to hide that armless message by changing the setting. you add in your civicrm.setting.php that line:</p>
  
  <pre><code>ini_set("error_reporting", 0);
  </code></pre>
  
  <p>and it should avoid to show that message.</p>
  
  <p>Beware that it means that you might have other errors (eg. from other modules) that will be hidden too. </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-20T14:43:49.193Z
Answers.Text: I added the above line to the civicrm.setting.php file, but I still get the same result. The message still appears. Any other thoughts?
Answers.UserDisplayName: Sudesh
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-23T07:04:09.957Z
Answers.Text: I changed the above line in the civicrm.settings.php file to the below line and now it works fine: ini_set("error_reporting", 0);
Answers.UserDisplayName: Sudesh
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-24T15:11:56.743Z
Answers.Text: ok, changed the answer accordingly. Keep in mind you don't fix anything, just hide the warning ;)
Answers.UserDisplayName: Xavier
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-20T10:30:17.830Z
Answers.LastActivityDate: 2015-04-24T15:11:04.483Z
Answers.LastEditDate: 2015-04-24T15:11:04.483Z
Answers.UserDisplayName: Xavier
Body: <p>I get the following Warnings when export contacts after performing an advanced search:</p>
  <blockquote>
  <p>Blockquote Warning: strpos(): Empty needle in /home/iskcohdx/public_html/crm/wp-content/plugins/civicrm/civicrm/CRM/Export/BAO/Export.php on line 600</p>
  <p>Blockquote Warning: Cannot modify header information - headers already sent by (output started at /home/iskcohdx/public_html/crm/wp-content/plugins/civicrm/civicrm/CRM/Export/BAO/Export.php:600) in /home/iskcohdx/public_html/crm/wp-content/plugins/civicrm/civicrm/CRM/Utils/System.php on line 833</p>
  </blockquote>
  <p>What could be the cause of this and how to fix this issue?
  I'm using CiviCRM 4.5.3 on Wordpress.</p>
  
Tags: <search><search-results>
Title: "Empty needle" error when exporting from Advanced Search results
ThreadText: # "Empty needle" error when exporting from Advanced Search results
  
  (Asked by: username_0 on 2015-04-17)
  
  I get the following Warnings when export contacts after performing an advanced search:
  
  > Blockquote Warning: strpos(): Empty needle in /home/iskcohdx/public\_html/crm/wp-content/plugins/civicrm/civicrm/CRM/Export/BAO/Export.php on line 600
  >
  > Blockquote Warning: Cannot modify header information - headers already sent by (output started at /home/iskcohdx/public\_html/crm/wp-content/plugins/civicrm/civicrm/CRM/Export/BAO/Export.php:600) in /home/iskcohdx/public\_html/crm/wp-content/plugins/civicrm/civicrm/CRM/Utils/System.php on line 833
  
  What could be the cause of this and how to fix this issue?
  I'm using CiviCRM 4.5.3 on Wordpress.
  
  **Tags:** search, search-results
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2015-04-20. Score: 3 | Accepted answer
  
  It's likely an issue with the code. The fastest "fix" is to hide that armless message by changing the setting. you add in your civicrm.setting.php that line:
  
  ```
  ini_set("error_reporting", 0);
  
  ```
  
  and it should avoid to show that message.
  
  Beware that it means that you might have other errors (eg. from other modules) that will be hidden too.
  
  > **Comments:**
  > **username_0**: I added the above line to the civicrm.setting.php file, but I still get the same result. The message still appears. Any other thoughts?  
  > **username_0**: I changed the above line in the civicrm.settings.php file to the below line and now it works fine: ini_set("error_reporting", 0);  
  > **username_2**: ok, changed the answer accordingly. Keep in mind you don't fix anything, just hide the warning ;)  
  
  ---
  
  ### Answer by username_1 on 2015-04-19. Score: 1
  
  This looks like a bug. Can you try to replicate it on d45.demo.civicrm.org? Please create an issue for it at issues.civicrm.org indicating if you were able to replicate it on the demo site or not. As export errors can arise because of interactions involving the field mapping configuration and / or data, it might be useful to include a screen shot showing your specific field mapping when creating the issue.
  
  > **Comments:**
  > **username_0**: Hi Joe. I have tried to replicate on d45.demo.civicrm.org, but cannot. It works fine on the demo site.  I have just migrated our system to 4.6.2 this weekend.I get the same problem on 4.6.2. So it seems maybe, an issue specific to my installation.    My Wordpress version is 4.1.1  
  
  ---
  
  