• Resolved Eder Ribeiro

    (@ribeiroeder)


    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)
  • 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.