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) »
  • PHP Notices and Warnings breaking deduplication
Pages: [1]

Author Topic: PHP Notices and Warnings breaking deduplication  (Read 540 times)

Upperholme

  • Administrator
  • Ask me questions
  • *****
  • Posts: 568
  • Karma: 8
    • MC3
  • CiviCRM version: 4.x
  • CMS version: Drupal 6.x/7.x, Wordpress, Joomla
PHP Notices and Warnings breaking deduplication
February 20, 2015, 01:53:23 am
I'm working on a Wordpress implementation (Civi 4.4.11), and all seems to be well apart form when running a depupe, e.g. wp-admin/admin.php?page=CiviCRM&q=civicrm/contact/merge&reset=1&cid=9&oid=1699&action=update&rgid=11

This displays the following Notices and Warnings:

Quote
Notice: Undefined variable: title in /wp-content/plugins/civicrm/civicrm/CRM/Dedupe/Merger.php on line 141

Notice: Undefined variable: userRecordUrl in /wp-content/plugins/civicrm/civicrm/CRM/Dedupe/Merger.php on line 143

Warning: Cannot modify header information - headers already sent by (output started at /wp-content/plugins/civicrm/civicrm/CRM/Dedupe/Merger.php:141) in /wp-includes/option.php on line 750

Warning: Cannot modify header information - headers already sent by (output started at /wp-content/plugins/civicrm/civicrm/CRM/Dedupe/Merger.php:141) in /wp-includes/option.php on line 751

My assumption is that the Warnings are being generated by the fact that the Notices are being displayed on screen. what I don't understand is why the notices are being displayed at all.

My Debugging and Error Handling settings are off.
The Wordpress wp-config.php file has  WP_DEBUG off
the php.ini is set to display_errors = Off

Not sure what more I can do to stop these notices from appearing?
Graham Mitchell
http://mc3.coop

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: PHP Notices and Warnings breaking deduplication
February 20, 2015, 03:52:17 am
That is strange, it must be overridden somewhere....
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: PHP Notices and Warnings breaking deduplication
February 20, 2015, 05:48:53 am
There are sometimes multiple php.ini files. Use phpinfo() to check which one is "active".
Try asking your question on the new CiviCRM help site.

Upperholme

  • Administrator
  • Ask me questions
  • *****
  • Posts: 568
  • Karma: 8
    • MC3
  • CiviCRM version: 4.x
  • CMS version: Drupal 6.x/7.x, Wordpress, Joomla
Re: PHP Notices and Warnings breaking deduplication
February 20, 2015, 05:59:38 am
Thanks folks.

There is only one php.ini file in this case. My guess is that the issue may lie elsewhere - i.e. the site I'm working on is hosted with Godaddy. I think I've convinced the client to move to a proper hosting environment, so I'm hoping that will enable us to resolve this.
Graham Mitchell
http://mc3.coop

Upperholme

  • Administrator
  • Ask me questions
  • *****
  • Posts: 568
  • Karma: 8
    • MC3
  • CiviCRM version: 4.x
  • CMS version: Drupal 6.x/7.x, Wordpress, Joomla
Re: PHP Notices and Warnings breaking deduplication
March 19, 2015, 02:58:42 am
I've now migrated the site to a Civihosting.com server and availed myself of Hershel's excellent assistance.

I have updated the CiviCRM install to 4.4.14.

We've double-checked all of the settings in the global php.ini file and checked what wp-config.php is doing in relation to error reporting and display.

The upgrade appears to have resolved an issue where a whole string of notices and warnings were being displayed when trying to add a tag to a contact, but the original problem, of having notices displayed when trying to apply a deduplication rule as noted above, remains.

In my view this is a bug.
Graham Mitchell
http://mc3.coop

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: PHP Notices and Warnings breaking deduplication
March 19, 2015, 03:19:17 am
Graham,
have you checked if this occurs in Drupal too? IMO It would not make sense to report it as a CiviCRM bug if the source of the problem is in Wordpress?
Erik
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Upperholme

  • Administrator
  • Ask me questions
  • *****
  • Posts: 568
  • Karma: 8
    • MC3
  • CiviCRM version: 4.x
  • CMS version: Drupal 6.x/7.x, Wordpress, Joomla
Re: PHP Notices and Warnings breaking deduplication
March 19, 2015, 03:26:38 am
I can see your point Erik, and I'll check that out.

However, at the same time, if the release exists for Wordpress, it seems reasonable to assume that if it doesn't work properly with a standard Wordpress install with no other plug-ins activated then there is an issue.

If Wordpress is the source of the issue then we can aim to get that fixed through those channels, but in the meantime surely we should still report the issue as a bug, if nothing more than to enable users and developers to be aware of it.
Graham Mitchell
http://mc3.coop

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: PHP Notices and Warnings breaking deduplication
March 19, 2015, 04:57:59 am
Totally agree! Just wanted to make sure if the problem also arises in Drupal installs, so is a pure CiviCRM bug which we can solve easily, or if it is a situation where something specific needs to be done for WP or special instructions need to be added to the install tutorial.
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • PHP Notices and Warnings breaking deduplication

This forum was archived on 2017-11-26.