Title: Warning: array_keys() expects parameter 1 to be array, string given.
Last modified: September 17, 2019

---

# Warning: array_keys() expects parameter 1 to be array, string given.

 *  Resolved [nikhiljdhv](https://wordpress.org/support/users/nikhiljdhv/)
 * (@nikhiljdhv)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/warning-array_keys-expects-parameter-1-to-be-array-string-given-2/)
 * I’m trying to use this plugin but I get this error and that’s definitely slowing
   down my work.
 * Warning: array_keys() expects parameter 1 to be array, string given in /home/
   yourfre2/public_html/irungoamarathon/wp-content/plugins/countdown-builder/classes/
   ConditionBuilder.php on line 167
 * Also the countdown is not sticky. Can someone please help me out here?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwarning-array_keys-expects-parameter-1-to-be-array-string-given-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [adamskaat](https://wordpress.org/support/users/adamskaat/)
 * (@adamskaat)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/warning-array_keys-expects-parameter-1-to-be-array-string-given-2/#post-11941697)
 * Hi [@nikhiljdhv](https://wordpress.org/support/users/nikhiljdhv/),
 * Please go to this file /home/yourfre2/public_html/irungoamarathon/wp-content/
   plugins/countdown-builder/classes/ConditionBuilder.php and at line 167 change
   with this code
 * `$savedValue = @array_keys($savedValue);`
 * That will be included on our upcoming update.
 * Regards,
    Adam
 *  Thread Starter [nikhiljdhv](https://wordpress.org/support/users/nikhiljdhv/)
 * (@nikhiljdhv)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/warning-array_keys-expects-parameter-1-to-be-array-string-given-2/#post-11946921)
 * This has fixed the issue. Thanks.
 * But for some reason the countdown is not sticky. It only shows once you scroll
   to the very bottom of the page, since I’ve selected “bottom right”. You can view
   this problem by going to my landing page: [https://yourfreelancebuddy.com/irungoamarathon/](https://yourfreelancebuddy.com/irungoamarathon/).
 * Let me know if this problem can be taken care of as that would be of great help.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Warning: array_keys() expects parameter 1 to be array, string given.’
is closed to new replies.

 * ![](https://ps.w.org/countdown-builder/assets/icon-128x128.png?rev=1821564)
 * [Countdown, Coming Soon, Maintenance - Countdown & Clock](https://wordpress.org/plugins/countdown-builder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/countdown-builder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/countdown-builder/)
 * [Active Topics](https://wordpress.org/support/plugin/countdown-builder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/countdown-builder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/countdown-builder/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [nikhiljdhv](https://wordpress.org/support/users/nikhiljdhv/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/warning-array_keys-expects-parameter-1-to-be-array-string-given-2/#post-11946921)
 * Status: resolved