Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
You are encountering a WPML AJAX error [0] when trying to access a specific WPML settings page in your WordPress admin. You tried following a method from an errata link, but it did not resolve the issue.
Solution:
We recommend enabling the debug mode to gather more information about the error. Here’s how you can do it:
1. Open your

wp-config.php

file.
2. Find the line

define('WP_DEBUG', false);

and change it to:

define('WP_DEBUG', true);

3. Add another line to enable error logging to a file on your server:

define('WP_DEBUG_LOG', true);

This will save the errors to a

debug.log

file inside the /wp-content/ directory. For more details on debugging WPML, visit WPML Debugging Documentation.
After enabling debug mode, check the debug.log file for errors and let us know what you find.

Please note that this solution might be outdated or not applicable to your specific case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket at WPML Support Forum.

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 0 voices.

Last updated by Andrey 5 months ago.

Assisted by: Andrey.

Author Posts
January 26, 2025 at 3:24 pm #16635294

ethanL-3

Background of the issue:
I encountered a WPML AJAX error [0] while trying to access hidden link. I followed the method described in https://wpml.org/errata/opcache-php-fatal-error-uncaught-typeerror-wpmluserusersbycapsrepository__construct-argument-2-languagepairs-must-be-of-type-wpmluserlanguagepairsilanguagepairs/ but it didn't solve the problem.

Symptoms:
I expected to see a normal page load, but instead, I got a WPML AJAX error [0].

Questions:
How can I resolve the WPML AJAX error [0]?
Is there a specific troubleshooting step I missed from the provided errata link?

January 27, 2025 at 9:46 pm #16639359

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

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

Thank you for contacting WPML support.

Please activate the debug.log and check for the error when you open the page.

To enable it, open your wp-config.php file and look for define(‘WP_DEBUG’, false);. Change it to:

define('WP_DEBUG', true);

In order to enable the error logging to a file on the server you need to add yet one more similar line:

define( 'WP_DEBUG_LOG', true );

In this case, the errors will be saved to a debug.log log file inside the /wp-content/directory.

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

Let me know what you see after the debug mode has been enabled.

January 31, 2025 at 4:29 pm #16656685

ethanL-3

