If you are having a notice about writing the .mo files please read this doc

Hi, Amit here, I am the WPML Support Manager, our current ticket queue is high, update your WPML plugins and make sure you meet the minimal requirements for running WPML before reporting an issue please - many tickets are resolved doing that

Please look at our updated list of Known Issues and you can also use our support search to find helpful information and of course review our documentation before opening a ticket.

If you do need to open a ticket please make sure to provide us with all the needed information as described in this page

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.

Tagged: 

This topic contains 35 replies, has 2 voices.

Last updated by daisyL 1 month, 3 weeks ago.

Assigned support staff: Raja Mohammed.

Author Posts
September 6, 2019 at 10:01 am #4524653

daisyL

I set my website "each language in each directory". eg. gechic.com.cn/tw
It worked. However, sometimes I get 403 error in new pages.
There is always an error message on this WPML setting page.
看起來按目錄使用語言不起作用。 詳細資訊

這可能是以下任一情況造成的:

WordPress安裝在一個目錄中(非根目錄),您使用的是預設連結。
您的Web伺服器未啟用URL重寫。
Web伺服器無法寫入.htaccess檔案
如何解決
當WPML存取hidden link
HTTP 代碼:403 (Forbidden)

期望的值是:
<!--hidden link;

I have checked and confirmed that my file permission of server is correct.
I have confirmed that .htaccess file is correctly set as URL rewrite.

However, there are always 5 language folders (cn/de/en/jp/tw) in my file server. ( Not created by myself.)
Could you please help me to fix this error?

Daisy

September 6, 2019 at 11:00 am #4524933

Raja Mohammed
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello there,

It seems we lost your connection in the chat. I have moved the chat to forum ticket for better followup.

When you set up directory URL for language the server should not contain the language directory it will be virtually created by WPML. If you already have directories with language code then it will conflict with WPML and results in an error.

The solution is to remove the actual language directories from your server.

September 6, 2019 at 1:29 pm #4525537

daisyL

I know. I didn't create those directories. I didn't know why they appeared in some time.
Could it be caused by the setting of Permalink in WordPress?
I set the Permalink structure as Date+ article name. Is that right?
It's told by your website guideline.

September 9, 2019 at 2:40 am #4532971

Raja Mohammed
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I don't think permalinks would be an issue. Maybe you can check the server access logs to get more information about how or when the directory is created. Your hosting provider would be able to help you in this case.

If you still suspect WPML is creating those directories, Delete the directories from the server temporarily deactivate WPML check if the directories reappear reactivate WPML again check the server files once again for language directories. Let me know if you find anything strange I can take this further with detailed debugging.

September 9, 2019 at 6:22 am #4533789

daisyL

I checked the row log and only found there are some 300 error messages about "coundn't find hidden link hidden link. Since there are no language folders in the file server. I really can't provide further information. Anyway, if it happened again. I will copy the log and come up again.

September 9, 2019 at 10:50 am #4536035

Raja Mohammed
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Sure, only the server logs can help in such cases. If that happens again feel free to contact us any time.

September 10, 2019 at 5:43 am #4541961

daisyL

Dear Raja, It happened again last night.
However, the server log file was empty.
Please check the attached files and advise where I shall get the further information.

September 10, 2019 at 6:12 am #4542113

daisyL

Dear Raja
Some more information for your reference.
1) the empty log is the raw access log. Our website is blocked from search now.
2) I also found some 300 error logs as below.
Once I deleted the 5 language folders, these messages would come out.
I guess it's caused by setting conflicts.

AH00112: Warning: DocumentRoot [/home/gechic41/public_html/tw] does not exist
AH00112: Warning: DocumentRoot [/home/gechic41/public_html/jp] does not exist
AH00112: Warning: DocumentRoot [/home/gechic41/public_html/en] does not exist
AH00112: Warning: DocumentRoot [/home/gechic41/public_html/de] does not exist
AH00112: Warning: DocumentRoot [/home/gechic41/public_html/cn] does not exist

September 10, 2019 at 11:15 am #4544583

Raja Mohammed
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

The information is vague there is nothing much we can analyze from it.

Server access logs cannot be empty probably you might need to report this to your hosting service if this happens. Server access logs usually store all the activities of your site.

you might need to check from the access logs when the directories are created that would give some clue.

