Title: PHP Warning: array_key_exists() | After webhost migration
Last modified: November 5, 2021

---

# PHP Warning: array_key_exists() | After webhost migration

 *  Resolved [Eder Ribeiro](https://wordpress.org/support/users/ribeiroeder/)
 * (@ribeiroeder)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/php-warning-array_key_exists-after-webhost-migration/)
 * Hello,
 * I have identified an issue related to presto player that is only caused when 
   I export the site to my other testing domain.
 * I have an official members site with learndash and another (copy) just for testing.
 * Basically in the copy process I clone all the files and do the SQL export/import
   via phpMyAdmin.
 * On my official website I don’t have any error in the PHP error_log, but on my
   cloned testing site I find the following error that appears very often:
 * [04-Nov-2021 05:07:16 UTC] PHP Warning: array_key_exists() expects parameter 
   2 to be array, bool given in /home/XXXX/public_html//wp-content/plugins/presto-
   player/inc/Integrations /LearnDash/LearnDash.php on line 184
 * [04-Nov-2021 05:07:16 UTC] PHP Warning: array_key_exists() expects parameter 
   2 to be array, bool given in /home/XXXX/public_html/wp-content/plugins/presto-
   player/inc/Integrations/ LearnDash/LearnDash.php on line 185
 * From what I’ve been able to research this error is common to happen in host migrations,
   when the old domain names are replaced by the new one, and it requires an adjustment
   of the PHP code so that it can work in this situation.

Viewing 1 replies (of 1 total)

 *  [Mahdi](https://wordpress.org/support/users/mahdimoafi/)
 * (@mahdimoafi)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/php-warning-array_key_exists-after-webhost-migration/#post-15044568)
 * Hello there,
 * Thank you for choosing Presto and writing in!
 * This is just a developer warning, not an error because your WordPress installation
   is in debug mode.
 * You can resolve it by turning off the debug mode. By the way, I’ve also reported
   to our dev team for further analysis and review.
 * Hope this was helpful.
 * Have a great day ahead 🙂

Viewing 1 replies (of 1 total)

The topic ‘PHP Warning: array_key_exists() | After webhost migration’ is closed 
to new replies.

 * ![](https://ps.w.org/presto-player/assets/icon-256x256.png?rev=2831276)
 * [The Ultimate Video Player For WordPress - by Presto Player](https://wordpress.org/plugins/presto-player/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/presto-player/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/presto-player/)
 * [Active Topics](https://wordpress.org/support/plugin/presto-player/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/presto-player/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/presto-player/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Mahdi](https://wordpress.org/support/users/mahdimoafi/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/php-warning-array_key_exists-after-webhost-migration/#post-15044568)
 * Status: resolved