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 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 -
- 19:00 – 22:00 19:00 – 22:00 19:00 – 22:00 19:00 – 22:00 19:00 – 22:00 -

Supporter timezone: Europe/Paris (GMT+01:00)

This topic contains 6 replies, has 3 voices.

Last updated by Yvette 4 years, 7 months ago.

Assisted by: Yvette.

Author Posts
June 5, 2020 at 6:40 pm #6308013

frankN-14

I am trying to:
Find a new theme under /wp-admin/theme-install.php?browse=featured, but there are no themes until i deactivate WPML Multilingual CMS (WPML 4.3.15) in the plugin page

Link to a page where the issue can be seen:
hidden link

I expected to see:
The themes from the theme directory

Instead, I got:
Empty page

Screenshot 1 plugin disabled, screenshot 2 plugin activated

Error message from log after activate wp_debug true is:
PHP Warning: Invalid argument supplied for foreach() in /usr/www/users/xxx/xxx.com/wp-admin/includes/ajax-actions.php on line 3520

Bildschirmfoto 2020-06-05 um 20.34.50.png
Bildschirmfoto 2020-06-05 um 20.35.06.png
June 8, 2020 at 10:51 am #6320027

Otto
Supporter

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

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello there,

Welcome to WPML support forum.

Please apologize for the delay in answering. This is not usual in this forum. While one of my teammates takes care of your case I will provide you with the first debugging steps.

I could not reproduce the issue in a test WP installation. It looks like a compatibility issue.

To check it, if it is possible for you, do this test:
***Backup your site and DB before proceeding***

-Deactivate all the plugins but WPML and its addons
-Switch to a default WP theme (Twenty Sixteen for example)
-If the issue is gone, reactivate one at a time to see with which one is the conflict

I also suggest increasing the WP Memory Limit.

Your current values are:
- MemoryLimit 256M
- WP Memory Limit 128M

Add this code to your wp-config.php to increase WP memory:

/** Memory Limit */
define('WP_MEMORY_LIMIT', '256M');

Paste it just before:

/* That's all, stop editing! Happy blogging. */

These settings can be limited directly by your hosting provider, so I recommend you to contact and ask them to modify them directly. If you can get even higher values It would be great.

https://wpml.org/home/minimum-requirements/
Note: WPML needs a minimum WP Memory limit of 128M to work only under a minimal environment, it means, with a default theme and not other plugins installed.

Let us know your results, please.

Kind regards,

Otto

June 8, 2020 at 11:50 am #6320611

frankN-14

yes, that was what i had done (standard theme, deactivate all plugins and activate one by one) and on this way it stop working when i activate WPML

Increase to 256m memory limit didn't change anything

June 8, 2020 at 12:23 pm #6320945

frankN-14

Meanwhile, i did a local clean install of wordpress DE (5.4.1–de_DE) to test this. The error happens again! Maybe there is a problem in the german version of WordPress?

debug.log says:

[08-Jun-2020 12:18:01 UTC] PHP Warning: Invalid argument supplied for foreach() in /Users/ee/Sites/testwp/wp-admin/includes/ajax-actions.php on line 3520
[08-Jun-2020 12:18:01 UTC] PHP Stack trace:
[08-Jun-2020 12:18:01 UTC] PHP 1. {main}() /Users/ee/Sites/testwp/wp-admin/admin-ajax.php:0
[08-Jun-2020 12:18:01 UTC] PHP 2. do_action() /Users/ee/Sites/testwp/wp-admin/admin-ajax.php:175
[08-Jun-2020 12:18:01 UTC] PHP 3. WP_Hook->do_action() /Users/ee/Sites/testwp/wp-includes/plugin.php:478
[08-Jun-2020 12:18:01 UTC] PHP 4. WP_Hook->apply_filters() /Users/ee/Sites/testwp/wp-includes/class-wp-hook.php:311
[08-Jun-2020 12:18:01 UTC] PHP 5. wp_ajax_query_themes() /Users/ee/Sites/testwp/wp-includes/class-wp-hook.php:287