September 11, 2019 at 1:36 am #4549369

daisyL

I got the server log finally. finally. ( It was my fault. I used wrong software to extract the log)
The language directories were created on 9 Sep. 20:14 (Taipei time). So that I cut the relative time period ;

36.233.19.26 - - [09/Sep/2019:17:38:27 +0800] "GET /wp-content/plugins/wordpress-seo/js/dist/wp-seo-edit-page-1200.min.js?ver=12.0 HTTP/1.0" 200 248 "hidden link" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36"
36.233.19.26 - - [09/Sep/2019:17:38:27 +0800] "GET /wp-content/plugins/wordpress-seo/js/dist/wp-seo-quick-edit-handler-1200.min.js?ver=12.0 HTTP/1.0" 200 609 "hidden link" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36"
36.233.19.26 - - [09/Sep/2019:17:38:28 +0800] "POST /wp-admin/admin-ajax.php HTTP/1.0" 200 47 "hidden link" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36"
36.233.19.26 - - [09/Sep/2019:17:38:35 +0800] "GET /wp-content/uploads/bb-plugin/cache/312-layout.css?ver=7adee89cf4ce8935dcf4ddd2fafc3b75 HTTP/1.0" 200 4723 "hidden link" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36"
36.233.19.26 - - [09/Sep/2019:17:38:33 +0800] "GET /tw/ HTTP/1.0" 200 98142 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36"
36.233.19.26 - - [09/Sep/2019:17:38:36 +0800] "GET /wp-content/uploads/bb-plugin/cache/312-layout.js?ver=7adee89cf4ce8935dcf4ddd2fafc3b75 HTTP/1.0" 200 5469 "hidden link" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36"
36.233.19.26 - - [09/Sep/2019:17:38:36 +0800] "GET /wp-content/plugins/megamenu/js/maxmegamenu.js?ver=2.7.1.4 HTTP/1.0" 200 4544 "hidden link" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36"
36.233.19.26 - - [09/Sep/2019:17:38:36 +0800] "GET /wp-includes/js/hoverIntent.min.js?ver=1.8.1 HTTP/1.0" 200 479 "hidden link" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36"
36.233.19.26 - - [09/Sep/2019:17:40:28 +0800] "POST /wp-admin/admin-ajax.php HTTP/1.0" 200 47 "hidden link" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36"
36.233.19.26 - - [09/Sep/2019:17:42:28 +0800] "POST /wp-admin/admin-ajax.php HTTP/1.0" 200 47 "hidden link" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36"
77.104.142.39 - - [09/Sep/2019:18:50:35 +0800] "POST /wp-cron.php?doing_wp_cron=1568026235.6821498870849609375000 HTTP/1.0" 200 - "hidden link" "WordPress/5.2.3; hidden link"
77.104.142.39 - - [09/Sep/2019:20:24:59 +0800] "POST /wp-cron.php?doing_wp_cron=1568031899.0729210376739501953125 HTTP/1.0" 200 - "hidden link" "WordPress/5.2.3; hidden link"
122.118.41.111 - - [09/Sep/2019:20:24:52 +0800] "POST /wp-admin/admin-ajax.php HTTP/1.0" 200 47 "hidden link" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36"
122.118.41.111 - - [09/Sep/2019:20:26:53 +0800] "POST /wp-admin/admin-ajax.php HTTP/1.0" 200 47 "hidden link" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36"
122.118.41.111 - - [09/Sep/2019:20:28:54 +0800] "POST /wp-admin/admin-ajax.php HTTP/1.0" 200 47 "hidden link" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36"
122.118.41.111 - - [09/Sep/2019:20:30:55 +0800] "POST /wp-admin/admin-ajax.php HTTP/1.0" 200 47 "hidden link" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36"
122.118.41.111 - - [09/Sep/2019:20:32:55 +0800] "POST /wp-admin/admin-ajax.php HTTP/1.0" 200 47 "hidden link" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36"
122.118.41.111 - - [09/Sep/2019:20:34:55 +0800] "POST /wp-admin/admin-ajax.php HTTP/1.0" 200 47 "hidden link" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36"
122.118.41.111 - - [09/Sep/2019:20:35:10 +0800] "POST /wp-admin/admin-ajax.php HTTP/1.0" 200 47 "hidden link" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36"
122.118.41.111 - - [09/Sep/2019:20:35:18 +0800] "GET /wp-content/uploads/bb-plugin/cache/743-layout-draft.css?ver=23d66bbb8e0d400adfd243cf27c338d0 HTTP/1.0" 200 5849 "hidden link" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36"
122.118.41.111 - - [09/Sep/2019:20:35:18 +0800] "GET /wp-includes/css/buttons.min.css?ver=5.2.3 HTTP/1.0" 200 1531 "hidden link" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36"
122.118.41.111 - - [09/Sep/2019:20:35:18 +0800] "GET /wp-includes/css/media-views.min.css?ver=5.2.3 HTTP/1.0" 200 7691 "hidden link" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36"
122.118.41.111 - - [09/Sep/2019:20:35:16 +0800] "GET /tw/1306h-overview/?fl_builder HTTP/1.0" 200 555014 "hidden link" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36"
122.118.41.111 - - [09/Sep/2019:20:35:19 +0800] "GET /wp-content/uploads/bb-plugin/cache/743-layout-draft.js?ver=8a537f060c805751b03f95f8914b017d HTTP/1.0" 200 5004 "hidden link" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36"
122.118.41.111 - - [09/Sep/2019:20:35:19 +0800] "GET /tw/1306h-overview/?fl_builder&fl_builder_load_settings_config=modules&ver=1409592047 HTTP/1.0" 200 22313 "hidden link" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36"
122.118.41.111 - - [09/Sep/2019:20:35:19 +0800] "GET /tw/1306h-overview/?fl_builder&fl_builder_load_settings_config=1&ver=1274599096 HTTP/1.0" 200 14811 "hidden link" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36"

