Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client reported an issue where the upload options in the WPForm on their English mobile site displayed in Romanian, despite the site being translated into English.
Solution:
We advised the client to ensure that the WPForm is fully translated. It appears that the translation might not have been applied or completed for the specific sections mentioned. We recommended following the detailed steps provided in our documentation on translating WPForms with WPML, which can be found here: https://wpml.org/documentation/related-projects/creating-multilingual-forms-using-wpforms-and-wpml/#translate-wpforms-with-wpml.

Additionally, we noted that the language displayed might also depend on the device settings, as our tests showed the options in English when the device's language was set to English.

If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at WPML support forum.

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.

No supporters are available to work today on this forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

This topic contains 13 replies, has 2 voices.

Last updated by Marsel Nikolli 5 months, 1 week ago.

Assisted by: Marsel Nikolli.

Author Posts
June 6, 2024 at 12:58 pm #15711145

sebastianC-22

Hi,

Thank you.
Can you please open o new support ticket.
I translated automatic all the WPform content but when I am trying on English mobile version to upload the images from "Upload e-ticket or boarding pass" from "hidden link" I receive the 3 uploads modes still in Rumanian language. I attach you image.

Thank you

June 6, 2024 at 2:31 pm #15711993

Marsel Nikolli

Hi,

It seems that the WPForm has not been translated yet, please check the attached image.

Please proceed with the translation and check if the issue persists.

You can find more detailed information on this link:
https://wpml.org/documentation/related-projects/creating-multilingual-forms-using-wpforms-and-wpml/#translate-wpforms-with-wpml

Let me know how it goes,
Marsel

Screenshot 2024-06-06 162951.png
June 6, 2024 at 4:12 pm #15712558

sebastianC-22

Hi,

Now it is translated and the same issue. I attache you the images.

Thanks

translation completed.PNG
translatewpform.PNG
June 7, 2024 at 8:38 am #15714217

Marsel Nikolli

Hi,

Thank you for the update, would it be possible to check with a different browser or mobile as I am not able to reproduce the issue?

Looking forward to your reply,
Marsel

June 7, 2024 at 9:26 am #15714365

sebastianC-22

Hi,

I tried from 2 different mobiles. Please try yourself with your mobile, and you will see that in the EN language the text for: GALLERY/FILMING OR TACKING PICTURES/CHOOSE FILES - are still in Romanian language after clicking on the "Click or drag files to this area to upload"
I attache you mobile screen video and image. The video I cant upload.
You must click on: hidden link and go to the "Upload e-ticket or boarding pass " section and touch the "Click or drag files to this area to upload" a pop-up will load, and you will receive three options to upload your images from your mobile phone and the 3 options are in Romanian language.

Thanks,

WhatsApp Image 2024-06-06 at 13.00.35.jpeg
June 7, 2024 at 11:18 am #15715247

Marsel Nikolli

Hi,

I've checked on mobile but on my end, it shows English in both languages (those strings seem to be set by the device's language, in my case that is set to English).

I've tested it also on an Android device and it shows the device's native options.

Let me know if you have further questions.

Image 2024-06-07 at 13.12.53_f2ff4edc.jpg
June 7, 2024 at 11:47 am #15715960

sebastianC-22

Hi,

Thank you.
Can you please open a new ticket regarding an error of wpml compatibility with another plugin.
I received the following error e-mail:

Howdy!

WordPress has a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.

In this case, WordPress caught an error with one of your plugins, WPML Multilingual CMS.

First, visit your website (hidden link) and check for any visible issues. Next, visit the page where the error was caught (hidden link) and check for any visible issues.

Please contact your host for assistance with investigating this issue further.

If your site appears broken and you can't access your dashboard normally, WordPress now has a special "recovery mode". This lets you safely login to your dashboard and investigate further.

hidden link

To keep your site safe, this link will expire in 1 day. Don't worry about that, though: a new link will be emailed to you if the error occurs again after it expires.