Support data:
{"core":{"Wordpress":{"Multisite":"No","SiteURL":"http:\/\/127.0.0.1\/testwp","HomeURL":"http:\/\/127.0.0.1\/testwp","Version":"5.4.1","PermalinkStructure":"\/index.php\/%year%\/%monthnum%\/%day%\/%postname%\/","PostTypes":"post, page, attachment, revision, nav_menu_item, custom_css, customize_changeset, oembed_cache, user_request, wp_block","PostStatus":"publish, future, draft, pending, private, trash, auto-draft, inherit, request-pending, request-confirmed, request-failed, request-completed","RestEnabled":"Yes"},"Server":{"jQueryVersion":"1.12.4-wp","PHPVersion":"7.1.33","MySQLVersion":"5.5.5","ServerSoftware":"Apache\/2.4.33 (Unix) PHP\/7.1.33"},"PHP":{"MemoryLimit":"256M","WP Memory Limit":"256M","UploadMax":"2M","PostMax":"8M","TimeLimit":"30","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.3.14","Author":"OnTheGoSystems","AuthorURI":"http:\/\/www.onthegosystems.com\/","TextDomain":"sitepress-multilingual-cms","DomainPath":"","Network":false,"RequiresWP":"","RequiresPHP":"","Title":"WPML Multilingual CMS","AuthorName":"OnTheGoSystems"}},"mu_plugins":[],"dropins":[]},"theme":{"Name":"Twenty Twenty","ThemeURI":false,"Author":"the WordPress team","AuthorURI":"https:\/\/wordpress.org\/","Template":"","Version":"1.3","TextDomain":"twentytwenty","DomainPath":"","ParentName":""},"extra-debug":{"installer":{"version":"2.4.0","repositories":{"wpml":{"api-url":"https:\/\/api.wpml.org\/","bucket-url":"not assigned","subscription":""},"toolset":{"api-url":"https:\/\/api.toolset.com\/","bucket-url":"not assigned","subscription":""}},"instances":{"\/Users\/ee\/Sites\/testwp\/wp-content\/plugins\/sitepress-multilingual-cms\/vendor\/otgs\/installer\/installer.php":{"bootfile":"\/Users\/ee\/Sites\/testwp\/wp-content\/plugins\/sitepress-multilingual-cms\/vendor\/otgs\/installer\/installer.php","version":"2.4.0","args":{"plugins_install_tab":1,"site_key_nags":[{"repository_id":"wpml","product_name":"WPML","condition_cb":[{"locale_utils":{},"footer_preview":false,"icl_translations_cache":null,"icl_language_name_cache":{},"icl_term_taxonomy_cache":null,"wpdb":{"show_errors":true,"suppress_errors":false,"last_error":"","num_queries":124,"num_rows":1,"rows_affected":0,"insert_id":0,"last_query":"SELECT option_value FROM wp_options WHERE option_name = \u0027_transient_wp-rest-enabled-ping\u0027 LIMIT 1","last_result":[{"option_value":"enabled"}],"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","sitecategories","registration_log"],"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_ci","func_call":"$db-\u003Equery(\u0022SELECT option_value FROM wp_options WHERE option_name = \u0027_transient_wp-rest-enabled-ping\u0027 LIMIT 1\u0022)","is_mysql":true,"categories":"wp_categories","post2cat":"wp_post2cat","link2cat":"wp_link2cat"}},"setup"]}]},"delegated":true}}}}}

June 8, 2020 at 1:42 pm #6321981

Yvette
Supporter

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

Timezone: Europe/Paris (GMT+01:00)

Hello

I was able to recreate this on my local installation where I once had the site language as ES. C

Could you please send us a copy of your site as per this article?
https://wpml.org/faq/provide-supporters-copy-site/

I am opening the private area where you can include a downloadable link to your site. Please don´t attempt to upload the Duplicator package. Instead, use a file transfer service like WeTransfer and only send us the link to where we can download the package.

Thanks

June 10, 2020 at 7:40 am #6339063

Yvette
Supporter

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

Timezone: Europe/Paris (GMT+01:00)

THANK YOU! I really appreciate that you´ve clarified that you are only reporting the problem.

I understand that you have found a solution for it...or a workaround.
As I said, I was also able to replicate the behaviour on my local test site but these things get more attention when it is a client site that is affected.

I will be escalating this to our team as a bug.

June 10, 2020 at 11:34 am #6341439

Yvette
Supporter

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

Timezone: Europe/Paris (GMT+01:00)

Thanks gain for reportng the issue. This ticket is now escalated to our 2nd tier group for resolution.