• eggplantstudios

    (@shawneggplantstudiosca)


    Attempting to run an export. Using Version 2.6.1 on PHP 8.

    When running the export I receive the following error in the ui:

    An unknown error occurred. Please check your PHP error log or contact support.

    And in PHP the relevant fatal error is:

    [27-Feb-2023 15:51:18 UTC] PHP Warning: Undefined array key “form_data” in /home/xxxxxx/public_html/wp-content/plugins/wp-migrate-db/class/Common/Migration/MigrationManager.php on line 453
    [27-Feb-2023 15:51:18 UTC] PHP Fatal error: Uncaught TypeError: array_intersect_key(): Argument #1 ($array) must be of type array, null given in /home/xxxxxx/public_html/wp-content/plugins/wp-migrate-db/class/Common/FormData/FormData.php:169

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Delicious Brains

    (@deliciousbrains)

    Hey Shawn,

    The array key error you are seeing around form_data is a result of an error earlier in the export process. To figure out what is going on with the export, we need a little more information.

    At what point did you see the An unknown error occurred message? If the export started, what stage was it on, tables, media, etc.
    If there are any other console or PHP log errors those would also be helpful in getting down to what the issue is. Thanks -PW

    Hello, I’m having the same issue. wordpress 6.2.1., PHP 8, WP Migrate Version 2.6.7.

    I have never had issues with WP Migrate in the past. Only after updating issues occured. Migration does not even start. As I attempt push or pull I receive notification “Migration Failed” and error message:

    “An unknown error occurred. Please check your PHP error log or contact support.”

    In php error logs:

    “[18-May-2023 16:07:48 UTC] PHP Fatal error: Uncaught TypeError: array_intersect_key(): Argument #1 ($array) must be of type array, null given in /var/web/site/public_html/wp-content/plugins/wp-migrate-db-pro/class/Common/FormData/FormData.php:175”

    And

    “[18-May-2023 16:07:48 UTC] PHP Warning: Undefined array key “form_data” in /var/web/site/public_html/wp-content/plugins/wp-migrate-db-pro/class/Common/Migration/MigrationManager.php on line 453″

    Plugin Support Delicious Brains Support

    (@dbisupport)

    Hi @natelucas,

    We’ve have had just a recent client with the same issue. Could you please check if you have WAF? On that client, the ‘/wp-json/mdb-api/v1/’ endpoint is being blocked, adding this endpoint to the whitelist have fixed the issue.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Fatal error: Uncaught TypeError: array_intersect_key()’ is closed to new replies.