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 36 replies, has 2 voices.

Last updated by Carlos Rojas 1 month, 4 weeks ago.

Assigned support staff: Carlos Rojas.

Author Posts
June 21, 2019 at 7:56 am #4065373

Carlos Rojas
Supporter

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

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

Hi,

I saw an error message in one of the category pages. Could you activate the debug mode (https://codex.wordpress.org/Debugging_in_WordPress) and let me know if there is some error message in the debug.log file within wp-content folder?

Regards,
Carlos

June 21, 2019 at 9:19 am #4065703

janB-19

Hello again 🙂
I was investigating this issue with my colleague, who is better experienced in wordpress as me. We found these issues:
1. The problem seems to be now only in electric actuators and only in RU an EN version, SK version seems to be OK. When we update EN product, RU category disappeared, when we update RU product, EN category disappeared.
2. We found, that when you click WooCommerce > WC multilingual > Products tab, then filter All languages and select "Elektrické servopohony", or "Regada" and click button FILTER, there are no products listed. We think, this could be a reason of this category problem. But I don't understand, how it is possible, that all products seems to be categorised right in Woocommerce > Products. Could you please check what's wrong?
3. WP_DEBUG is active whole the time, here's the debug.log file

[17-Jun-2019 05:50:14 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function get_field() in /nfsmnt/hosting2_2/c/3/c3a70732-4b97-4110-a1b7-5a6ffc94c9ff/marvelpit.sk/web/wp-content/themes/cardinal/woocommerce/content-product_cat.php:86
Stack trace:
#0 /nfsmnt/hosting2_2/c/3/c3a70732-4b97-4110-a1b7-5a6ffc94c9ff/marvelpit.sk/web/wp-content/plugins/woocommerce/includes/wc-core-functions.php(249): include()
#1 /nfsmnt/hosting2_2/c/3/c3a70732-4b97-4110-a1b7-5a6ffc94c9ff/marvelpit.sk/web/wp-content/plugins/woocommerce/includes/wc-template-functions.php(2434): wc_get_template('content-product...', Array)
#2 /nfsmnt/hosting2_2/c/3/c3a70732-4b97-4110-a1b7-5a6ffc94c9ff/marvelpit.sk/web/wp-content/plugins/woocommerce/includes/wc-template-functions.php(2325): woocommerce_output_product_categories(Array)
#3 /nfsmnt/hosting2_2/c/3/c3a70732-4b97-4110-a1b7-5a6ffc94c9ff/marvelpit.sk/web/wp-includes/class-wp-hook.php(286): woocommerce_maybe_show_product_subcategories('    <ul id="pro...')
#4 /nfsmnt/hosting2_2/c/3/c3a70732-4b97-4110-a1b7-5a6ffc94c9ff/marvelpit. in /nfsmnt/hosting2_2/c/3/c3a70732-4b97-4110-a1b7-5a6ffc94c9ff/marvelpit.sk/web/wp-content/themes/cardinal/woocommerce/content-product_cat.php on line 86
[17-Jun-2019 05:54:06 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function get_field() in /nfsmnt/hosting2_2/c/3/c3a70732-4b97-4110-a1b7-5a6ffc94c9ff/marvelpit.sk/web/wp-content/themes/cardinal/woocommerce/content-product_cat.php:86
Stack trace:
#0 /nfsmnt/hosting2_2/c/3/c3a70732-4b97-4110-a1b7-5a6ffc94c9ff/marvelpit.sk/web/wp-content/plugins/woocommerce/includes/wc-core-functions.php(249): include()
#1 /nfsmnt/hosting2_2/c/3/c3a70732-4b97-4110-a1b7-5a6ffc94c9ff/marvelpit.sk/web/wp-content/plugins/woocommerce/includes/wc-template-functions.php(2434): wc_get_template('content-product...', Array)
#2 /nfsmnt/hosting2_2/c/3/c3a70732-4b97-4110-a1b7-5a6ffc94c9ff/marvelpit.sk/web/wp-content/plugins/woocommerce/includes/wc-template-functions.php(2325): woocommerce_output_product_categories(Array)
#3 /nfsmnt/hosting2_2/c/3/c3a70732-4b97-4110-a1b7-5a6ffc94c9ff/marvelpit.sk/web/wp-includes/class-wp-hook.php(286): woocommerce_maybe_show_product_subcategories('    <ul id="pro...')
#4 /nfsmnt/hosting2_2/c/3/c3a70732-4b97-4110-a1b7-5a6ffc94c9ff/marvelpit. in /nfsmnt/hosting2_2/c/3/c3a70732-4b97-4110-a1b7-5a6ffc94c9ff/marvelpit.sk/web/wp-content/themes/cardinal/woocommerce/content-product_cat.php on line 86
[17-Jun-2019 05:54:57 UTC] PHP Warning:  require(/nfsmnt/hosting2_2/c/3/c3a70732-4b97-4110-a1b7-5a6ffc94c9ff/marvelpit.sk/web/wp-content/plugins/wordfence/vendor/composer/../paragonie/sodium_compat/autoload.php): failed to open stream: No such file or directory in /nfsmnt/hosting2_2/c/3/c3a70732-4b97-4110-a1b7-5a6ffc94c9ff/marvelpit.sk/web/wp-content/plugins/wordfence/vendor/composer/autoload_real.php on line 66
[17-Jun-2019 05:54:57 UTC] PHP Fatal error:  require(): Failed opening required '/nfsmnt/hosting2_2/c/3/c3a70732-4b97-4110-a1b7-5a6ffc94c9ff/marvelpit.sk/web/wp-content/plugins/wordfence/vendor/composer/../paragonie/sodium_compat/autoload.php' (include_path='.:/usr/php72/lib/php') in /nfsmnt/hosting2_2/c/3/c3a70732-4b97-4110-a1b7-5a6ffc94c9ff/marvelpit.sk/web/wp-content/plugins/wordfence/vendor/composer/autoload_real.php on line 66

As you can see, it's the bug from 17th June

From today here's only some notices in debug.log file:

[21-Jun-2019 06:39:23 UTC] PHP Notice:  Undefined property: stdClass::$theme in /nfsmnt/hosting2_2/c/3/c3a70732-4b97-4110-a1b7-5a6ffc94c9ff/marvelpit.sk/web/wp-admin/includes/class-wp-automatic-updater.php on line 282
[21-Jun-2019 06:44:04 UTC] PHP Notice:  get_woocommerce_term_meta is <strong>deprecated</strong> since version 3.6! Use get_term_meta instead. in /nfsmnt/hosting2_2/c/3/c3a70732-4b97-4110-a1b7-5a6ffc94c9ff/marvelpit.sk/web/wp-includes/functions.php on line 4329
[21-Jun-2019 06:44:52 UTC] PHP Notice:  get_woocommerce_term_meta sa od verzie 3.6 <strong>nepoužíva</strong>! Použite namiesto toho get_term_meta. in /nfsmnt/hosting2_2/c/3/c3a70732-4b97-4110-a1b7-5a6ffc94c9ff/marvelpit.sk/web/wp-includes/functions.php on line 4329

Some deprecated functions, I suppose this has nothing to do with our bug.

So we think, something is wrong in category / products in category, or translations. We don't know how to fix it. Could you please

June 21, 2019 at 9:24 am #4065721

janB-19

I found something interesting now. It seems, like product in category's hierarchy is classified only in last category, not each category.
Hierarchy
- Electric actuators
--Regada
---Standard-X
----The specific produkt

The specific produkt seems to be classified only in Standard-X category, but not Regada category and not Electric actuators.

Do you think, it would be helpful, to tick all checkboxes in product categories, so no only to tick Standard-X checkbox, but also Regada and Electric actuators checkboxes? And do it in every language version?

June 21, 2019 at 9:57 am #4066025

janB-19

I tried to edit this product: hidden link and classify it to whole categories tree. At RU version it displays. So I think, this could be a journey to solution. Please, leave this ticket opened for now, I must manually set categories for each product (151 alltogether)

June 21, 2019 at 10:28 pm #4069383

Carlos Rojas
Supporter

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

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

Hi,
Thank you very much for all the messages.

According to the errors there are issues in Wordfence plugin and probably the theme. I recommend you to disable Wordfence while you set the categories to the products and if possible to disable all other plugins and switch to a WordPress default theme. This way the possibilities of an interaction issue will be close to zero.

Regards,
Carlos

June 26, 2019 at 9:11 am #4090729

janB-19

My issue is resolved now. Thank you!
I suppose, that classifying products to whole category tree is the solution. Thank you for help

June 26, 2019 at 10:09 am #4091345

Carlos Rojas
Supporter

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

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

Hi there,

I'm glad to hear that you found a solution for this issue.

Please don't hesitate to contact us if you need our help in the future with WPML.
Regards,
Carlos