September 11, 2019 at 7:09 am #4551037

Raja Mohammed
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I could not exactly figure out any log related to directory creation, Please check the user name associated with the directories and check with your hosting provider they might give some additional information about the details.

If you can please check if there are any cron jobs running in your site you can use the plugin https://wordpress.org/plugins/wp-crontrol/ to see active cron jobs and time it is executed. Send me a screenshot of all the listed cron jobs.

September 11, 2019 at 9:17 am #4551979

daisyL

Dear Raja
The language directories appeared in this morning 10:46am. However, there are no relative server log in this period.
6.232.136.5 - - [11/Sep/2019:10:44:56 +0800] "GET / HTTP/1.0" 500 2696 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36"
36.232.136.5 - - [11/Sep/2019:10:45:04 +0800] "GET /favicon.ico HTTP/1.1" 200 5 "hidden link" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36"
36.232.136.5 - - [11/Sep/2019:13:37:30 +0800] "GET /wp-includes/css/dashicons.min.css?ver=5.2.3 HTTP/1.0" 200 28481 "hidden link" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36"
36.232.136.5 - - [11/Sep/2019:13:37:26 +0800] "GET / HTTP/1.0" 404 77257 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36"
36.232.136.5 - - [11/Sep/2019:13:37:30 +0800] "GET /wp-content/plugins/sitepress-multilingual-cms/dist/js/browser-redirect/app.js?ver=4.2.7.1 HTTP/1.0" 200 27781 "hidden link" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36"
36.232.136.5 - - [11/Sep/2019:13:37:30 +0800] "GET /wp-content/uploads/2019/08/%E7%B5%A6%E5%A5%87LOGO-3.png HTTP/1.0" 200 8155 "hidden link" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36"

Attached files for your reference.

September 11, 2019 at 10:50 am #4552757

Raja Mohammed
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Honestly, this is something beyond my knowledge. Still, I am trying to check similar language directories are created automatically.

Try updating to the latest version of WPML 4.2.8, Check if the issue persists.

Do you have any inputs from your hosting provider?

Maybe one thing we can try is to migrate your site to our private server and observe whether the directory creation is happening in the private server.

September 11, 2019 at 2:32 pm #4554309

daisyL

I tried to updated to new version,but I found the registration is disabled. ( I am sure I registered the site alreaday). I added the key again and it showed the key was invalid. Could you please help to find out what's wrong?

September 12, 2019 at 2:21 am #4557225

daisyL

Dear Raja,
any updates? I tried to delete the site I registered and add it again. But the new key is still not valid.
what's wrong?