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.

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

Supporter timezone: Africa/Cairo (GMT+02:00)

This topic contains 7 replies, has 4 voices.

Last updated by Mohamed Sayed 1 year, 1 month ago.

Assisted by: Mohamed Sayed.

Author Posts
March 9, 2024 at 11:24 am #15391333

hassanA-25

I found out that your plugin is the problem that causing the critical error in our site.

Most likely WPML Media plugin is the main issue that need to be fixed

Please

March 9, 2024 at 12:59 pm #15391459

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi there.

Before this ticket gets assigned to my colleagues, I will try to help.

1. Usually, the 500 errors (Internal Server Errors - blank pages) are related to the server configuration or server limitations being reached.

You can check our documentation to see if you meet all the WPML minimum requirements here: https://wpml.org/home/minimum-requirements/

2. Also, please take a look here:
https://wpml.org/faq/500-error

3. You can also activate WordPress debug to find out more about what is actually happening when you receive that 500 error:
https://wpml.org/documentation/support/debugging-wpml/

4. This issue might also be caused by incompatibility or not 100% compatibility between WPML and (at least) one of the active plugins or the active theme.

Can you please try to see if this issue happens even when only the WPML plugins are active and you are using a default WordPress theme?

Please try the following steps so that we can test for a compatibility-related issue:

- create a full website backup

- disable all plugins except WPML and its add-ons

- check if the issue is happening again

- if it's not, reactivate your plugins one by one, checking every time if the issue shows up again so that you can understand which plugin is causing that issue

If the issue happens even with the non-WPML plugins disabled:
- leave all the non-WPML plugins deactivated

- switch to a default theme like TwentySeventeen

- try to recreate the issue now

If you have the chance, it would be best to do this in a staging (testing) environment.

I hope that you will find this information helpful.

Please let us know how things go.

Mihai Apetrei

March 9, 2024 at 12:59 pm #15391460

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

To help you faster, I've enabled a private message for submitting the debug information for this support ticket. Please see this link for how to get this information from your site and give it to us:
http://wpml.org/faq/provide-debug-information-faster-support/

Make sure to only use the private reply form to provide this information. Please do not paste the debug information directly into a comment on this ticket.

Best regards
Andreas

March 10, 2024 at 5:07 am #15392063

hassanA-25

this issue been for months..

March 10, 2024 at 10:36 am #15392395

Mohamed Sayed

Hi,
I am taking over this ticket from now on and will be glad to help you.

I couldn't find any issues with the site's debug info.

1. Kindly confirm if the issue is fixed when the WPML media plugin is disabled.

2. Please provide me with the WordPress debug.log, this will allow us to see if any PHP errors are being produced. More Info: https://wordpress.org/support/article/debugging-in-wordpress/

To enable it, open your wp-config.php file and look for:

define('WP_DEBUG', false);

And change it to:

define('WP_DEBUG', true);
// Enable Debug logging to the /wp-content/debug.log file
define('WP_DEBUG_LOG', true);
// Disable display of errors and warnings which is recommended on a live site.
define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors',0);

Then try to reproduce the issue and check if any errors were saved to the debug.log log file inside the /wp-content/ directory.

If you can paste your debug.log to https://pastebin.com/ and provide me that link, it would be great!

Kind regards,
Mohamed

March 12, 2024 at 7:33 pm #15401349

hassanA-25

Hi

I deactivated the media plugin and the issue was not fixed. Then, I deactivated the "WPML Multilingual CMS" and immediately the issue was resolved.

I followed the steps for the wp debug but eventually could not view the file instead get this message: "500 Internal Error (ID 95920966130598)"

March 12, 2024 at 11:00 pm #15401702

Mohamed Sayed

