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

Last updated by Bruno Kos 6 months, 2 weeks ago.

Assigned support staff: Bruno Kos.

Author Posts
March 19, 2019 at 10:19 am #3377739

anastasiaM-2

Tell us what you are trying to do?
Selected the strings related to BuddyPress plugin and added to basket in order to be translated in 8 languages.
Went to translation Management > Basket, selected an already existing user for each language and then send.
Sending batch started and after waiting a lot had the following:
504 Gateway Time-out
nginx/1.15.1
Rollback jobs...
Batch rolled back
How can I face this error?
The users/translators seem to see the relevant strings. Is the process successfully completed?
The users/translators cannot see the suggested translations, that I can see in String Translation editor in yellow on each string coming from the .mo files.
Is this expected to happen or is somehow related to the error?

Is there any documentation that you are following?
Followed the suggestions in
https://wpml.org/forums/topic/send-basket-to-translators-504-gateway-timeout/
and
https://wpml.org/forums/topic/wpml-causing-504-gateway-timeouts/
Already have 256M php memory limit.
Increased php time limit (either in wp-config.php or .htaccess) but nothing changed.
Do not have any cache plugin installed.
The site is behind nginx.

Is there a similar example that we can see?

What is the link to your site?

March 19, 2019 at 11:18 am #3378431

Bruno Kos
Supporter

Languages: English (English )

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

Hi,

Thank you for contacting WPML support!

Based on your query, you tried all these, correct?
https://wpml.org/forums/topic/wpml-causing-504-gateway-timeouts/#post-2470115

Namely:
- Adjust IDs for multilingual functionality (WPML > Languages)
- Track where strings appear on the site (WPML > String translation)

Also, can you provide debug information so I could get a better view of your current setup? I have enabled debug information for this ticket and this is how you can easily provide this info:
https://wpml.org/faq/provide-debug-information-faster-support/

Regards,
Bruno Kos

March 19, 2019 at 11:37 am #3378523

anastasiaM-2

Thank you for your reply.
Yes, both options you mentioned are not active.
Also, see the debug info attached.

March 19, 2019 at 12:51 pm #3379249

anastasiaM-2

Dear Bruno, can you please assure me that the site url is not visible as public, but only to support team?

March 19, 2019 at 1:03 pm #3379349

Bruno Kos
Supporter

Languages: English (English )

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

Hi,

Have no worries about the site URLs - try opening this ticket in any browser without being logged into the WPML and you will see how everyone else sees this - all the URLs are stripped and hidden.

Can we try this now? This will allow us to see if any PHP errors are being produced.

1. Edit wp-config.php and insert the following lines:

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

2. Reproduce the issue.

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

4. 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.

https://codex.wordpress.org/Debugging_in_WordPress

Regards,
Bruno Kos

March 19, 2019 at 2:00 pm #3379925

anastasiaM-2

Hello again,
I followed your instructions, below are the latest lines of the log:

