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.

Our next available supporter will start replying to tickets in about 6.52 hours from now. Thank you for your understanding.

This topic contains 31 replies, has 2 voices.

Last updated by Carlos Rojas 2 months, 3 weeks ago.

Assigned support staff: Carlos Rojas.

Author Posts
July 23, 2019 at 12:03 pm

tommaso rotundo

I created some custom fields in Italian. I duplicated the fields in the English version. Some fields works, others not.
I read the guides, but I can't solve.
In wpml string translation i've translate all.
Can i give you others specifics information in private?

July 23, 2019 at 12:54 pm #4266103

tommaso rotundo

Please, first to change anything on the website, alert me, i've to do another backup.
Many thanks

July 23, 2019 at 4:35 pm #4268187

Carlos Rojas
Supporter

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

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

Hello,
Thank you for contacting WPML support.

1.- Please describe the steps to reproduce the issue and what are the results you expect?

2.- Also, please update all outdated plugins and double check if the issue persists.

Kind regards,
Carlos

July 23, 2019 at 5:00 pm #4268293

tommaso rotundo

Hello,ok
click here (english page)

<em><u>hidden link</u></em>

in the result page there are some custom fields.

Country: Nicaragua (ok)
Size: Lonsdale (ok)
Strenght: Medio-forte (no, it's in italian)
Price 10-15 (ok)
Flavor Profile: Spezie, Cuoio, Tostato (no, it's in italian)

For example custom field Strenght.
In the php i've put this code (forza is Strenght):

<?php if (get_field('forza') != '') { ?><li><strong><?php _e('Forza:','movedo'); ?></strong> <?php the_field('forza'); ?></li>
<?php } else {}?>

I would like to see the translation in english for these fields (Strenght and Flavor profile). In Italian is all ok.

In wpml string translation i've translate all fields, look the image. The fields present in the search accordion (find cigars) are all translated.

Let me know if you need other informations.
Many thanks

July 24, 2019 at 7:09 am #4270945

tommaso rotundo

hello dear, have any news for me?
Many thanks

July 24, 2019 at 12:18 pm #4274335

Carlos Rojas
Supporter

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

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

Hi there,
Thank you very much for your message.

Please update all outdated plugins to their latest version. Outdated functionalities can cause can conflicts in the code.

Double check if the issue disappeared.

If the issue persists then I would like to ask you to change the code:

the_field('forza');

to:

_e(get_field('forza'));

Could you tell me the result of the steps above?
Regards,
Carlos

Note: Please note that the flags are assigned to the opposite languages in the site.

July 24, 2019 at 1:08 pm #4274795

tommaso rotundo

Hello, i've put you code and finally i found in string translation all string to translate Domain "default"). But ther's a problem with field "flavor profile". I put your code, the result is
Flavor Profile:

Warning: md5() expects parameter 1 to be string, array given in /home/clients/c3955ff41c01ed3cced66c70405ebf8e/www.cigarslover.com/wp-content/plugins/wpml-string-translation/inc/functions.php on line 676
Array

This custom field is a checkbox

what can I do?
many thanks

July 24, 2019 at 1:16 pm #4274919

tommaso rotundo

i've a big problem, i've deactivated string translation plugin beacuse i've this error

July 24, 2019 at 1:23 pm #4275099

Carlos Rojas
Supporter

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

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

Hi,

Please roll back the changes in the code and let me know if the issue disappeared?

Regards,
Carlos

July 24, 2019 at 1:27 pm #4275111

tommaso rotundo

I deleted the changes and reloaded the file. I activated string translation, but the problem is still there.

July 24, 2019 at 1:31 pm #4275187

Carlos Rojas
Supporter

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

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

Hi,

In this case I need to ask you to deactivate all plugins except WPML ones and activate a default WordPress theme. If the issue disappeared then start activating the theme and the plugins one by one until you see the issue re-appears.

Could you tell me the result of the steps above?
Regards,
Carlos

July 24, 2019 at 1:50 pm #4275353

tommaso rotundo

there is no other way to solve the problem? the website is online

July 24, 2019 at 2:30 pm #4275587

tommaso rotundo

I managed to restore a database backup.
I saw that when I modified the string "flavor profile", a record was created in the database table wtl_icl_strings (I attach image). I deleted this record and now it works.

So, can we to do now?

July 24, 2019 at 2:32 pm
July 24, 2019 at 2:45 pm #4275779

tommaso rotundo

Hi carlos,
ther's only a problem, the "upload" folder is over 12GB. Can i do it the same?