When seeking help with this issue, you may be asked for some of the following information:
WordPress version 6.5.3
Active theme: Astra (version 4.6.5)
Current plugin: WPML Multilingual CMS (version 4.6.11)
PHP version 8.0.30
Error Details
=============
An error of type E_ERROR was caused in line 550 of the file /home/megallos/planecashback/wp-content/plugins/sitepress-multilingual-cms/classes/ATE/Hooks/class-wpml-tm-ate-jobs-actions.php. Error message: Uncaught Error: Call to a member function get_original_document() on bool in /home/megallos/planecashback/wp-content/plugins/sitepress-multilingual-cms/classes/ATE/Hooks/class-wpml-tm-ate-jobs-actions.php:550
Stack trace:
#0 /home/megallos/planecashback/wp-content/plugins/sitepress-multilingual-cms/classes/ATE/Hooks/class-wpml-tm-ate-jobs-actions.php(172): WPML_TM_ATE_Jobs_Actions->getJobType(false, NULL)
#1 /home/megallos/planecashback/wp-includes/class-wp-hook.php(324): WPML_TM_ATE_Jobs_Actions->added_translation_jobs(Array, NULL, Object(WPML_TM_Translation_Batch))
#2 /home/megallos/planecashback/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#3 /home/megallos/planecashback/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#4 /home/megallos/planecashback/wp-content/plugins/sitepress-multilingual-cms/inc/translation-management/translation-management.class.php(1478): do_action('wpml_added_tran...', Array, NULL, Object(WPML_TM_Translation_Batch))
#5 /home/megallos/planecashback/wp-content/plugins/sitepress-multilingual-cms/inc/translation-management/translation-management.class.php(1316): TranslationManagement->send_jobs(Object(WPML_TM_Translation_Batch), 'st-batch', NULL)
#6 /home/megallos/planecashback/wp-includes/class-wp-hook.php(324): TranslationManagement->action_send_jobs(Object(WPML_TM_Translation_Batch), 'st-batch')
#7 /home/megallos/planecashback/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#8 /home/megallos/planecashback/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#9 /home/megallos/planecashback/wp-content/plugins/sitepress-multilingual-cms/API/Batch.php(49): do_action('wpml_tm_send_st...', Object(WPML_TM_Translation_Batch), 'st-batch')
#10 /home/megallos/planecashback/wp-content/plugins/sitepress-multilingual-cms/API/Batch.php(56): WPML\TM\API\Batch::WPML\TM\API\{closure}(Object(WPML_TM_Translation_Batch))
#11 /home/megallos/planecashback/wp-content/plugins/sitepress-multilingual-cms/API/Batch.php(52): WPML\TM\API\Batch::send(Object(Closure), Array, Object(WPML_TM_Translation_Batch))
#12 /home/megallos/planecashback/wp-content/plugins/sitepress-multilingual-cms/classes/translation-jobs/Dispatch/Strings.php(31): WPML\TM\API\Batch::sendStrings(Object(WPML\TM\Jobs\Dispatch\Messages), Object(WPML_TM_Translation_Batch))
#13 [internal function]: WPML\TM\Jobs\Dispatch\Strings::dispatch(Array, Object(WPML\TM\Jobs\Dispatch\Messages), Object(Closure), Array, 'ro', Array)
#14 /home/megallos/planecashback/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(83): call_user_func_array(Array, Array)
#15 /home/megallos/planecashback/wp-content/plugins/sitepress-multilingual-cms/classes/wpml-st/StringTranslationRequest.php(19): WPML\FP\{closure}(Array, 'ro', Array)
#16 /home/megallos/planecashback/wp-content/plugins/sitepress-multilingual-cms/inc/wpml-private-actions-tm.php(100): WPML\TM\StringTranslation\StringTranslationRequest::sendToTranslation(Array, Object(Closure))
#17 /home/megallos/planecashback/wp-includes/class-wp-hook.php(324): wpml_tm_add_strings_to_basket('')
#18 /home/megallos/planecashback/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#19 /home/megallos/planecashback/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#20 /home/megallos/planecashback/wp-settings.php(695): do_action('init')
#21 /home/megallos/planecashback/wp-config.php(103): require_once('/home/megallos/...')
#22 /home/megallos/planecashback/wp-load.php(50): require_once('/home/megallos/...')
#23 /home/megallos/planecashback/wp-admin/admin.php(34): require_once('/home/megallos/...')
#24 {main}
thrown

I checked the error with my hosting provider and they told us :

I'm sorry to hear that your site is generating an error from the plugin sitepress-multilingual-cms.

