• Resolved suzyo30

    (@suzyo30)


    I am writing to seek your assistance regarding an error that I have encountered while using the “Flexible Checkout Fields” plugin. I believe your expertise and support can help me resolve this issue.

    Error Details: Date/Time: 2023-05-23T09:13:10+00:00 Error Message: Uncaught TypeError: array_intersect_key(): Argument #1 ($array) must be of type array, null given Plugin: Flexible Checkout Fields File: /srv/htdocs/wp-content/plugins/woocommerce/includes/class-wc-countries.php Line: 1571

    Stack Trace:

    • /srv/htdocs/wp-content/plugins/woocommerce/includes/class-wc-countries.php(1571)
    • /srv/htdocs/wp-content/plugins/flexible-checkout-fields/classes/plugin.php(604)
    • /srv/htdocs/wp-content/plugins/flexible-checkout-fields/classes/plugin.php(572)
    • /srv/htdocs/wp-content/plugins/flexible-checkout-fields/classes/display-options.php(149)
    • /srv/htdocs/wp-content/plugins/flexible-checkout-fields/classes/display-options.php(456)
    • /srv/htdocs/wp-content/plugins/flexible-checkout-fields/classes/display-options.php(447)

    Description: When processing the checkout, I encountered the above-mentioned error message. It appears that the error originates from the “Flexible Checkout Fields” plugin, specifically within the “restore_default_city_validation” function. The issue seems to be related to the handling of a null value when calling the “array_intersect_key()” function in the “WC_Countries” class.

    Request: I kindly request your guidance and assistance in resolving this error. After analyzing the code, I made some modifications to handle the null value, but I haven’t been successful in resolving the issue. I believe your expertise and insights would be invaluable in identifying the root cause and providing a suitable solution.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support rzepsen

    (@rzepsen)

    Hello @suzyo30

    It seems that the problem may be related to some other plugin used in your shop. It seems that the woocommerce_get_country_locale filter activates before the actions of our plugin and the data is modified to null

    Have you tried to isolate the issue? Please disable all third-party plugins in your WordPress and try again. 

    Plugin Support Tomasz WP Desk

    (@tomaszwp)

    I am marking this topic as resolved as we have not received any new replies. Please let us know if you need our help again.

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

The topic ‘array_intersect_key() when processing the checkout form’ is closed to new replies.