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.

This topic contains 9 replies, has 2 voices.

Last updated by Laura 4 months, 1 week ago.

Assigned support staff: Laura.

Author Posts
June 3, 2019 at 6:46 am #3939569

edoardoG-2

after cloning subsite, even if the set language is Italian the site remains in English even changing the settings, making a reset wpml seems to reset itself, but the deactivate button does not work. in short, there is something wrong after cloning.

EDIT: after test, now i have installed the plugin in the subsite but is a mixed language english and italian

June 3, 2019 at 2:19 pm #3943339

Laura
Supporter

Languages: English (English ) Italian (Italiano ) Portuguese (Brazil) (Português )

Timezone: Europe/Rome (GMT+02:00)

Hi,

thanks for contacting us.

Could you explain to me exactly what you did here?
If you set the site language in User -> Your profile you can see all in Italian?
Also, I see in your debug information there are missing plugins information, could you add them?

June 3, 2019 at 2:24 pm #3943429

edoardoG-2

all the settings relating to languages have been set to Italian. yet the site remains and is displayed in English.

this problem appears only on a sub-site in the network that was linked to another sub-site.

June 4, 2019 at 7:23 am #3948619

Laura
Supporter

Languages: English (English ) Italian (Italiano ) Portuguese (Brazil) (Português )

Timezone: Europe/Rome (GMT+02:00)

Hi,

try clearing the cache in WPML going to:
WPML -> Support -> "troubleshooting" link -> "Clear the WPML cache" button
Please do a backup before

If this doesn't help, could you try to enable the WordPress debug log? This will allow us to see if any PHP errors are being produced, and the deactivate button not working makes me think something is wrong. More Info: https://codex.wordpress.org/Debugging_in_WordPress Edit wp-config.php and insert the following lines:

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

Browse to the page with the issue and/or reproduce the issue.

Locate the debug log in: /wp-content/debug.log

Paste the latest lines here. No need to paste the entire log file, just 50 lines or so will do. Please censor any sensitive information.

June 5, 2019 at 3:18 pm #3962271

edoardoG-2

Clear cache not working.

