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.
- The topic ‘PHP Warning: array_key_exists() | After webhost migration’ is closed to new replies.