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 Carlos Rojas 1 month ago.

Assigned support staff: Carlos Rojas.

Author Posts
September 12, 2019 at 10:13 am

gillesD-3

Hello,

I've a problem with our product category page in english threre is no problem but in other language we got a 404 error.

I've check the permalink and cannot find what is the problem.

Regards,
Gilles.

September 12, 2019 at 3:05 pm #4562217

Carlos Rojas
Supporter

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

Timezone: America/Montevideo (GMT-03:00)

Hello,
Thank you for contacting WPML support.

I would like to ask you to follow this steps:
- Make a full backup of the site
- Update all outdated plugins and themes, specially WPML plugins.
- Flush any cache memory that might exists.
- Go to Products -> Categories -> Make sure the categories are translated.
- Go to WPML -> Support -> Troubleshooting link -> Apply the steps highlighted in the attached image.

Could you tell me the results of the steps above?

Kind regards,
Carlos

September 13, 2019 at 9:04 am #4566805

gillesD-3

Hello,

I've done all step but the problem is still there.

We've got an error with "Assign translation status to duplicated content" -> Internal server error.

Regards,
Gilles.

September 13, 2019 at 1:01 pm #4568741

Carlos Rojas
Supporter

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

Timezone: America/Montevideo (GMT-03:00)

Hi Gilles,
Thank you very much for your feedback.

In this case I kindly ask you to activate the debug mode in the site by following the steps described in this link: https://wordpress.org/support/article/debugging-in-wordpress/

Once the debug mode is activated, please follow this steps:
- Go to WPML -> Support -> Troubleshooting link -> Click on "Assign translation status to duplicated content" option.
- Share any content that might have the debug.log file which is within the wp-content folder.

Regards,
Carlos

September 16, 2019 at 10:17 am #4578773

gillesD-3

Hello,

Please find below the debug info :