[05-Jun-2019 14:00:20 UTC] PHP Notice:  Trying to get property 'post_type' of non-object in /var/web/site/public_html/wp-includes/class-wp-query.php on line 4094
[05-Jun-2019 14:02:13 UTC] PHP Warning:  Use of undefined constant ICL_SITEPRESS_VERSION - assumed 'ICL_SITEPRESS_VERSION' (this will throw an Error in a future version of PHP) in /var/web/site/public_html/wp-content/plugins/wp-seo-multilingual/plugin.php on line 15
[05-Jun-2019 14:02:18 UTC] PHP Warning:  Use of undefined constant ICL_SITEPRESS_VERSION - assumed 'ICL_SITEPRESS_VERSION' (this will throw an Error in a future version of PHP) in /var/web/site/public_html/wp-content/plugins/wp-seo-multilingual/plugin.php on line 15
[05-Jun-2019 14:58:18 UTC] PHP Deprecated:  strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /var/web/site/public_html/wp-content/plugins/wp-defender/app/module/advanced-tools/component/mask-api.php on line 46
[05-Jun-2019 14:58:18 UTC] PHP Notice:  Trying to get property 'post_type' of non-object in /var/web/site/public_html/wp-includes/class-wp-query.php on line 4094
[05-Jun-2019 15:00:04 UTC] PHP Deprecated:  strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /var/web/site/public_html/wp-content/plugins/wp-defender/app/module/advanced-tools/component/mask-api.php on line 46
[05-Jun-2019 15:00:22 UTC] PHP Deprecated:  strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /var/web/site/public_html/wp-content/plugins/wp-defender/app/module/advanced-tools/component/mask-api.php on line 46
[05-Jun-2019 15:00:22 UTC] PHP Notice:  Trying to get property 'post_type' of non-object in /var/web/site/public_html/wp-includes/class-wp-query.php on line 4094
[05-Jun-2019 15:02:15 UTC] PHP Deprecated:  strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /var/web/site/public_html/wp-content/plugins/wp-defender/app/module/advanced-tools/component/mask-api.php on line 46
[05-Jun-2019 15:02:15 UTC] PHP Notice:  Trying to get property 'post_type' of non-object in /var/web/site/public_html/wp-includes/class-wp-query.php on line 4094
[05-Jun-2019 15:03:38 UTC] PHP Notice:  Undefined offset: 9 in /var/web/site/public_html/wp-content/plugins/wp-google-maps-pro/legacy-core.php on line 1338
[05-Jun-2019 15:03:38 UTC] PHP Notice:  Undefined offset: 9 in /var/web/site/public_html/wp-content/plugins/wp-google-maps-pro/legacy-core.php on line 1348
[05-Jun-2019 15:04:19 UTC] PHP Deprecated:  strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /var/web/site/public_html/wp-content/plugins/wp-defender/app/module/advanced-tools/component/mask-api.php on line 46
[05-Jun-2019 15:04:19 UTC] PHP Notice:  Trying to get property 'post_type' of non-object in /var/web/site/public_html/wp-includes/class-wp-query.php on line 4094
[05-Jun-2019 15:05:04 UTC] PHP Deprecated:  strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /var/web/site/public_html/wp-content/plugins/wp-defender/app/module/advanced-tools/component/mask-api.php on line 46
[05-Jun-2019 15:06:18 UTC] PHP Deprecated:  strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /var/web/site/public_html/wp-content/plugins/wp-defender/app/module/advanced-tools/component/mask-api.php on line 46
[05-Jun-2019 15:06:18 UTC] PHP Notice:  Trying to get property 'post_type' of non-object in /var/web/site/public_html/wp-includes/class-wp-query.php on line 4094
[05-Jun-2019 15:08:02 UTC] PHP Deprecated:  strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /var/web/site/public_html/wp-content/plugins/wp-defender/app/module/advanced-tools/component/mask-api.php on line 46
[05-Jun-2019 15:08:05 UTC] PHP Deprecated:  strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /var/web/site/public_html/wp-content/plugins/wp-defender/app/module/advanced-tools/component/mask-api.php on line 46
[05-Jun-2019 15:08:10 UTC] PHP Deprecated:  strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /var/web/site/public_html/wp-content/plugins/wp-defender/app/module/advanced-tools/component/mask-api.php on line 46
[05-Jun-2019 15:08:15 UTC] PHP Deprecated:  strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /var/web/site/public_html/wp-content/plugins/wp-defender/app/module/advanced-tools/component/mask-api.php on line 46
[05-Jun-2019 15:08:18 UTC] PHP Deprecated:  strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /var/web/site/public_html/wp-content/plugins/wp-defender/app/module/advanced-tools/component/mask-api.php on line 46
[05-Jun-2019 15:08:20 UTC] PHP Deprecated:  strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /var/web/site/public_html/wp-content/plugins/wp-defender/app/module/advanced-tools/component/mask-api.php on line 46
[05-Jun-2019 15:08:20 UTC] PHP Deprecated:  strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /var/web/site/public_html/wp-content/plugins/wp-defender/app/module/advanced-tools/component/mask-api.php on line 46
[05-Jun-2019 15:08:23 UTC] PHP Deprecated:  strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /var/web/site/public_html/wp-content/plugins/wp-defender/app/module/advanced-tools/component/mask-api.php on line 46
[05-Jun-2019 15:08:23 UTC] PHP Notice:  Trying to get property 'post_type' of non-object in /var/web/site/public_html/wp-includes/class-wp-query.php on line 4094
[05-Jun-2019 15:08:28 UTC] PHP Deprecated:  strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /var/web/site/public_html/wp-content/plugins/wp-defender/app/module/advanced-tools/component/mask-api.php on line 46
[05-Jun-2019 15:08:36 UTC] PHP Deprecated:  strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /var/web/site/public_html/wp-content/plugins/wp-defender/app/module/advanced-tools/component/mask-api.php on line 46
[05-Jun-2019 15:08:51 UTC] PHP Deprecated:  strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /var/web/site/public_html/wp-content/plugins/wp-defender/app/module/advanced-tools/component/mask-api.php on line 46
[05-Jun-2019 15:08:54 UTC] PHP Notice:  Trying to get property 'post_type' of non-object in /var/web/site/public_html/wp-includes/class-wp-query.php on line 4094
[05-Jun-2019 15:09:04 UTC] PHP Deprecated:  strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /var/web/site/public_html/wp-content/plugins/wp-defender/app/module/advanced-tools/component/mask-api.php on line 46
[05-Jun-2019 15:09:50 UTC] PHP Deprecated:  strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /var/web/site/public_html/wp-content/plugins/wp-defender/app/module/advanced-tools/component/mask-api.php on line 46
[05-Jun-2019 15:09:54 UTC] PHP Deprecated:  strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /var/web/site/public_html/wp-content/plugins/wp-defender/app/module/advanced-tools/component/mask-api.php on line 46
[05-Jun-2019 15:09:54 UTC] PHP Deprecated:  strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /var/web/site/public_html/wp-content/plugins/wp-defender/app/module/advanced-tools/component/mask-api.php on line 46
[05-Jun-2019 15:09:58 UTC] PHP Deprecated:  strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /var/web/site/public_html/wp-content/plugins/wp-defender/app/module/advanced-tools/component/mask-api.php on line 46
[05-Jun-2019 15:10:06 UTC] PHP Deprecated:  strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /var/web/site/public_html/wp-content/plugins/wp-defender/app/module/advanced-tools/component/mask-api.php on line 46
[05-Jun-2019 15:10:07 UTC] PHP Deprecated:  strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /var/web/site/public_html/wp-content/plugins/wp-defender/app/module/advanced-tools/component/mask-api.php on line 46
[05-Jun-2019 15:10:13 UTC] PHP Deprecated:  strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /var/web/site/public_html/wp-content/plugins/wp-defender/app/module/advanced-tools/component/mask-api.php on line 46
[05-Jun-2019 15:10:21 UTC] PHP Deprecated:  strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /var/web/site/public_html/wp-content/plugins/wp-defender/app/module/advanced-tools/component/mask-api.php on line 46
[05-Jun-2019 15:10:21 UTC] PHP Notice:  Trying to get property 'post_type' of non-object in /var/web/site/public_html/wp-includes/class-wp-query.php on line 4094
[05-Jun-2019 15:12:22 UTC] PHP Deprecated:  strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /var/web/site/public_html/wp-content/plugins/wp-defender/app/module/advanced-tools/component/mask-api.php on line 46
[05-Jun-2019 15:12:22 UTC] PHP Notice:  Trying to get property 'post_type' of non-object in /var/web/site/public_html/wp-includes/class-wp-query.php on line 4094
[05-Jun-2019 15:14:19 UTC] PHP Deprecated:  strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /var/web/site/public_html/wp-content/plugins/wp-defender/app/module/advanced-tools/component/mask-api.php on line 46
[05-Jun-2019 15:14:19 UTC] PHP Notice:  Trying to get property 'post_type' of non-object in /var/web/site/public_html/wp-includes/class-wp-query.php on line 4094
[05-Jun-2019 15:15:04 UTC] PHP Deprecated:  strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /var/web/site/public_html/wp-content/plugins/wp-defender/app/module/advanced-tools/component/mask-api.php on line 46
[05-Jun-2019 15:16:20 UTC] PHP Deprecated:  strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /var/web/site/public_html/wp-content/plugins/wp-defender/app/module/advanced-tools/component/mask-api.php on line 46
[05-Jun-2019 15:16:20 UTC] PHP Notice:  Trying to get property 'post_type' of non-object in /var/web/site/public_html/wp-includes/class-wp-query.php on line 4094
June 6, 2019 at 8:00 am #3966871

