Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Error message: Uncaught TypeError: array_merge() #203

Closed
donmhico opened this issue Dec 18, 2024 · 0 comments · Fixed by #204
Closed

PHP Error message: Uncaught TypeError: array_merge() #203

donmhico opened this issue Dec 18, 2024 · 0 comments · Fixed by #204

Comments

@donmhico
Copy link
Contributor

donmhico commented Dec 18, 2024

Description

Some of our users are getting this PHP error.

Error details

==============

An error of type E_ERROR was caused in line 205 of the file /wp-content/plugins/wp-mail-logging/src/WPML_LifeCycle.php. Error message: Uncaught TypeError: array_merge(): Argument #2 must be of type array, null given in /wp-content/plugins/wp-mail-logging/src/WPML_LifeCycle.php:205

Stack trace:

#0 /wp-content/plugins/wp-mail-logging/src/WPML_LifeCycle.php(205): array_merge(Array, NULL)

#1 /wp-includes/class-wp-hook.php(324): No3x\WPML\WPML_LifeCycle->registerPluginActionLinks(NULL, 'wp-mail-logging...', NULL, 'all')

#2 /wp-includes/plugin.php(205): WP_Hook->apply_filters(NULL, Array)

#3 /wp-content/plugins/woocommerce-payments/vendor/automattic/jetpack-sync/src/modules/class-callables.php(399): apply_filters('plugin_action_l...', Array, 'wp-mail-logging...', NULL, 'all')

#4 /wp-includes/class-wp-hook.php(324): Automattic\Jetpack\Sync\Modules\Callables->set_plugin_action_links(Object(WP_Screen))

#5 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)

#6 /wp-includes/plugin.php(517): WP_Hook->do_action(Array)

#7 /wp-admin/includes/class-wp-screen.php(424): do_action('current_screen', Object(WP_Screen))

#8 /wp-admin/includes/screen.php(243): WP_Screen->set_current_screen()

#9 /wp-content/plugins/woocommerce-payments/vendor/automattic/jetpack-sync/src/class-sender.php(530): set_current_screen('sync')

#10 /wp-content/plugins/woocommerce-payments/vendor/automattic/jetpack-sync/src/class-sender.php(632): Automattic\Jetpack\Sync\Sender->get_items_to_send(Object(Automattic\Jetpack\Sync\Queue_Buffer), true)

#11 /wp-content/plugins/woocommerce-payments/vendor/automattic/jetpack-sync/src/class-sender.php(487): Automattic\Jetpack\Sync\Sender->do_sync_for_queue(Object(Automattic\Jetpack\Sync\Queue))

#12 /wp-content/plugins/woocommerce-payments/vendor/automattic/jetpack-sync/src/class-sender.php(362): Automattic\Jetpack\Sync\Sender->do_sync_and_set_delays(Object(Automattic\Jetpack\Sync\Queue))

#13 /wp-content/plugins/woocommerce-payments/vendor/automattic/jetpack-sync/src/class-actions.php(742): Automattic\Jetpack\Sync\Sender->do_sync()

#14 /wp-content/plugins/woocommerce-payments/vendor/automattic/jetpack-sync/src/class-actions.php(682): Automattic\Jetpack\Sync\Actions::do_cron_sync_by_type('sync')

#15 /wp-includes/class-wp-hook.php(324): Automattic\Jetpack\Sync\Actions::do_cron_sync()

#16 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)

#17 /wp-includes/plugin.php(565): WP_Hook->do_action(Array)

#18 /wp-cron.php(191): do_action_ref_array('jetpack_sync_cr...', Array)

#19 {main}

thrown

Reference

See WP.org support thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant