AnsPress 2.0 – clicking on the user avatar crashed

4.91K viewsCore
0

Hi,

If I click on the user avatar in the questions list (http://localhost:8080/questions/user/?user=resolvethis) I get this on top of the page.
Beneath the error, the profile is shown though

( ! ) WARNING: ARRAY_MAP() EXPECTS PARAMETER 1 TO BE A VALID CALLBACK, FUNCTION 'AP_META_ARRAY_MAP' NOT FOUND OR INVALID FUNCTION NAME IN C:\DATA\PROJECTEN\RESOLVETHIS\DEV\WORDPRESS\WP-CONTENT\PLUGINS\ANSPRESS-MASTER\INCLUDES\SHORTCODE-USER.PHP ON LINE 33
CALL STACK
#	TIME	MEMORY	    FUNCTION	LOCATION
1	0.0006	138992  	{main}( )	..\index.php:0
2	0.0009	141224  	require( 'C:\data\projecten\ResolveThis\dev\wordpress\wp-blog-header.php' )	..\index.php:17
3	0.2129	13199128	require_once( 'C:\data\projecten\ResolveThis\dev\wordpress\wp-includes\template-loader.php' )	..\wp-blog-header.php:16
4	0.2238	13423240	include( 'C:\data\projecten\ResolveThis\dev\wordpress\wp-content\themes\twentyfourteen\page.php' )	..\template-loader.php:74
5	0.2558	13503112	get_template_part( )	..\page.php:32
6	0.2558	13503680	locate_template( )	..\general-template.php:171
7	0.2563	13503832	load_template( )	..\template.php:477
8	0.2569	13515416	require( 'C:\data\projecten\ResolveThis\dev\wordpress\wp-content\themes\twentyfourteen\content-page.php' )	..\template.php:503
9	0.2576	13516136	the_content( )	..\content-page.php:20
10	0.2577	13516488	apply_filters( )	..\post-template.php:221
11	0.2582	13517936	call_user_func_array ( )	..\plugin.php:213
12	0.2582	13517952	do_shortcode( )	..\plugin.php:213
13	0.2582	13518632	preg_replace_callback ( )	..\shortcodes.php:197
14	0.2582	13519688	do_shortcode_tag( )	..\shortcodes.php:197
15	0.2582	13519848	call_user_func ( )	..\shortcodes.php:283
16	0.2582	13519872	AnsPress_User_Shortcode::anspress_user( )	..\shortcodes.php:283
17	0.2586	13526160	array_map ( )	..\shortcode-user.php:33
0

Tested and I can confirm that it works now.
Thanks!

1

Issue has been solved and pushed.