Home › Forums › WoodMart support forum › Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of
Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of
- This topic has 1 reply, 2 voices, and was last updated 8 months, 2 weeks ago by
Aizaz Imtiaz Awan.
-
AuthorPosts
-
June 22, 2024 at 4:46 pm #574698
camilo.biuroParticipantHello,
I get an error on my website when I try to log in to any newly created account – after pressing “Log in” the following errors appear.
Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /home/platne/serwer98489/public_html/ubierzrower/wp-content/themes/woodmart-child/functions.php:18 Stack trace: #0 /home/platne/serwer98489/public_html/ubierzrower/wp-content/themes/woodmart-child/functions.php(18): in_array() #1 /home/platne/serwer98489/public_html/ubierzrower/wp-includes/class-wp-hook.php(324): my_custom_available_payment_gateways() #2 /home/platne/serwer98489/public_html/ubierzrower/wp-includes/plugin.php(205): WP_Hook->apply_filters() #3 /home/platne/serwer98489/public_html/ubierzrower/wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php(333): apply_filters() #4 /home/platne/serwer98489/public_html/ubierzrower/wp-content/plugins/woocommerce/includes/wc-account-functions.php(118): WC_Payment_Gateways->get_available_payment_gateways() #5 /home/platne/serwer98489/public_html/ubierzrower/wp-content/themes/woodmart/inc/integrations/woocommerce/template-tags.php(2118): wc_get_account_menu_items() #6 /home/platne/serwer98489/public_html/ubierzrower/wp-content/themes/woodmart/inc/integrations/woocommerce/template-tags.php(1988): woodmart_get_my_account_menu() #7 /home/platne/serwer98489/public_html/ubierzrower/wp-content/themes/woodmart/header-elements/account.php(7): woodmart_get_header_links() #8 /home/platne/serwer98489/public_html/ubierzrower/wp-content/themes/woodmart/inc/modules/header-builder/elements/abstract/class-element.php(77): require(‘…’) #9 /home/platne/serwer98489/public_html/ubierzrower/wp-content/themes/woodmart/inc/modules/header-builder/class-frontend.php(210): XTS\Modules\Header_Builder\Element->render() #10 /home/platne/serwer98489/public_html/ubierzrower/wp-content/themes/woodmart/inc/modules/header-builder/class-frontend.php(198): XTS\Modules\Header_Builder\Frontend->render_element() #11 /home/platne/serwer98489/public_html/ubierzrower/wp-content/themes/woodmart/inc/modules/header-builder/class-frontend.php(198): XTS\Modules\Header_Builder\Frontend->render_element() #12 /home/platne/serwer98489/public_html/ubierzrower/wp-content/themes/woodmart/inc/modules/header-builder/class-frontend.php(198): XTS\Modules\Header_Builder\Frontend->render_element() #13 /home/platne/serwer98489/public_html/ubierzrower/wp-content/themes/woodmart/inc/modules/header-builder/class-frontend.php(149): XTS\Modules\Header_Builder\Frontend->render_element() #14 /home/platne/serwer98489/public_html/ubierzrower/wp-content/themes/woodmart/inc/modules/header-builder/functions.php(25): XTS\Modules\Header_Builder\Frontend->generate_header() #15 /home/platne/serwer98489/public_html/ubierzrower/wp-content/themes/woodmart/header.php(26): whb_generate_header() #16 /home/platne/serwer98489/public_html/ubierzrower/wp-includes/template.php(810): require_once(‘…’) #17 /home/platne/serwer98489/public_html/ubierzrower/wp-includes/template.php(745): load_template() #18 /home/platne/serwer98489/public_html/ubierzrower/wp-includes/general-template.php(48): locate_template() #19 /home/platne/serwer98489/public_html/ubierzrower/wp-content/themes/woodmart/page.php(13): get_header() #20 /home/platne/serwer98489/public_html/ubierzrower/wp-includes/template-loader.php(106): include(‘…’) #21 /home/platne/serwer98489/public_html/ubierzrower/wp-blog-header.php(19): require_once(‘…’) #22 /home/platne/serwer98489/public_html/ubierzrower/index.php(17): require(‘…’) #23 {main} thrown in /home/platne/serwer98489/public_html/ubierzrower/wp-content/themes/woodmart-child/functions.php on line 18
June 24, 2024 at 9:32 am #574818
Aizaz Imtiaz AwanKeymasterHello,
Please deactivate all the 3rd party plugins and activate only theme-required plugins on the site and then check the issue. I am sure your issue will be solved. Then Activate the 3rd party plugins one by one and check which plugin is creating the issue for you.
Otherwise, if the issue still exists then keep the 3rd party plugins deactivated and share the WP admin login details of your site so I will check and give you a possible solution.
Best Regards.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register