[19-Mar-2019 13:27:45 UTC] PHP Deprecated:  The each() function is deprecated. This message will be suppressed on further calls in /var/www/html/wp-content/plugins/js_composer/include/classes/core/class-vc-mapper.php on line 111
[19-Mar-2019 13:28:27 UTC] PHP Deprecated:  Function create_function() is deprecated in /var/www/html/wp-content/themes/lynk/library/widgets/wg-javo-recent-photos.php on line 164
[19-Mar-2019 13:28:27 UTC] PHP Deprecated:  Function create_function() is deprecated in /var/www/html/wp-content/themes/lynk/library/widgets/wg-javo-recent-post.php on line 190
[19-Mar-2019 13:28:27 UTC] PHP Deprecated:  Function create_function() is deprecated in /var/www/html/wp-content/themes/lynk/library/widgets/wg-javo-contact-us.php on line 110
[19-Mar-2019 13:28:27 UTC] PHP Deprecated:  The each() function is deprecated. This message will be suppressed on further calls in /var/www/html/wp-content/plugins/js_composer/include/classes/core/class-vc-mapper.php on line 111
[19-Mar-2019 13:29:06 UTC] PHP Deprecated:  Function create_function() is deprecated in /var/www/html/wp-content/themes/lynk/library/widgets/wg-javo-recent-photos.php on line 164
[19-Mar-2019 13:29:06 UTC] PHP Deprecated:  Function create_function() is deprecated in /var/www/html/wp-content/themes/lynk/library/widgets/wg-javo-recent-post.php on line 190
[19-Mar-2019 13:29:06 UTC] PHP Deprecated:  Function create_function() is deprecated in /var/www/html/wp-content/themes/lynk/library/widgets/wg-javo-contact-us.php on line 110
[19-Mar-2019 13:29:06 UTC] PHP Deprecated:  The each() function is deprecated. This message will be suppressed on further calls in /var/www/html/wp-content/plugins/js_composer/include/classes/core/class-vc-mapper.php on line 111
[19-Mar-2019 13:29:45 UTC] PHP Deprecated:  Function create_function() is deprecated in /var/www/html/wp-content/themes/lynk/library/widgets/wg-javo-recent-photos.php on line 164
[19-Mar-2019 13:29:45 UTC] PHP Deprecated:  Function create_function() is deprecated in /var/www/html/wp-content/themes/lynk/library/widgets/wg-javo-recent-post.php on line 190
[19-Mar-2019 13:29:45 UTC] PHP Deprecated:  Function create_function() is deprecated in /var/www/html/wp-content/themes/lynk/library/widgets/wg-javo-contact-us.php on line 110
[19-Mar-2019 13:29:45 UTC] PHP Deprecated:  The each() function is deprecated. This message will be suppressed on further calls in /var/www/html/wp-content/plugins/js_composer/include/classes/core/class-vc-mapper.php on line 111
[19-Mar-2019 13:31:06 UTC] PHP Deprecated:  Function create_function() is deprecated in /var/www/html/wp-content/themes/lynk/library/widgets/wg-javo-recent-photos.php on line 164
[19-Mar-2019 13:31:06 UTC] PHP Deprecated:  Function create_function() is deprecated in /var/www/html/wp-content/themes/lynk/library/widgets/wg-javo-recent-post.php on line 190
[19-Mar-2019 13:31:06 UTC] PHP Deprecated:  Function create_function() is deprecated in /var/www/html/wp-content/themes/lynk/library/widgets/wg-javo-contact-us.php on line 110
[19-Mar-2019 13:31:06 UTC] PHP Deprecated:  The each() function is deprecated. This message will be suppressed on further calls in /var/www/html/wp-content/plugins/js_composer/include/classes/core/class-vc-mapper.php on line 111
[19-Mar-2019 13:31:06 UTC] PHP Deprecated:  Function create_function() is deprecated in /var/www/html/wp-content/themes/lynk/library/widgets/wg-javo-recent-photos.php on line 164
[19-Mar-2019 13:31:06 UTC] PHP Deprecated:  Function create_function() is deprecated in /var/www/html/wp-content/themes/lynk/library/widgets/wg-javo-recent-post.php on line 190
[19-Mar-2019 13:31:06 UTC] PHP Deprecated:  Function create_function() is deprecated in /var/www/html/wp-content/themes/lynk/library/widgets/wg-javo-contact-us.php on line 110
[19-Mar-2019 13:31:06 UTC] PHP Deprecated:  The each() function is deprecated. This message will be suppressed on further calls in /var/www/html/wp-content/plugins/js_composer/include/classes/core/class-vc-mapper.php on line 111
[19-Mar-2019 13:31:36 UTC] PHP Deprecated:  Function create_function() is deprecated in /var/www/html/wp-content/themes/lynk/library/widgets/wg-javo-recent-photos.php on line 164
[19-Mar-2019 13:31:36 UTC] PHP Deprecated:  Function create_function() is deprecated in /var/www/html/wp-content/themes/lynk/library/widgets/wg-javo-recent-post.php on line 190
[19-Mar-2019 13:31:36 UTC] PHP Deprecated:  Function create_function() is deprecated in /var/www/html/wp-content/themes/lynk/library/widgets/wg-javo-contact-us.php on line 110
[19-Mar-2019 13:31:36 UTC] PHP Deprecated:  The each() function is deprecated. This message will be suppressed on further calls in /var/www/html/wp-content/plugins/js_composer/include/classes/core/class-vc-mapper.php on line 111
[19-Mar-2019 13:33:06 UTC] PHP Deprecated:  Function create_function() is deprecated in /var/www/html/wp-content/themes/lynk/library/widgets/wg-javo-recent-photos.php on line 164
[19-Mar-2019 13:33:06 UTC] PHP Deprecated:  Function create_function() is deprecated in /var/www/html/wp-content/themes/lynk/library/widgets/wg-javo-recent-post.php on line 190
[19-Mar-2019 13:33:06 UTC] PHP Deprecated:  Function create_function() is deprecated in /var/www/html/wp-content/themes/lynk/library/widgets/wg-javo-contact-us.php on line 110
[19-Mar-2019 13:33:06 UTC] PHP Deprecated:  The each() function is deprecated. This message will be suppressed on further calls in /var/www/html/wp-content/plugins/js_composer/include/classes/core/class-vc-mapper.php on line 111
[19-Mar-2019 13:33:36 UTC] PHP Deprecated:  Function create_function() is deprecated in /var/www/html/wp-content/themes/lynk/library/widgets/wg-javo-recent-photos.php on line 164
[19-Mar-2019 13:33:36 UTC] PHP Deprecated:  Function create_function() is deprecated in /var/www/html/wp-content/themes/lynk/library/widgets/wg-javo-recent-post.php on line 190
[19-Mar-2019 13:33:36 UTC] PHP Deprecated:  Function create_function() is deprecated in /var/www/html/wp-content/themes/lynk/library/widgets/wg-javo-contact-us.php on line 110
[19-Mar-2019 13:33:37 UTC] PHP Deprecated:  The each() function is deprecated. This message will be suppressed on further calls in /var/www/html/wp-content/plugins/js_composer/include/classes/core/class-vc-mapper.php on line 111
[19-Mar-2019 13:35:06 UTC] PHP Deprecated:  Function create_function() is deprecated in /var/www/html/wp-content/themes/lynk/library/widgets/wg-javo-recent-photos.php on line 164
[19-Mar-2019 13:35:06 UTC] PHP Deprecated:  Function create_function() is deprecated in /var/www/html/wp-content/themes/lynk/library/widgets/wg-javo-recent-post.php on line 190
[19-Mar-2019 13:35:06 UTC] PHP Deprecated:  Function create_function() is deprecated in /var/www/html/wp-content/themes/lynk/library/widgets/wg-javo-contact-us.php on line 110
[19-Mar-2019 13:35:06 UTC] PHP Deprecated:  The each() function is deprecated. This message will be suppressed on further calls in /var/www/html/wp-content/plugins/js_composer/include/classes/core/class-vc-mapper.php on line 111
[19-Mar-2019 13:35:07 UTC] PHP Deprecated:  Function create_function() is deprecated in /var/www/html/wp-content/themes/lynk/library/widgets/wg-javo-recent-photos.php on line 164
[19-Mar-2019 13:35:07 UTC] PHP Deprecated:  Function create_function() is deprecated in /var/www/html/wp-content/themes/lynk/library/widgets/wg-javo-recent-post.php on line 190
[19-Mar-2019 13:35:07 UTC] PHP Deprecated:  Function create_function() is deprecated in /var/www/html/wp-content/themes/lynk/library/widgets/wg-javo-contact-us.php on line 110
[19-Mar-2019 13:35:07 UTC] PHP Deprecated:  The each() function is deprecated. This message will be suppressed on further calls in /var/www/html/wp-content/plugins/js_composer/include/classes/core/class-vc-mapper.php on line 111
[19-Mar-2019 13:35:36 UTC] PHP Deprecated:  Function create_function() is deprecated in /var/www/html/wp-content/themes/lynk/library/widgets/wg-javo-recent-photos.php on line 164
[19-Mar-2019 13:35:36 UTC] PHP Deprecated:  Function create_function() is deprecated in /var/www/html/wp-content/themes/lynk/library/widgets/wg-javo-recent-post.php on line 190
[19-Mar-2019 13:35:36 UTC] PHP Deprecated:  Function create_function() is deprecated in /var/www/html/wp-content/themes/lynk/library/widgets/wg-javo-contact-us.php on line 110
[19-Mar-2019 13:35:36 UTC] PHP Deprecated:  The each() function is deprecated. This message will be suppressed on further calls in /var/www/html/wp-content/plugins/js_composer/include/classes/core/class-vc-mapper.php on line 111
[19-Mar-2019 13:37:06 UTC] PHP Deprecated:  Function create_function() is deprecated in /var/www/html/wp-content/themes/lynk/library/widgets/wg-javo-recent-photos.php on line 164
[19-Mar-2019 13:37:06 UTC] PHP Deprecated:  Function create_function() is deprecated in /var/www/html/wp-content/themes/lynk/library/widgets/wg-javo-recent-post.php on line 190
[19-Mar-2019 13:37:06 UTC] PHP Deprecated:  Function create_function() is deprecated in /var/www/html/wp-content/themes/lynk/library/widgets/wg-javo-contact-us.php on line 110
[19-Mar-2019 13:37:06 UTC] PHP Deprecated:  The each() function is deprecated. This message will be suppressed on further calls in /var/www/html/wp-content/plugins/js_composer/include/classes/core/class-vc-mapper.php on line 111
[19-Mar-2019 13:37:08 UTC] PHP Deprecated:  Function create_function() is deprecated in /var/www/html/wp-content/themes/lynk/library/widgets/wg-javo-recent-photos.php on line 164
[19-Mar-2019 13:37:08 UTC] PHP Deprecated:  Function create_function() is deprecated in /var/www/html/wp-content/themes/lynk/library/widgets/wg-javo-recent-post.php on line 190
[19-Mar-2019 13:37:08 UTC] PHP Deprecated:  Function create_function() is deprecated in /var/www/html/wp-content/themes/lynk/library/widgets/wg-javo-contact-us.php on line 110
[19-Mar-2019 13:37:08 UTC] PHP Deprecated:  The each() function is deprecated. This message will be suppressed on further calls in /var/www/html/wp-content/plugins/js_composer/include/classes/core/class-vc-mapper.php on line 111
March 19, 2019 at 3:57 pm #3380887

