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 »
  • Installing CiviCRM »
  • WordPress Installations (Moderators: Kurund Jalmi, Coleman Watts) »
  • Repeated Warning
Pages: [1]

Author Topic: Repeated Warning  (Read 2388 times)

beenlouis

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 0
Repeated Warning
March 17, 2013, 11:27:40 pm
I just recently started getting the following error at the top of every page:

Code: [Select]
Warning: array_key_exists() expects parameter 2 to be array, null given in /home/presby/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/ConfigSetting.php on line 168

Warning: array_key_exists() expects parameter 2 to be array, null given in /home/presby/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/ConfigSetting.php on line 168

Warning: array_key_exists() expects parameter 2 to be array, null given in /home/presby/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/ConfigSetting.php on line 168

Warning: array_key_exists() expects parameter 2 to be array, null given in /home/presby/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/ConfigSetting.php on line 168

Warning: array_key_exists() expects parameter 2 to be array, null given in /home/presby/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/ConfigSetting.php on line 168

Warning: array_key_exists() expects parameter 2 to be array, null given in /home/presby/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/ConfigSetting.php on line 168

Warning: array_key_exists() expects parameter 2 to be array, null given in /home/presby/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/ConfigSetting.php on line 168

Warning: array_key_exists() expects parameter 2 to be array, null given in /home/presby/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/ConfigSetting.php on line 168

Warning: array_key_exists() expects parameter 2 to be array, null given in /home/presby/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/ConfigSetting.php on line 168

Warning: array_key_exists() expects parameter 2 to be array, null given in /home/presby/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/ConfigSetting.php on line 168

Warning: array_key_exists() expects parameter 2 to be array, null given in /home/presby/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/ConfigSetting.php on line 168

Warning: array_key_exists() expects parameter 2 to be array, null given in /home/presby/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/ConfigSetting.php on line 168

Warning: array_key_exists() expects parameter 2 to be array, null given in /home/presby/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/ConfigSetting.php on line 168

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/presby/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/ConfigSetting.php on line 172

Warning: Invalid argument supplied for foreach() in /home/presby/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/ConfigSetting.php on line 88

I have disabled all the plugins but am still receiving the the above error. Any suggestions?
« Last Edit: March 17, 2013, 11:49:45 pm by beenlouis »

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Repeated Warning
March 19, 2013, 01:29:31 pm
Not sure. Can you edit the code (temporarily) and add the second line here:

Code: [Select]
    else {
print_r($params);die; // add me
      foreach ($params as $key => $val) {
        if (array_key_exists($key, $values)) {
          unset($values[$key]);
        }
      }
      $params = array_merge($params, $values);

Then visit a CiviCRM page, do "View Source" and copy and paste the source code here?

Then remove that line to put it back to normal.
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.

lorenv

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.4.5
  • CMS version: Wordpress
  • MySQL version: dontknoatmoment
  • PHP version: 5.4
Re: Repeated Warning
July 18, 2014, 01:31:29 pm
I have this same error after moving domain servers (actually same db, but changed the domain name, cleared the cache properly, etc.). Also running wordpress and 4.4.5. Im going to try more things, but its a huge pain. Ill follow up if I work it out.

Warning: array_key_exists() expects parameter 2 to be array, null given in /home/admin/public_html/admin/wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/ConfigSetting.php on line 190

Warning: array_key_exists() expects parameter 2 to be array, null given in /home/admin/public_html/admin/wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/ConfigSetting.php on line 190

Warning: array_key_exists() expects parameter 2 to be array, null given in /home/admin/public_html/admin/wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/ConfigSetting.php on line 190

Warning: array_key_exists() expects parameter 2 to be array, null given in /home/admin/public_html/admin/wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/ConfigSetting.php on line 190

Warning: array_key_exists() expects parameter 2 to be array, null given in /home/admin/public_html/admin/wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/ConfigSetting.php on line 190

Warning: array_key_exists() expects parameter 2 to be array, null given in /home/admin/public_html/admin/wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/ConfigSetting.php on line 190

Warning: array_key_exists() expects parameter 2 to be array, null given in /home/admin/public_html/admin/wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/ConfigSetting.php on line 190

Warning: array_key_exists() expects parameter 2 to be array, null given in /home/admin/public_html/admin/wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/ConfigSetting.php on line 190

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Repeated Warning
October 25, 2014, 12:31:16 pm
If you come across this issue, be sure to check the config_backend field in the civicrm_domain table. It should be either NULL or full or code. Sometimes if you null it incorrectly, it gets

Code: [Select]
N;
or some such as the value and that causes this issue.
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.

MtnPavlas

  • I’m new here
  • *
  • Posts: 20
  • Karma: 1
  • CiviCRM version: 4.4.6
  • CMS version: Joomla 3.3.3
  • MySQL version: 5.5
  • PHP version: 5.4
Re: Repeated Warning
November 02, 2014, 01:40:41 am
+1 on this issue. In my case, I specifically cannot save these system settings: Misc (Undelete, PDFs, Limits, Logging, Captcha, etc.)
All other settings save just fine. So do contacts, memberships, etc.

I have entered "NULL" in the config_backend field in the civicrm_domain table per the suggestion from the thread mentioned above in one of the answers.

Thanks a lot for any pointers.

EDIT: I feel like a total (fill in the blank) ... burning the midnight oil I was sheepishly entering "NULL" rather than just clearing the config_backend field value
(posting this edit in case it helps someone in the future)
« Last Edit: November 04, 2014, 01:36:16 am by MtnPavlas »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • WordPress Installations (Moderators: Kurund Jalmi, Coleman Watts) »
  • Repeated Warning

This forum was archived on 2017-11-26.