{"id":4961927,"date":"2019-11-18T06:43:49","date_gmt":"2019-11-18T06:43:49","guid":{"rendered":"https:\/\/wpml.org\/?post_type=faq&#038;p=4961927"},"modified":"2024-04-23T05:56:07","modified_gmt":"2024-04-23T05:56:07","slug":"cannot-write-mo-files","status":"publish","type":"faq","link":"https:\/\/wpml.org\/zh-hans\/faq\/cannot-write-mo-files\/","title":{"rendered":"Why can\u2019t WPML write MO files for String Translation?"},"content":{"rendered":"\n<p class=\"lead\">WPML needs the <strong>languages<\/strong> folder in WordPress to be writable to save <strong>.mo<\/strong> files for String Translation. If a message appears saying WPML cannot write MO files, you&#8217;re likely facing a file permission issue. The steps to grant write permission differ between localhost setups and hosted environments.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How can I grant permission on my Localhost?<\/h2>\n\n\n\n<p>First, locate your WordPress installation directory on your local server. Within this directory, find the <strong>wp-content<\/strong> folder and then the <strong>languages<\/strong> folder inside. Follow the steps tailored to your operating system:<\/p>\n\n\n\n<div class=\"wp-block-toolset-blocks-grid tb-grid\" data-toolset-blocks-grid=\"20d784cc8384b1081346edfd23d91438\">\n<div class=\"wp-block-toolset-blocks-grid-column tb-grid-column tb-grid-align-top\" data-toolset-blocks-grid-column=\"3034fbe886c11054e95b46b09d3e4112\">\n<p class=\"tb-heading has-text-color\" data-toolset-blocks-heading=\"6d825ec7f0f953b62c92f7003df32374\" data-last-update=\"1.4\"><strong>Making the &#8220;languages&#8221; folder writable on Windows<\/strong><\/p>\n\n\n\n<div class=\"tb-fields-and-text\" data-toolset-blocks-fields-and-text=\"3e1d2592ce20bdf2bf813c9dfa44c991\"><p style=\"text-align: left;\"><span style=\"font-weight: 400;\">Right-click the <strong>languages<\/strong> folder, select <\/span><b>Properties<\/b><span style=\"font-weight: 400;\">, and go to the <\/span><b>Security<\/b><span style=\"font-weight: 400;\"> tab. Click on the <\/span><b>Edit<\/b><span style=\"font-weight: 400;\"> button and make the folder writable.<\/span><\/p><\/div>\n\n\n<div class=\"wp-block-image\">\n<figure class=\" tb-image tb-image-dynamic tb-image-frame-none aligncenter\" data-toolset-blocks-image=\"a8bee684a7e528cd7c52d3055080c523\"><a href=\"https:\/\/wpml.org\/wp-content\/uploads\/2019\/11\/wpml-permissions-languages-folder-windows.png\"><img decoding=\"async\" width=\"362\" height=\"480\" loading=\"lazy\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2019\/11\/wpml-permissions-languages-folder-windows.png\" alt=\"\" class=\"wp-image-15553490\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2019\/11\/wpml-permissions-languages-folder-windows.png 362w, https:\/\/wpml.org\/wp-content\/uploads\/2019\/11\/wpml-permissions-languages-folder-windows-226x300.png 226w, https:\/\/wpml.org\/wp-content\/uploads\/2019\/11\/wpml-permissions-languages-folder-windows-113x150.png 113w, https:\/\/wpml.org\/wp-content\/uploads\/2019\/11\/wpml-permissions-languages-folder-windows-300x398.png 300w\" sizes=\"auto, (max-width: 362px) 100vw, 362px\" \/><\/a><\/figure>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-toolset-blocks-grid-column tb-grid-column tb-grid-align-top\" data-toolset-blocks-grid-column=\"3034fbe886c11054e95b46b09d3e4112\">\n<p class=\"tb-heading has-text-color\" data-toolset-blocks-heading=\"6d825ec7f0f953b62c92f7003df32374\" data-last-update=\"1.4\"><strong>Making the &#8220;languages&#8221; folder writable on Mac<\/strong><\/p>\n\n\n\n<div class=\"tb-fields-and-text\" data-toolset-blocks-fields-and-text=\"3e1d2592ce20bdf2bf813c9dfa44c991\"><p style=\"text-align: left;\"><span style=\"font-weight: 400;\">Right-click the <\/span><strong>languages<\/strong><span style=\"font-weight: 400;\"> folder and select <\/span><b>Get Info<\/b><span style=\"font-weight: 400;\">. In <\/span><b>Sharing &amp; Permissions, <\/b><span style=\"font-weight: 400;\">change the <\/span><b>Privilege <\/b><span style=\"font-weight: 400;\">for your user to <\/span><b>Read &amp; Write. <\/b><\/p><\/div>\n\n\n<div class=\"wp-block-image\">\n<figure class=\" tb-image tb-image-dynamic tb-image-frame-none aligncenter\" data-toolset-blocks-image=\"e27765ab877cfcd3e3f1150deeb97b54\"><a href=\"https:\/\/wpml.org\/wp-content\/uploads\/2019\/11\/wpml-mac-writing-permission.png\"><img decoding=\"async\" width=\"530\" height=\"814\" loading=\"lazy\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2019\/11\/wpml-mac-writing-permission.png\" alt=\"\" class=\"wp-image-15553570\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2019\/11\/wpml-mac-writing-permission.png 530w, https:\/\/wpml.org\/wp-content\/uploads\/2019\/11\/wpml-mac-writing-permission-195x300.png 195w, https:\/\/wpml.org\/wp-content\/uploads\/2019\/11\/wpml-mac-writing-permission-98x150.png 98w, https:\/\/wpml.org\/wp-content\/uploads\/2019\/11\/wpml-mac-writing-permission-300x461.png 300w\" sizes=\"auto, (max-width: 530px) 100vw, 530px\" \/><\/a><\/figure>\n<\/div><\/div>\n<\/div>\n\n\n\n<p>WordPress can now automatically download and update language files as needed for your local site.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How do I grant write permission if I have access to the hosting control panel software?<\/h2>\n\n\n\n<p>If your web host gave you access to the hosting control panel software, you can change the file permissions yourself. For example, with cPanel:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Log in to your cPanel account and click on <strong>File Manager<\/strong> in the <strong>Files<\/strong> section.<\/li>\n\n\n\n<li>Locate the root directory of your site, usually named <strong>public_html<\/strong>, and open it.<\/li>\n\n\n\n<li>Click on the <strong>wp-content<\/strong> folder and find the <strong>languages<\/strong> folder inside.<\/li>\n\n\n\n<li>Right-click on the <strong>languages<\/strong> folder and select<strong> Change Permissions<\/strong> from the dropdown menu.\u00a0<\/li>\n\n\n\n<li>Set the permissions to 755 and click on <strong>Change Permissions<\/strong> to save.<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\" tb-image tb-image-dynamic tb-image-frame-none aligncenter\" data-toolset-blocks-image=\"9fb466a3dcb8a9f7773f2704e936881f\"><a href=\"https:\/\/wpml.org\/wp-content\/uploads\/2019\/11\/cpanel-wpml-languages-folder-set-permissions-1.png\"><img decoding=\"async\" width=\"1024\" height=\"527\" loading=\"lazy\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2019\/11\/cpanel-wpml-languages-folder-set-permissions-1-1024x527.png\" alt=\"\" class=\"wp-image-15553547\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2019\/11\/cpanel-wpml-languages-folder-set-permissions-1-1024x527.png 1024w, https:\/\/wpml.org\/wp-content\/uploads\/2019\/11\/cpanel-wpml-languages-folder-set-permissions-1-300x155.png 300w, https:\/\/wpml.org\/wp-content\/uploads\/2019\/11\/cpanel-wpml-languages-folder-set-permissions-1-150x77.png 150w, https:\/\/wpml.org\/wp-content\/uploads\/2019\/11\/cpanel-wpml-languages-folder-set-permissions-1-768x396.png 768w, https:\/\/wpml.org\/wp-content\/uploads\/2019\/11\/cpanel-wpml-languages-folder-set-permissions-1-1536x791.png 1536w, https:\/\/wpml.org\/wp-content\/uploads\/2019\/11\/cpanel-wpml-languages-folder-set-permissions-1.png 1922w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption><div class=\"tb-image-caption\">Granting Write permission for the languages folder in cPanel<span id=\"docs-internal-guid-a3579359-7fff-00b2-7144-5cc1cd711edf\"><p><span style=\"font-size: 11pt; font-family: Arial, sans-serif; color: rgb(0, 0, 0); background-color: transparent; font-style: italic; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; vertical-align: baseline;\"><\/span><\/p><\/span><\/div><\/figcaption><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">If I don\u2019t have write permission, how can I get my hosting company to grant it to me?<\/h2>\n\n\n\n<p>Most hosting companies do not allow you to modify write permissions for folders directly. If you are using a shared or managed host, you will need to request help to make this directory writable.\u00a0<\/p>\n\n\n\n<p>WPML\u2019s error message will give the full path of the folder that needs changing. Share this path with your hosting company and ask them to make it writable so WPML can save its MO files. This folder is safe to open as it is where WordPress stores <strong>MO<\/strong> files it downloads for you.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What should I do if I can\u2019t make the languages folder writable?<\/h2>\n\n\n\n<p>If you are using a version of WPML older than WPML 4.3 and cannot get the languages folder to be writable, please <a href=\"https:\/\/wpml.org\/forums\/forum\/english-support\/\">open a ticket in our support forum<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WPML can&#8217;t write MO files mostly due to file permission issues, preventing access to the WordPress languages folder. Ensure the folder is writable.<\/p>\n","protected":false},"author":2,"featured_media":0,"menu_order":50,"template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"ep_exclude_from_search":false,"footnotes":""},"faq-category":[26133],"class_list":["post-4961927","faq","type-faq","status-publish","hentry","faq-category-troubleshooting"],"_links":{"self":[{"href":"https:\/\/wpml.org\/zh-hans\/wp-json\/wp\/v2\/faq\/4961927","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpml.org\/zh-hans\/wp-json\/wp\/v2\/faq"}],"about":[{"href":"https:\/\/wpml.org\/zh-hans\/wp-json\/wp\/v2\/types\/faq"}],"author":[{"embeddable":true,"href":"https:\/\/wpml.org\/zh-hans\/wp-json\/wp\/v2\/users\/2"}],"version-history":[{"count":9,"href":"https:\/\/wpml.org\/zh-hans\/wp-json\/wp\/v2\/faq\/4961927\/revisions"}],"predecessor-version":[{"id":15553583,"href":"https:\/\/wpml.org\/zh-hans\/wp-json\/wp\/v2\/faq\/4961927\/revisions\/15553583"}],"wp:attachment":[{"href":"https:\/\/wpml.org\/zh-hans\/wp-json\/wp\/v2\/media?parent=4961927"}],"wp:term":[{"taxonomy":"faq-category","embeddable":true,"href":"https:\/\/wpml.org\/zh-hans\/wp-json\/wp\/v2\/faq-category?post=4961927"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}