To best troubleshoot the issue, kindly create a copy of your site and provide a link to download it. You can use the Duplicator plugin (https://wordpress.org/plugins/duplicator/) or the All-in-One WP Migration plugin (https://wordpress.org/plugins/all-in-one-wp-migration/).

The plugin will create a package file that you can download then upload again to Google Drive or Dropbox and share the download link in the next reply which I have marked as private. I'll import it to debug the issue locally, then escalate it to our 2nd tier support team for further investigation if needed.

Please check here for more details: https://wpml.org/faq/provide-supporters-copy-site/

Thanks for your cooperation.

March 13, 2024 at 10:20 am #15402934

Mohamed Sayed

The debug log shows multiple errors from the X-Currency-Pro plugin:

[13-Mar-2024 08:45:51 UTC] PHP Fatal error:  Uncaught TypeError: XCurrencyPro\App\Providers\NavMenuSwitcherServiceProvider::filter_walker_nav_menu_start_el(): Argument #2 ($menu_item) must be of type WP_Post, WPML_LS_Menu_Item given, called in ......./wp-includes/class-wp-hook.php on line 326 and defined in ......./wp-content/plugins/x-currency-pro/app/Providers/NavMenuSwitcherServiceProvider.php:22
Stack trace:
#0 ....../wp-includes/class-wp-hook.php(326): XCurrencyPro\App\Providers\NavMenuSwitcherServiceProvider->filter_walker_nav_menu_start_el('<a title="Engli...', Object(WPML_LS_Menu_Item))
#1 ......./wp-includes/plugin.php(205): WP_Hook->apply_filters('<a title="Engli...', Array)
#2 ....../wp-content/themes/woodmart/inc/modules/mega-menu-walker/class-mega-menu-walker.php(543): apply_filters('walker_nav_menu...', '<a title="Engli...', Object(WPML_LS_Menu_Item), 0, Object(stdClass))
#3 ......./wp-includes/class-wp-walker.php(147): XTS\Modules\Mega_Menu_Walker->start_el('<li id="menu-it...', Object(WPML_LS_Menu_Item), 0, Object(stdClass))
#4 ......../wp-includes/class-wp-walker.php(247): Walker->display_element(Object(WPML_LS_Menu_Item), Array, 0, 0, Array, '<li id="menu-it...')
#5 ......../wp-includes/nav-menu-template.php(616): Walker->walk(Array, 0, Object(stdClass))
#6 ......./wp-includes/nav-menu-template.php(236): walk_nav_menu_tree(Array, 0, Object(stdClass))
#7 ............/wp-content/themes/woodmart/header-elements/menu.php(33): wp_nav_menu(Object(stdClass))
#8 ........../wp-content/themes/woodmart/inc/modules/header-builder/elements/abstract/class-element.php(77): require('/home4/telgerrh...')
#9 ....../wp-content/themes/woodmart/inc/modules/header-builder/class-frontend.php(210): XTS\Modules\Header_Builder\Element->render(Array, '')
#10 ...../wp-content/themes/woodmart/inc/modules/header-builder/class-frontend.php(198): XTS\Modules\Header_Builder\Frontend->render_element(Array)
#11 ....../wp-content/themes/woodmart/inc/modules/header-builder/class-frontend.php(198): XTS\Modules\Header_Builder\Frontend->render_element(Array)
#12 ....../wp-content/themes/woodmart/inc/modules/header-builder/class-frontend.php(198): XTS\Modules\Header_Builder\Frontend->render_element(Array)
#13 ....../wp-content/themes/woodmart/inc/modules/header-builder/class-frontend.php(149): XTS\Modules\Header_Builder\Frontend->render_element(Array)
#14 ......./wp-content/themes/woodmart/inc/modules/header-builder/functions.php(25): XTS\Modules\Header_Builder\Frontend->generate_header()
#15 ......./wp-content/themes/woodmart/header.php(26): whb_generate_header()
#16 ....../wp-includes/template.php(790): require_once('/home4/telgerrh...')
#17 ....../wp-includes/template.php(725): load_template('/home4/telgerrh...', true, Array)
#18 ....../wp-includes/general-template.php(48): locate_template(Array, true, true, Array)
#19 ...../wp-content/themes/woodmart/inc/modules/layouts/class-layout-type.php(43): get_header()
#20 ...../wp-content/themes/woodmart/inc/modules/layouts/class-single-product.php(71): XTS\Modules\Layouts\Layout_Type->before_template_content()
#21 ..../wp-content/themes/woodmart/inc/modules/layouts/class-single-product.php(59): XTS\Modules\Layouts\Single_Product->display_template()
#22 ...../wp-includes/class-wp-hook.php(324): XTS\Modules\Layouts\Single_Product->override_template('/home4/telgerrh...')
#23 ...../wp-includes/plugin.php(205): WP_Hook->apply_filters('/home4/telgerrh...', Array)
#24 ...../wp-includes/template-loader.php(104): apply_filters('template_includ...', '/home4/telgerrh...')
#25 ...../wp-blog-header.php(19): require_once('/home4/telgerrh...')
#26 ......./index.php(17): require('/home4/telgerrh...')
#27 {main}
  thrown in ....../wp-content/plugins/x-currency-pro/app/Providers/NavMenuSwitcherServiceProvider.php on line 22


[13-Mar-2024 08:19:24 UTC] PHP Fatal error:  Uncaught TypeError: Argument 2 passed to XCurrencyPro\App\Providers\NavMenuSwitcherServiceProvider::filter_walker_nav_menu_start_el() must be an instance of WP_Post, instance of WPML_LS_Menu_Item given, called in /home4/telgerrh/public_html/wp-includes/class-wp-hook.php on line 326 and defined in /home4/telgerrh/public_html/wp-content/plugins/x-currency-pro/app/Providers/NavMenuSwitcherServiceProvider.php:22
Stack trace:
#0 ...../wp-includes/class-wp-hook.php(326): XCurrencyPro\App\Providers\NavMenuSwitcherServiceProvider->filter_walker_nav_menu_start_el('<a title="Engli...', Object(WPML_LS_Menu_Item))
#1........./wp-includes/plugin.php(205): WP_Hook->apply_filters('<a title="Engli...', Array)
#2......../wp-content/themes/woodmart/inc/modules/mega-menu-walker/class-mega-menu-walker.php(543): apply_filters('walker_nav_menu...', '<a title="Engli...', Object(WPML_LS_Menu_Item), 0, Object(stdClass))
#3 ......./wp-includes/class-wp-wa in /home4/telgerrh/public_html/wp-content/plugins/x-currency-pro/app/Providers/NavMenuSwitcherServiceProvider.php on line 22

Please disable the X-Currency and the X-Currency Pro plugins then check if the issue is resolved.

The topic ‘[Closed] a critical error (WPML plugin)’ is closed to new replies.