Bruno Kos
Supporter

Languages: English (English )

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

Hi,

I see nothing here that might help us at this point. Can I ask you the following then? In order to debug this issue further quickly, would you be willing to provide me with temporary WordPress admin username so I could investigate the issue directly? I have marked your next reply private so you can safely add this information.

https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

Please make a full backup of your site before sharing this info!

You can use plugins such as UpdraftPlus WordPress Backup Plugin (https://wordpress.org/plugins/updraftplus/) or ask your host to perform a site backup.

Once there, I will install Duplicator plugin, will create packages and will try this on my localhost, simply to exclude possible server related issues.

https://wpml.org/faq/provide-supporters-copy-site/

Regards,
Bruno Kos

April 1, 2019 at 9:21 am #3505783

anastasiaM-2

Dear Bruno,
Thank you for your reply.

I would like not to provide you access to the site, since we have sensitive data on it.
Also, I realized that regardless of the error, the jobs seem to be assigned and when logging in with the translator credentials I can see the strings and translate.
So maybe the error might be something in the frontend...

However, I still have the following question:
When logging in as administrator in the String Translation, there are some strings that the system has found their translation in relevant .mo files as given by the community. For these, the "proposed" translation is given high-lighed in yellow as help.
Nevertheless, when logging in as a translator being assigned a job, I cannot see the relevant "proposed" translation in yellow.
Should the administrator copy-paste the proposed translation in the relevant text box, so that the translator can see it? Is there a way to do this with a bulk action?
I have 2600 strings and 8 languages, so doing this one by one will take a lot of time.
Or maybe is there a way to accept automatically all these "proposed" translations?
Thank you very much in advance

April 1, 2019 at 1:17 pm #3508351

Bruno Kos
Supporter

Languages: English (English )

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

Hi,

I would like not to provide you access to the site, since we have sensitive data on it.

No worries about this and I absolutely understand concerns here.

For these, the "proposed" translation is given high-lighed in yellow as help.

These proposed strings - can you tell me if these are already effective (try checking on the front end) or are these only proposals? Otherwise I'd like to check this on our sandbox, as it may appear as a bug (if translators who aren't site admins can't see proposals coming from .mo files).

Regards,
Bruno Kos

April 1, 2019 at 1:33 pm #3508483

anastasiaM-2

Dear Bruno,
When logging in either as admin or as a subscriber/translator I can use in the frontend the language switcher and the strings seam to be loaded. This actually involves BuddyPress dashboard pages.
I have check this for two languages, where also pages (content) is translated.
Thank you in advance

April 2, 2019 at 8:44 am #3514841

Bruno Kos
Supporter

Languages: English (English )

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

Hi,

and the strings seam to be loaded

I am not sure now - does it mean that you don't have to go through:

I have 2600 strings and 8 languages, so doing this one by one will take a lot of time.

Because these strings are already loaded, or? Otherwise, I would suggest you try to emulate this on our clean sandbox to see if this is a confirmed bug.

Regards,
Bruno Kos

April 2, 2019 at 9:28 am #3515355

anastasiaM-2

The "proposed" strings translations are loaded in frontend.
In the String Translation, there are translations in yellow and there is not a way to distinguish which strings have "proposed" translation and which are not.
Therefore, I assigned them all to translators.
However, they cannot see the "proposed" string translations as help.
Is there a way to provide them the "proposed" translations in yellow?

What should I do regarding the sandbox you say? I am not confident with what you are suggesting.

April 2, 2019 at 2:31 pm #3518311

Bruno Kos
Supporter

Languages: English (English )

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

Hi,

Is there a way to provide them the "proposed" translations in yellow?

That it what I wanted to ask you about - can you reproduce this thing in our clean sandbox install? We suspect this to be a WPML bug, since they should be able to see this.

Logins and more information is within my next private reply.

Regards,
Bruno Kos

The topic ‘[Closed] 504 Gateway Time-out error when send to translator batch of strings’ is closed to new replies.