Laura
Supporter

Languages: English (English ) Italian (Italiano ) Portuguese (Brazil) (Português )

Timezone: Europe/Rome (GMT+02:00)

Hi,

could you give me the credentials so I can better check the issue?
I'll enable a private reply.

June 7, 2019 at 11:22 am #3975847

Laura
Supporter

Languages: English (English ) Italian (Italiano ) Portuguese (Brazil) (Português )

Timezone: Europe/Rome (GMT+02:00)

Hi,

how did you clone the site?
Could you check which icl_ tables are in you database?

June 11, 2019 at 10:58 am #3994389

edoardoG-2

i have cloned with hidden link

icl_languages_translations
icl_locale_map
icl_message_status
icl_mo_files_domains
icl_node
icl_reminders
icl_strings
icl_string_packages
icl_string_pages
icl_string_positions
icl_string_status
icl_string_translations
icl_string_urls
icl_translate
icl_translate_job
icl_translations
icl_translation_batches
icl_translation_status

June 13, 2019 at 12:17 pm #4012665

Laura
Supporter

Languages: English (English ) Italian (Italiano ) Portuguese (Brazil) (Português )

Timezone: Europe/Rome (GMT+02:00)

Hi,

sorry for the late reply. I consulted with colleagues but since cloning isn't a standard WP procedure, we think there might be compatibility issues with the plugin.
Do you think it would be possible to try to reproduce the issue? I could set up a fresh multisite installation and you could try to clone a sample website. It would work inside the same network?

June 13, 2019 at 2:18 pm #4013675

edoardoG-2

we can try to reproduce the problem. need a multisite installation set wpml and all addons activating it globally insert the plugin to clone and activate it globally create a sub site that will be the original to be cloned.

then clone that site.

can you create it?

The topic ‘[Closed] the language is incorrect and reset in multisite after cloning the’ is closed to new replies.