Upon reviewing the error message, it appears to be an issue within the plugin itself. I checked your hosting account and found no logged errors on the server side. Both the site and wp-admin are loading fine.

I recommend contacting the WPML plugin developers or support team to resolve this issue.

Thank you

June 7, 2024 at 12:19 pm #15716459

Marsel Nikolli

Hi,

Is that error still showing up on the log file or it happened at a certain moment (please clear the log file and re-check)?

* I've noticed on your website's dashboard that there are some plugins and themes that require updating.

I will not open the new ticket for now, please proceed with the updates suggested and check if the error shows again in the logs,

* Note: Please make sure you have a full backup of your website before making any updates/changes to your website.

Note: You can open multiple tickets at the same time, you don't need to wait until we finish with one issue and then open another ticket.

Looking forward to your reply,
Marsel

June 7, 2024 at 1:26 pm #15716785

sebastianC-22

Hi,
I updated all plugins.
I can't find any error logs.
Thank you for your suggestions.
I will test further and let you know.
Thank you.

June 10, 2024 at 9:14 am #15720965

Marsel Nikolli

Hi,

Sure, take your time and let me know.

Kind regards,
Marsel

June 10, 2024 at 9:22 am #15720983
sebastianC-22

Hi,

Thank you for your reply.
I tested and cleared all debog.log and now I have the following error in wpml>Languages>Language Url format error: Warning: Undefined property: stdClass::$menu_id in /home/megallos/planecashback/wp-content/themes/astra/inc/extras.php on line 486
I also attach you screenshot.

Thank you

New threads created by Marsel Nikolli and linked to this one are listed below:

https://wpml.org/forums/topic/split-php-warning-on-wpml-languages-page/

errorwithastratheme.PNG
June 10, 2024 at 9:57 am #15721185

Marsel Nikolli

Hi,

The warning message seems to be related to your theme.

I suggest you update the theme to the latest version and check if the issue persists.

* Note: Please make sure you have a full backup of your website before making any updates/changes to your website.

June 10, 2024 at 1:45 pm #15722336

sebastianC-22

Hi,

I made the update and I get new errors:
Warning: Undefined property: stdClass::$menu_id in /home/megallos/planecashback/wp-content/themes/astra/inc/extras.php on line 488

Warning: Undefined property: stdClass::$menu_id in /home/megallos/planecashback/wp-content/themes/astra/inc/extras.php on line 521

Warning: Undefined property: stdClass::$menu_id in /home/megallos/planecashback/wp-content/themes/astra/inc/extras.php on line 488

Warning: Undefined property: stdClass::$menu_id in /home/megallos/planecashback/wp-content/themes/astra/inc/extras.php on line 521

Warning: Undefined property: stdClass::$menu_id in /home/megallos/planecashback/wp-content/themes/astra/inc/extras.php on line 488

Warning: Undefined property: stdClass::$menu_id in /home/megallos/planecashback/wp-content/themes/astra/inc/extras.php on line 521

Warning: Undefined property: stdClass::$menu_id in /home/megallos/planecashback/wp-content/themes/astra/inc/extras.php on line 488

Warning: Undefined property: stdClass::$menu_id in /home/megallos/planecashback/wp-content/themes/astra/inc/extras.php on line 521

Warning: Undefined property: stdClass::$menu_id in /home/megallos/planecashback/wp-content/themes/astra/inc/extras.php on line 488

Warning: Undefined property: stdClass::$menu_id in /home/megallos/planecashback/wp-content/themes/astra/inc/extras.php on line 521

Warning: Undefined property: stdClass::$menu_id in /home/megallos/planecashback/wp-content/themes/astra/inc/extras.php on line 488

Warning: Undefined property: stdClass::$menu_id in /home/megallos/planecashback/wp-content/themes/astra/inc/extras.php on line 521

Thank you

June 10, 2024 at 2:48 pm #15722788

Marsel Nikolli

Hi,

I've split the ticket and we will continue working on the new issue on this other ticket:
https://wpml.org/forums/topic/split-php-warning-on-wpml-languages-page/

If you don't need any help with the issue we were initially working on this ticket, I would kindly ask you to close the ticket.

Regards,
Marsel

June 10, 2024 at 3:42 pm #15723082

sebastianC-22

Thank you Marsel.