Title: 500 TypeError in array_map()
Last modified: July 1, 2024

---

# 500 TypeError in array_map()

 *  Resolved [robert_k](https://wordpress.org/support/users/robert_k/)
 * (@robert_k)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/500-typeerror-in-array_map/)
 * Our client’s site is experiencing this 500 error with version 7.0.0:
 *     ```wp-block-code
       PHP Fatal error: Uncaught TypeError: array_map(): Argument #2 ($array) must be of type array, null given in wp-content/plugins/nelio-ab-testing/public/helpers/class-nelio-ab-testing-main-script.php:250Stack trace:#0 wp-content/plugins/nelio-ab-testing/public/helpers/class-nelio-ab-testing-main-script.php(250): array_map(Object(Closure), NULL)#1 wp-content/plugins/nelio-ab-testing/public/helpers/class-nelio-ab-testing-main-script.php(68): Nelio_AB_Testing_Main_Script->get_relevant_heatmap_summaries()#2 wp-includes/class-wp-hook.php(324): Nelio_AB_Testing_Main_Script->enqueue_script('')#3 wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)#4 wp-includes/plugin.php(517): WP_Hook->do_action(Array)#5 wp-includes/script-loader.php(2265): do_action('wp_enqueue_scri...')#6 wp-includes/class-wp-hook.php(324): wp_enqueue_scripts('')#7 wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)#8 wp-includes/plugin.php(517): WP_Hook->do_action(Array)#9 wp-includes/general-template.php(3050): do_action('wp_head')#10 wp-content/themes/divi-child/header.php(40): wp_head()#11 wp-includes/template.php(810): require_once('/nas/content/li...')#12 wp-includes/template.php(745): load_template('/nas/content/li...', true, Array)#13 wp-includes/general-template.php(48): locate_template(Array, true, true, Array)#14 wp-content/themes/divi-child/page.php(2): get_header()#15 wp-includes/template-loader.php(106): include('/nas/content/li...')#16 wp-blog-header.php(19): require_once('/nas/content/li...')#17 index.php(17): require('/nas/content/li...')#18 {main} thrown in wp-content/plugins/nelio-ab-testing/public/helpers/class-nelio-ab-testing-main-script.php on line 250
       ```
   

Viewing 1 replies (of 1 total)

 *  Plugin Author [David Aguilera](https://wordpress.org/support/users/davilera/)
 * (@davilera)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/500-typeerror-in-array_map/#post-17862318)
 * Thanks for reporting the issue. An update (v7.0.1) with the fix is already available.

Viewing 1 replies (of 1 total)

The topic ‘500 TypeError in array_map()’ is closed to new replies.

 * ![](https://ps.w.org/nelio-ab-testing/assets/icon-256x256.png?rev=2514600)
 * [Nelio A/B Testing – AB Tests and Heatmaps for Better Conversion Optimization](https://wordpress.org/plugins/nelio-ab-testing/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nelio-ab-testing/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nelio-ab-testing/)
 * [Active Topics](https://wordpress.org/support/plugin/nelio-ab-testing/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nelio-ab-testing/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nelio-ab-testing/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [David Aguilera](https://wordpress.org/support/users/davilera/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/500-typeerror-in-array_map/#post-17862318)
 * Status: resolved