Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Our next available supporter will start replying to tickets in about 6.29 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: America/Los_Angeles (GMT-07:00)

This topic contains 3 replies, has 2 voices.

Last updated by Bobby 11 months, 3 weeks ago.

Assisted by: Bobby.

Author Posts
May 9, 2023 at 6:32 pm #13616667

maratC

Greetings!

I was working on my website swissville.ru and now I have an issue with WPML. While trying to translate my website, I went to WPML - settings - Post Types Translation… Then I chose Changesets (customize_changeset) and picked Translatable only show translated option. As a result, my website went down (front page), showing the following:

Fatal error: Uncaught TypeError: array_replace(): Argument #2 must be of type array, null given in /var/www/u7930931/data/www/swissville.ru/wp-content/plugins/elementor/includes/managers/icons.php:202 Stack trace: #0 /var/www/u7930931/data/www/swissville.ru/wp-content/plugins/elementor/includes/managers/icons.php(202): array_replace(Array, NULL) #1 /var/www/u7930931/data/www/swissville.ru/wp-content/plugins/elementor/includes/managers/icons.php(253): Elementor\Icons_Manager::get_icon_manager_tabs() #2 /var/www/u7930931/data/www/swissville.ru/wp-content/plugins/elementor/includes/managers/icons.php(86): Elementor\Icons_Manager::get_icon_manager_tabs_config() #3 /var/www/u7930931/data/www/swissville.ru/wp-includes/class-wp-hook.php(308): Elementor\Icons_Manager->register_styles('') #4 /var/www/u7930931/data/www/swissville.ru/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array) #5 /var/www/u7930931/data/www/swissville.ru/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #6 /var/www/u7930931/data/www/swissville.ru/wp-content/plugins/elementor/includes/frontend.php(577): do_action('elementor/front...') #7 /var/www/u7930931/data/www/swissville.ru/wp-includes/class-wp-hook.php(308): Elementor\Frontend->register_styles('') #8 /var/www/u7930931/data/www/swissville.ru/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #9 /var/www/u7930931/data/www/swissville.ru/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #10 /var/www/u7930931/data/www/swissville.ru/wp-includes/script-loader.php(2194): do_action('wp_enqueue_scri...') #11 /var/www/u7930931/data/www/swissville.ru/wp-includes/class-wp-hook.php(308): wp_enqueue_scripts('') #12 /var/www/u7930931/data/www/swissville.ru/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #13 /var/www/u7930931/data/www/swissville.ru/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #14 /var/www/u7930931/data/www/swissville.ru/wp-includes/general-template.php(3049): do_action('wp_head') #15 /var/www/u7930931/data/www/swissville.ru/wp-content/themes/bithu/header.php(17): wp_head() #16 /var/www/u7930931/data/www/swissville.ru/wp-includes/template.php(783): require_once('/var/www/u79309...') #17 /var/www/u7930931/data/www/swissville.ru/wp-includes/template.php(718): load_template('/var/www/u79309...', true, Array) #18 /var/www/u7930931/data/www/swissville.ru/wp-includes/general-template.php(48): locate_template(Array, true, true, Array) #19 /var/www/u7930931/data/www/swissville.ru/wp-content/plugins/elementor/modules/page-templates/templates/header-footer.php(9): get_header() #20 /var/www/u7930931/data/www/swissville.ru/wp-includes/template-loader.php(106): include('/var/www/u79309...') #21 /var/www/u7930931/data/www/swissville.ru/wp-blog-header.php(19): require_once('/var/www/u79309...') #22 /var/www/u7930931/data/www/swissville.ru/index.php(17): require('/var/www/u79309...') #23 {main} thrown in /var/www/u7930931/data/www/swissville.ru/wp-content/plugins/elementor/includes/managers/icons.php on line 202
>

I have tried to deactivate plugins one by one, and it did not help.

Please, give me a hand in order to fix this problem… Sadly I am lost and do not know how to handle it.

Regards,
Marat

May 9, 2023 at 10:42 pm #13617859

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hi Marat,

taking a look at the error log provided I can see this fatal error is coming from the Elementor plugin (/plugins/elementor/includes/managers/icons.php:202 ) and not WPML's code.

-- Does the error resolve when deactivating WPML?

May 10, 2023 at 9:11 am #13619903

maratC

Hello, Bobby!

Thank you for your kind response. Unfortunately the same error remains, even when the WPML plugin is deactivated.

May 10, 2023 at 4:52 pm #13625581

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hi there,

Thank you for updating me with your results!

Based on the error log this is an error caused by Elementor and not WPML's code.

If WPML was part of the reason this error was caused it would be resolved once the WPML plugin was deactivated.

Please contact Elementor's team as they should be able to further assist.

I would also recommend testing with a minimal environment in a staging site or localhost to see if this is being caused by another 3rd party plugin and Elementor's plugin.

The topic ‘[Closed] Fatal error: Uncaught TypeError: array_replace(): Argument #2’ is closed to new replies.