• Resolved pzh20

    (@pzh20)


    I exported users from one site and trying to import to another I get this error

    Fatal error: Uncaught TypeError: strtolower(): Argument #1 ($string) must be of type string, array given in E:\Documents\local\Wordpress\bricks-localinfolocal\app\public\wp-content\plugins\import-users-from-csv-with-meta\classes\import.php:281 Stack trace: #0 E:\Documents\local\Wordpress\bricks-localinfolocal\app\public\wp-content\plugins\import-users-from-csv-with-meta\classes\import.php(281): strtolower(Array) #1 E:\Documents\local\Wordpress\bricks-localinfolocal\app\public\wp-content\plugins\import-users-from-csv-with-meta\classes\import.php(813): ACUI_Import->read_first_row(Array, Array, Array, Array) #2 E:\Documents\local\Wordpress\bricks-localinfolocal\app\public\wp-content\plugins\import-users-from-csv-with-meta\classes\import.php(250): ACUI_Import->import_users(‘E:\\Documents\\HH…’, Array, false, false, false) #3 E:\Documents\local\Wordpress\bricks-localinfolocal\app\public\wp-content\plugins\import-users-from-csv-with-meta\classes\import.php(26): ACUI_Import->fileupload_process(Array, false) #4 E:\Documents\local\Wordpress\bricks-localinfolocal\app\public\wp-includes\class-wp-hook.php(324): ACUI_Import->show(”) #5 E:\Documents\local\Wordpress\bricks-localinfolocal\app\public\wp-includes\class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) #6 E:\Documents\local\Wordpress\bricks-localinfolocal\app\public\wp-includes\plugin.php(517): WP_Hook->do_action(Array) #7 E:\Documents\local\Wordpress\bricks-localinfolocal\app\public\wp-admin\admin.php(259): do_action(‘tools_page_acui’) #8 E:\Documents\local\Wordpress\bricks-localinfolocal\app\public\wp-admin\tools.php(40): require_once(‘E:\\Documents\\HH…’) #9 {main} thrown in E:\Documents\local\Wordpress\bricks-localinfolocal\app\public\wp-content\plugins\import-users-from-csv-with-meta\classes\import.php on line 281

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Javier Carazo

    (@carazo)

    This is really strange. It seems you have an array in the first row.

    This is incorrect.

    Could you share the first line of your csv?

    Thread Starter pzh20

    (@pzh20)

    user_login	user_email	4011694_submitted	5c50a55_submitted	7c6bfb71_submitted	8f2add5_submitted	_first_name	_last_name	_middle_names	_picture	_profile_picture	_relationship	_submitted	_test_text	ac_preferences_check-addon-available-ac-addon-acf	ac_preferences_check-review	acf_to_rest_api_donation_version	acf_user_settings	acfef_get_payment_addon	acfef_payed_submitted	acfef_pro_trial_dismiss	admin_color	announcements_user_counter	be2dfe3_submitted	cadf4c2_submitted	cfadbc5_submitted	closedpostboxes_acf-taxonomy	closedpostboxes_dashboard	closedpostboxes_family_members	closedpostboxes_page	closedpostboxes_post	comment_shortcuts	community-events-location	default_password_nag	description	dismissed_wp_pointers	display_name	dsh_dismissed_not_stable_0.1.15-beta	dsh_dismissed_not_stable_0.1.6-beta	dsh_dismissed_not_stable_0.1.7-beta	dsh_dismissed_not_stable_0.1.8-beta	ecs_instalation	ecs_notification_verification	edit_admin_form_per_page	edit_elementor_library_per_page	edit_family_members_per_page	edit_page_per_page	edit_photograph_per_page	ele_custom_skin_notice_dismissed	elementor_admin_notices	elementor_dismissed_editor_notices	elementor_introduction	first_name	hide_admin_area	hide_admin_submitted	ignore_code_snippets_survey_message	is_email_verified	jpe_ac_preferences_layout_table	jpe_ac_preferences_settings	jpe_capabilities	jpe_dashboard_quick_press_last_post_id	jpe_elementor_connect_common_data	jpe_elementor_pro_enable_notes_notifications	jpe_media_library_mode	jpe_persisted_preferences	jpe_user-settings	jpe_user-settings-time	jpe_user_level	last_name	locale	manageedit-acf-post-typecolumnshidden	manageedit-acf-taxonomycolumnshidden	manageedit-acf-ui-options-pagecolumnshidden	manageedit-family_memberscolumnshidden	manageedit-pagecolumnshidden	managenav-menuscolumnshidden	message_token	meta-box-order_cjtoolbox	meta-box-order_dashboard	meta-box-order_family_members	meta-box-order_page	metaboxhidden_acf-taxonomy	metaboxhidden_dashboard	metaboxhidden_family_members	metaboxhidden_nav-menus	metaboxhidden_page	metaboxhidden_post	middle_names	nav_menu_recently_edited	nickname	picture	profile_picture	profile_picture_url	relationship	rich_editing	role	screen_layout_family_members	screen_layout_page	search-filter-show-welcome-notice	session_tokens	show_admin_bar_front	show_welcome_panel	source_user_id	submitted::	submitted::014587b	submitted::2fdcce6	submitted::3b96483e	submitted::4011694	submitted::5c50a55	submitted::7b745f28	submitted::acf-form	submitted::cfadbc5	submitted::field609af7309fdad	submitted::field_609af7309fdad	submitted::field_64d7357da7f8e	submitted::form6357a419536e8	submitted::form64da579d03ad1	submitted::form_6357a419536e8	submitted::form_64d61c081d99d	submitted::form_64da579d03ad1	syntax_highlighting	test_text	tlwp_feedback_do_not_ask_again	tlwp_feedback_do_not_ask_again_time	use_ssl	user_nicename	user_pass	user_registered	user_url	users_per_page	wpda-user-dashboard-widgets	wpda_manage_columnshidden_toplevel_page_wpdainformation_schema_tables	wpda_manage_columnshidden_toplevel_page_wpdajpe_posts	wpda_manage_columnshidden_wp-data-access_page_wpda_designerjpe_wpda_table_design	wpda_rows_per_page_db37shmagxd039jpe_postmeta	wpda_rows_per_page_db37shmagxd039wpstg0_usermeta	wpda_rows_per_page_information_schema_tables	wpda_rows_per_page_jpe_posts	wppb_elementor_styling_notice_dismiss_notification	wppb_migrated_free_add_ons_dismiss_notification	wppb_pms_cross_promo_dismiss_notification
    Plugin Author Javier Carazo

    (@carazo)

    The problem came from the fact that you had headers with :: in the name, i.e. as the metadata title. For the plugin, data with :: are lists or arrays. In the headers there could not be arrays and hence the error.

    As I can not avoid that any plugin uses :: in its meta-keys, I have adapted the operation of how the plugin works by reading this first row.

    Upgrade to the last version and it will work.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.