[16-Sep-2019 10:16:34 UTC] PHP Notice:  is_tax was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /data/sites/web/digimaniabe7734/www/wp-includes/functions.php on line 4773
[16-Sep-2019 10:16:34 UTC] PHP Notice:  is_tag was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /data/sites/web/digimaniabe7734/www/wp-includes/functions.php on line 4773
[16-Sep-2019 10:16:34 UTC] PHP Notice:  is_category was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /data/sites/web/digimaniabe7734/www/wp-includes/functions.php on line 4773
[16-Sep-2019 10:16:34 UTC] PHP Notice:  is_singular was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /data/sites/web/digimaniabe7734/www/wp-includes/functions.php on line 4773
[16-Sep-2019 10:16:34 UTC] PHP Notice:  is_search was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /data/sites/web/digimaniabe7734/www/wp-includes/functions.php on line 4773
[16-Sep-2019 10:16:34 UTC] PHP Deprecated:  Function create_function() is deprecated in /data/sites/web/digimaniabe7734/www/wp-content/themes/thegem/inc/woocommerce.php on line 580
[16-Sep-2019 10:16:34 UTC] PHP Deprecated:  Function create_function() is deprecated in /data/sites/web/digimaniabe7734/www/wp-content/themes/thegem/functions.php on line 53
[16-Sep-2019 10:16:36 UTC] PHP Notice:  is_tax was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /data/sites/web/digimaniabe7734/www/wp-includes/functions.php on line 4773
[16-Sep-2019 10:16:36 UTC] PHP Notice:  is_tag was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /data/sites/web/digimaniabe7734/www/wp-includes/functions.php on line 4773
[16-Sep-2019 10:16:36 UTC] PHP Notice:  is_category was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /data/sites/web/digimaniabe7734/www/wp-includes/functions.php on line 4773
[16-Sep-2019 10:16:36 UTC] PHP Notice:  is_singular was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /data/sites/web/digimaniabe7734/www/wp-includes/functions.php on line 4773
[16-Sep-2019 10:16:36 UTC] PHP Notice:  is_search was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /data/sites/web/digimaniabe7734/www/wp-includes/functions.php on line 4773
[16-Sep-2019 10:16:36 UTC] PHP Deprecated:  Function create_function() is deprecated in /data/sites/web/digimaniabe7734/www/wp-content/themes/thegem/inc/woocommerce.php on line 580
[16-Sep-2019 10:16:36 UTC] PHP Deprecated:  Function create_function() is deprecated in /data/sites/web/digimaniabe7734/www/wp-content/themes/thegem/functions.php on line 53
[16-Sep-2019 10:16:38 UTC] PHP Notice:  is_tax was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /data/sites/web/digimaniabe7734/www/wp-includes/functions.php on line 4773
[16-Sep-2019 10:16:38 UTC] PHP Notice:  is_tag was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /data/sites/web/digimaniabe7734/www/wp-includes/functions.php on line 4773
[16-Sep-2019 10:16:38 UTC] PHP Notice:  is_category was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /data/sites/web/digimaniabe7734/www/wp-includes/functions.php on line 4773
[16-Sep-2019 10:16:38 UTC] PHP Notice:  is_singular was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /data/sites/web/digimaniabe7734/www/wp-includes/functions.php on line 4773
[16-Sep-2019 10:16:38 UTC] PHP Notice:  is_search was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /data/sites/web/digimaniabe7734/www/wp-includes/functions.php on line 4773
[16-Sep-2019 10:16:38 UTC] PHP Deprecated:  Function create_function() is deprecated in /data/sites/web/digimaniabe7734/www/wp-content/themes/thegem/inc/woocommerce.php on line 580
[16-Sep-2019 10:16:38 UTC] PHP Deprecated:  Function create_function() is deprecated in /data/sites/web/digimaniabe7734/www/wp-content/themes/thegem/functions.php on line 53
[16-Sep-2019 10:16:39 UTC] PHP Notice:  is_tax was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /data/sites/web/digimaniabe7734/www/wp-includes/functions.php on line 4773
[16-Sep-2019 10:16:39 UTC] PHP Notice:  is_tag was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /data/sites/web/digimaniabe7734/www/wp-includes/functions.php on line 4773
[16-Sep-2019 10:16:39 UTC] PHP Notice:  is_category was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /data/sites/web/digimaniabe7734/www/wp-includes/functions.php on line 4773
[16-Sep-2019 10:16:39 UTC] PHP Notice:  is_singular was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /data/sites/web/digimaniabe7734/www/wp-includes/functions.php on line 4773
[16-Sep-2019 10:16:39 UTC] PHP Notice:  is_search was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /data/sites/web/digimaniabe7734/www/wp-includes/functions.php on line 4773
[16-Sep-2019 10:16:39 UTC] PHP Deprecated:  Function create_function() is deprecated in /data/sites/web/digimaniabe7734/www/wp-content/themes/thegem/inc/woocommerce.php on line 580
[16-Sep-2019 10:16:40 UTC] PHP Deprecated:  Function create_function() is deprecated in /data/sites/web/digimaniabe7734/www/wp-content/themes/thegem/functions.php on line 53
[16-Sep-2019 10:16:40 UTC] PHP Notice:  is_tax was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /data/sites/web/digimaniabe7734/www/wp-includes/functions.php on line 4773
[16-Sep-2019 10:16:40 UTC] PHP Notice:  is_tag was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /data/sites/web/digimaniabe7734/www/wp-includes/functions.php on line 4773
[16-Sep-2019 10:16:40 UTC] PHP Notice:  is_category was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /data/sites/web/digimaniabe7734/www/wp-includes/functions.php on line 4773
[16-Sep-2019 10:16:40 UTC] PHP Notice:  is_singular was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /data/sites/web/digimaniabe7734/www/wp-includes/functions.php on line 4773
[16-Sep-2019 10:16:40 UTC] PHP Notice:  is_search was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /data/sites/web/digimaniabe7734/www/wp-includes/functions.php on line 4773
[16-Sep-2019 10:16:40 UTC] PHP Deprecated:  Function create_function() is deprecated in /data/sites/web/digimaniabe7734/www/wp-content/themes/thegem/inc/woocommerce.php on line 580
[16-Sep-2019 10:16:40 UTC] PHP Deprecated:  Function create_function() is deprecated in /data/sites/web/digimaniabe7734/www/wp-content/themes/thegem/functions.php on line 53
[16-Sep-2019 10:16:40 UTC] PHP Deprecated:  Function create_function() is deprecated in /data/sites/web/digimaniabe7734/www/wp-content/themes/thegem/inc/woocommerce.php on line 580
[16-Sep-2019 10:16:40 UTC] PHP Deprecated:  Function create_function() is deprecated in /data/sites/web/digimaniabe7734/www/wp-content/themes/thegem/functions.php on line 53
[16-Sep-2019 10:16:40 UTC] PHP Fatal error:  Uncaught InvalidArgumentException: Tried to set status9 for falsy post_id N; in /data/sites/web/digimaniabe7734/www/wp-content/plugins/sitepress-multilingual-cms/classes/post-translation/class-wpml-post-status.php:145
Stack trace:
#0 /data/sites/web/digimaniabe7734/www/wp-content/plugins/sitepress-multilingual-cms/menu/troubleshooting.php(240): WPML_Post_Status->set_status(NULL, 9)
#1 /data/sites/web/digimaniabe7734/www/wp-admin/admin.php(284): include('/data/sites/web...')
#2 {main}
  thrown in /data/sites/web/digimaniabe7734/www/wp-content/plugins/sitepress-multilingual-cms/classes/post-translation/class-wpml-post-status.php on line 145
