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.

Tagged: 

This topic contains 3 replies, has 3 voices.

Last updated by Minesh 1 year, 7 months ago.

Assisted by: Minesh.

Author Posts
June 20, 2023 at 4:32 pm #13862117

erkanG

Tell us what you are trying to do?
I just install WPML and try to use auto translate option. After that I got this error from my website. There has been a critical error on this website.

Is there any documentation that you are following?
I checked asnwers from the forum but seems these answers not help for my problem.

Is there a similar example that we can see?
when you enter website you can see it.

What is the link to your site?
hidden link

June 20, 2023 at 6:23 pm #13862539

Ahmed Mohammed
Supporter

Timezone: Africa/Cairo (GMT+02:00)

Hi there,

Thank you for contacting WPML support. While you are waiting for one of my colleagues to take this ticket and work on it, let me provide you with the first debugging steps or if I can help with the issue quickly.

I understand when you try to enable the Translate Everything Automatically in WPML → Settings; you get a critical error message. Is that correct?

If so, could you please enable the WordPress debug log?

This will allow us to see if any PHP errors are being produced.

More Info: https://wpml.org/documentation/support/debugging-wpml/

In order to do that, edit the wp-config.php file inside your WordPress directory and insert the following lines:

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );

Now please reproduce the issue once again by following the same steps to replicate the critical error.

Locate the debug.log in: /wp-content/debug.log. You can log in to your website via FTP or install a plugin such as File Manager to find that debug.log file.

Paste the content (if any) on a site like pastebin.com and then share the link here with us (only you and us will see the URL you are sharing).

Looking forward to hearing back from you.

June 20, 2023 at 7:22 pm #13862765

erkanG

Hello Ahmet;

Thank you very much for you support. Here is link for log file.

hidden link

June 21, 2023 at 12:24 pm #13868063

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Based on the debug log I can see there is a fatal error:

[20-Jun-2023 18:54:10 UTC] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function SitePress::terms_clauses(), 1 passed in /home/portableboringma/public_html/wp-content/plugins/amp/includes/validation/class-amp-validation-callback-wrapper.php on line 144 and exactly 3 expected in /home/portableboringma/public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php:2633
Stack trace:
#0 /home/portableboringma/public_html/wp-content/plugins/amp/includes/validation/class-amp-validation-callback-wrapper.php(144): SitePress->terms_clauses(Array)
#1 /home/portableboringma/public_html/wp-includes/class-wp-hook.php(310): AMP_Validation_Callback_Wrapper->__invoke(Array)
#2 /home/portableboringma/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)
#3 /home/portableboringma/public_html/wp-includes/class-wp-term-query.php(731): apply_filters('terms_clauses', Array, Array, Array)
#4 /home/portableboringma/public_html/wp-includes/class-wp-term-query.php(308): WP_Term_Query->get_terms()
#5 /home/portablebori in /home/portableboringma/public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php on line 2633

In order to minimize the cause of the issue:

Could you please try to resolve your issue by deactivating all third-party plugins as well as the default theme to check for any possible conflicts with any of the plugins or themes?
- Do you see any difference?

I suspect the issue is from "Premium SEO pack - WordPress Plugin" what if you try to deactivate and check?