Skip Navigation

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

Last updated by gabrielD-12 7 months, 2 weeks ago.

Assigned support staff: Marcel.

Author Posts
April 11, 2020 at 4:19 pm #5889575

gabrielD-12

Hello,

When trying to access a WPML page, I've got the following error : 504 Gateway Time-out
How can I fix this? I need to export some XFILL files but I do not see how to do it if I can't access this page.

The page I am trying to access list many translations that are in queue. The important number of translations is probably causing the problem but I really need to access this page in order to complete the export of the files.

It happens on this URL: hidden link (WPML > Translation)

If there is no way to fix it, I could redo the export in several smaller steps. I would however need to be able to empty the queue in order to do it. How can I do this?

Thanks,
Antoine

April 14, 2020 at 8:15 am #5901763

Marcel
Supporter

Languages: English (English ) German (Deutsch )

Timezone: Europe/Madrid (GMT+01:00)

Hi Antoine,

Thank you for contacting WPML Support.

WordPress includes a debug mode which helps reveal PHP problems. With this info, we may see what is causing the error.

To enable it, open your wp-config.php file and look for

define('WP_DEBUG', false);

Change it to:

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

In this case, the errors will be saved to a debug.log log file inside the /wp-content/directory.

The wp-config.php is located in your WordPress root directory. It’s the same file where the database configuration settings are. You will have to access it by FTP or SFTP in order to edit it.
If you open wp-config.php and that define statement is not there, you can add it right before this line:

/* That's all, stop editing! Happy blogging. */

DOC:
https://codex.wordpress.org/Debugging_in_WordPress

Please report to me the errors you are seeing.

Kind Regards
Marcel

April 14, 2020 at 11:57 am #5903789

gabrielD-12

I don't see any. I've just got a a "504 Gateway Time-out" error when I try to access the translation page (WPML > Translation)

www-data@new-1min30-85767d8447-74dl5:/app/web/wp-content$ ls -l
total 88
lrwxrwxrwx 1 www-data www-data 55 Apr 13 16:10 db.php -> /www/wp-content/plugins/query-monitor/wp-content/db.php
-rw-r--r-- 1 www-data www-data 30 Apr 13 16:10 index.php
drwxr-xr-x 5 www-data www-data 4096 Apr 14 07:14 languages
drwxr-xr-x 60 www-data www-data 4096 Apr 13 16:10 plugins
drwxr-xr-x 22 www-data www-data 4096 Apr 13 16:10 root
drwxr-xr-x 6 www-data www-data 4096 Apr 13 16:10 themes
drwxr-xr-x 61 www-data www-data 69632 Apr 7 15:12 uploads

April 14, 2020 at 1:00 pm #5904359

Marcel
Supporter

Languages: English (English ) German (Deutsch )

Timezone: Europe/Madrid (GMT+01:00)

Thanks, I would need to request temporary access (WP-Admin and FTP) to your site
– preferably to a test site where the problem has been replicated if possible –
in order to be of better help and check if some configurations might need to be changed

Your next answer will be private which means only you and I have access to it.

❌ Please backup your database and website ❌

✙ I would additionally need your permission to de-activate and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important.

Thank you

Best Regards
Marcel

April 14, 2020 at 4:05 pm #5906183

gabrielD-12

Btw, you can access the files on this URL using WP file manager :
/wp-admin/admin.php?page=wp_file_manager

April 14, 2020 at 8:02 pm #5907871

Marcel
Supporter

Languages: English (English ) German (Deutsch )

Timezone: Europe/Madrid (GMT+01:00)

Hi,

could you please check the credentials? I can't login via email/username.

Thank You

Best Regards
Marcel

April 14, 2020 at 10:12 pm #5908345

gabrielD-12

The credentials are correct. As I mentioned, you first need to click on the purple button "Connexion" just above the fields username and password that you should not use.

April 16, 2020 at 10:33 am #5921409

Marcel
Supporter

Languages: English (English ) German (Deutsch )

Timezone: Europe/Madrid (GMT+01:00)

Hi,

your auth method using Google is not working for me, as you would need to accept the 2FA auth via your phone or any other method. Please if possible, provide a user account with deactivated 2FA.

Best Regards
Marcel

April 16, 2020 at 11:23 am #5921885

gabrielD-12

Please give me an email address so that I can create an account for you.

April 16, 2020 at 6:24 pm #5926621

gabrielD-12

You should have receive it this afternoon. Please let me know in case you should face any problem.

April 17, 2020 at 7:08 am #5929409

Marcel
Supporter

Languages: English (English ) German (Deutsch )

Timezone: Europe/Madrid (GMT+01:00)

Hi,

for the moment no mail arrived. I also checked my spam folder. Alternatively you can set the password manually.

Thank You

April 17, 2020 at 8:21 am #5929967

Marcel
Supporter

Languages: English (English ) German (Deutsch )

Timezone: Europe/Madrid (GMT+01:00)

Thanks,

as I don't have any jobs assigned, I can access the page, as it's empty for me, so it's not a general issue there. You can try to increase your server resources in php.ini to something like this:

max_execution_time = 360000
max_input_time = 6000

If this not help and you need to export them urgent, please create the job for a new user so that you can download it for the moment from there.

Otherwise, try to export in smaller batches, as this could work as I found in an example here: https://wpml.org/forums/topic/gateway-timeout-error-when-sending-all-items-to-translation/

Best Regards
Marcel

April 17, 2020 at 9:19 am #5930593

gabrielD-12

Thank you. I indeed managed to export the files in smaller batches. I was just wondering if there would be a way to solve the problem.

Is there a way to empty the entire job list for a user?

April 17, 2020 at 10:21 am #5931595

Marcel
Supporter

Languages: English (English ) German (Deutsch )

Timezone: Europe/Madrid (GMT+01:00)

You can try it as a Translation Manager. Please refer to this ticket which explains the process: https://wpml.org/forums/topic/how-to-delete-items-in-translations-queue/#post-3024600

Best Regards
Marcel

April 20, 2020 at 6:50 am #5945703

gabrielD-12

My issue is resolved now. Thank you!