[16-Sep-2019 10:16:42 UTC] PHP Notice:  is_tax was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /data/sites/web/digimaniabe7734/www/wp-includes/functions.php on line 4773
[16-Sep-2019 10:16:42 UTC] PHP Notice:  is_tag was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /data/sites/web/digimaniabe7734/www/wp-includes/functions.php on line 4773
[16-Sep-2019 10:16:42 UTC] PHP Notice:  is_category was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /data/sites/web/digimaniabe7734/www/wp-includes/functions.php on line 4773
[16-Sep-2019 10:16:42 UTC] PHP Notice:  is_singular was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /data/sites/web/digimaniabe7734/www/wp-includes/functions.php on line 4773
[16-Sep-2019 10:16:42 UTC] PHP Notice:  is_search was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /data/sites/web/digimaniabe7734/www/wp-includes/functions.php on line 4773
[16-Sep-2019 10:16:42 UTC] PHP Deprecated:  Function create_function() is deprecated in /data/sites/web/digimaniabe7734/www/wp-content/themes/thegem/inc/woocommerce.php on line 580
[16-Sep-2019 10:16:42 UTC] PHP Deprecated:  Function create_function() is deprecated in /data/sites/web/digimaniabe7734/www/wp-content/themes/thegem/functions.php on line 53
[16-Sep-2019 10:16:44 UTC] PHP Notice:  is_tax was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /data/sites/web/digimaniabe7734/www/wp-includes/functions.php on line 4773
[16-Sep-2019 10:16:44 UTC] PHP Notice:  is_tag was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /data/sites/web/digimaniabe7734/www/wp-includes/functions.php on line 4773
[16-Sep-2019 10:16:44 UTC] PHP Notice:  is_category was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /data/sites/web/digimaniabe7734/www/wp-includes/functions.php on line 4773
[16-Sep-2019 10:16:44 UTC] PHP Notice:  is_singular was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /data/sites/web/digimaniabe7734/www/wp-includes/functions.php on line 4773
[16-Sep-2019 10:16:44 UTC] PHP Notice:  is_search was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /data/sites/web/digimaniabe7734/www/wp-includes/functions.php on line 4773
[16-Sep-2019 10:16:44 UTC] PHP Deprecated:  Function create_function() is deprecated in /data/sites/web/digimaniabe7734/www/wp-content/themes/thegem/inc/woocommerce.php on line 580
[16-Sep-2019 10:16:44 UTC] PHP Deprecated:  Function create_function() is deprecated in /data/sites/web/digimaniabe7734/www/wp-content/themes/thegem/functions.php on line 53
September 16, 2019 at 1:06 pm #4580403

Carlos Rojas
Supporter

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

Timezone: America/Montevideo (GMT-03:00)

Hi there,
Thank you very much for the information provided.

It seems that the we are facing a compatibility issue. I would like to ask you to follow this steps in order to isolate the cause of the issue:
- Back up your site first before making any change, this is for security reasons.
- Flush all cache memory
- Deactivate all the plugins that are not related to WPML.
- Switch for a moment to a WordPress default theme like Twenty Seventeen.
- If the issue is gone, activate one by one to see with which one there is an interaction issue.

Could you tell me the result of this steps?

Regards,
Carlos

September 16, 2019 at 2:48 pm #4581631

gillesD-3

Hello,

It's difficult for us to do this as the site is part of a network and plugins are network activated.

Is there no other alternative ?

Regards,
Gilles.

September 16, 2019 at 2:52 pm #4581671

Carlos Rojas
Supporter

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

Timezone: America/Montevideo (GMT-03:00)

Hi Gilles,

Could you create a test site with a copy of the live site so the tests can be run without affecting the production site?

Regards,
Carlos

September 16, 2019 at 2:59 pm #4581719

gillesD-3

Hi,

I will try to do it.
It's a lot of work for a problem we didn't had few days ago.

Regards,
Gilles.

September 16, 2019 at 3:05 pm #4581805

Carlos Rojas
Supporter

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

Timezone: America/Montevideo (GMT-03:00)

Hi Gilles,

If you authorize me and confirm that you have a full backup of the site I can run more tests and try to isolate the issue.

Regards,
Carlos