{"core":{"Wordpress":{"Multisite":"No","SiteURL":"http:\/\/ccff2.com","HomeURL":"http:\/\/ccff2.com","Version":"6.7.1","PermalinkStructure":"\/%year%\/%monthnum%\/%postname%\/","PostTypes":"post, page, attachment, revision, nav_menu_item, custom_css, customize_changeset, oembed_cache, user_request, wp_block, wp_template, wp_template_part, wp_global_styles, wp_navigation, wp_font_family, wp_font_face","PostStatus":"publish, future, draft, pending, private, trash, auto-draft, inherit, request-pending, request-confirmed, request-failed, request-completed","RestEnabled":"No"},"Server":{"jQueryVersion":"3.7.1","PHPVersion":"8.1.31","MySQLVersion":"5.7.44","ServerSoftware":"nginx\/1.26.2"},"PHP":{"MemoryLimit":"512M","WP Memory Limit":"128M","UploadMax":"500M","PostMax":"500M","TimeLimit":"3000","MaxInputVars":"1000","MBString":true,"libxml":true}},"plugins":{"active_plugins":{"sitepress-multilingual-cms\/sitepress.php":{"Plugin Slug":"sitepress-multilingual-cms","Name":"WPML Multilingual CMS","PluginURI":"https:\/\/wpml.org\/","Version":"4.6.15","Author":"OnTheGoSystems","AuthorURI":"http:\/\/www.onthegosystems.com\/","TextDomain":"sitepress-multilingual-cms","DomainPath":"","Network":false,"RequiresWP":"","RequiresPHP":"","UpdateURI":"","RequiresPlugins":"","Title":"WPML Multilingual CMS","AuthorName":"OnTheGoSystems"}},"mu_plugins":[],"dropins":[]},"theme":{"Name":"Twenty Twenty-Three","ThemeURI":false,"Author":"the WordPress team","AuthorURI":"https:\/\/wordpress.org","Template":"","Version":"1.5","TextDomain":"twentytwentythree","DomainPath":"","ParentName":""},"extra-debug":{"installer":{"version":"3.1.7","repositories":{"wpml":{"api-url":"https:\/\/api.wpml.org\/","bucket-url":"https:\/\/cdn.wpml.org\/wpml-bucket-55.json","subscription":{"key":"dgbx4WyRqc","key_type":0,"data":{"subscription_type":6719,"expires":"2026-01-22","status":"1","notes":"","order_id":"16624165","hasAutoRenewal":true},"registered_by":1,"site_url":"http:\/\/ccff2.com"},"last-successful-subscription-fetch":"2025-01-30 10:44:13"},"toolset":{"api-url":"https:\/\/api.toolset.com\/","bucket-url":"not assigned","subscription":"","last-successful-subscription-fetch":"none"}},"instances":{"\/www\/wwwroot\/ccff2_com\/wp-content\/plugins\/sitepress-multilingual-cms\/vendor\/otgs\/installer\/installer.php":{"bootfile":"\/www\/wwwroot\/ccff2_com\/wp-content\/plugins\/sitepress-multilingual-cms\/vendor\/otgs\/installer\/installer.php","version":"3.1.7","args":{"plugins_install_tab":1,"site_key_nags":[{"repository_id":"wpml","product_name":"WPML","condition_cb":[{"wpdb":{"show_errors":false,"suppress_errors":false,"last_error":"","num_queries":115,"num_rows":2,"rows_affected":0,"insert_id":0,"last_query":"SELECT option_name, option_value FROM wp_options WHERE option_name IN (\u0027_transient_wp-rest-enabled-ping\u0027,\u0027_transient_timeout_wp-rest-enabled-ping\u0027)","last_result":[{"option_name":"_transient_timeout_wp-rest-enabled-ping","option_value":"1738344252"},{"option_name":"_transient_wp-rest-enabled-ping","option_value":"disabled"}],"queries":null,"prefix":"wp_","base_prefix":"wp_","ready":true,"blogid":0,"siteid":0,"tables":["posts","comments","links","options","postmeta","terms","term_taxonomy","term_relationships","termmeta","commentmeta"],"old_tables":["categories","post2cat","link2cat"],"global_tables":["users","usermeta"],"ms_global_tables":["blogs","blogmeta","signups","site","sitemeta","registration_log"],"old_ms_global_tables":["sitecategories"],"comments":"wp_comments","commentmeta":"wp_commentmeta","links":"wp_links","options":"wp_options","postmeta":"wp_postmeta","posts":"wp_posts","terms":"wp_terms","term_relationships":"wp_term_relationships","term_taxonomy":"wp_term_taxonomy","termmeta":"wp_termmeta","usermeta":"wp_usermeta","users":"wp_users","blogs":null,"blogmeta":null,"registration_log":null,"signups":null,"site":null,"sitecategories":null,"sitemeta":null,"field_types":{"post_author":"%d","post_parent":"%d","menu_order":"%d","term_id":"%d","term_group":"%d","term_taxonomy_id":"%d","parent":"%d","count":"%d","object_id":"%d","term_order":"%d","ID":"%d","comment_ID":"%d","comment_post_ID":"%d","comment_parent":"%d","user_id":"%d","link_id":"%d","link_owner":"%d","link_rating":"%d","option_id":"%d","blog_id":"%d","meta_id":"%d","post_id":"%d","user_status":"%d","umeta_id":"%d","comment_karma":"%d","comment_count":"%d","active":"%d","cat_id":"%d","deleted":"%d","lang_id":"%d","mature":"%d","public":"%d","site_id":"%d","spam":"%d"},"charset":"utf8mb4","collate":"utf8mb4_unicode_520_ci","func_call":"$db-\u003Equery(\u0022SELECT option_name, option_value FROM wp_options WHERE option_name IN (\u0027_transient_wp-rest-enabled-ping\u0027,\u0027_transient_timeout_wp-rest-enabled-ping\u0027)\u0022)","is_mysql":true,"time_start":null,"error":null,"categories":"wp_categories","post2cat":"wp_post2cat","link2cat":"wp_link2cat"},"locale_utils":{},"footer_preview":false,"icl_translations_cache":null,"icl_language_name_cache":{},"icl_term_taxonomy_cache":null,"ROOT_URL_PAGE_ID":null},"setup"]}]},"delegated":true}}}}}

February 3, 2025 at 3:37 pm #16663567

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

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

Thank you for your feedback. What do you have in the debug.log? It can be found in the /wp-content/debug.log directory when you activate debugging in wp-config.php and visit the page with the problem.