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: Exception
This topic contains 7 replies, has 2 voices.
Last updated by Andreas W. 1 year, 8 months ago.
Assisted by: Andreas W..
Author | Posts |
---|---|
April 19, 2023 at 9:10 pm #13507973 | |
Phil Cox |
I am trying to: run WPML Link to a page where the issue can be seen: hidden link I expected to see: Successful running Instead, I got: WPML String Translation is attempting to write .mo files with translations to folder: This folder appears to be not writable. This is blocking translation for strings from appearing on the site. To resolve this, please contact your hosting company and request that they make that folder writable. For more details, see WPML's documentation on troubleshooting .mo files generation.. I have confirmed the folder is writeable (see attached image). Thank you. |
April 21, 2023 at 2:54 am #13514819 | |
Andreas W. Supporter Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Hello, Please make sure that the /wp-content/languages folder and its subfolders are writable. WPML will use the directory /wp-content/languages/wpml for its custom language files. Please also do not hesitate to report this to your hosting support for further revision as it could be that this is controlled from their side. If anyhow afterward further assistance is needed, I can offer to take a copy of your site and test it on a virtual server. Best regards |
April 21, 2023 at 8:18 pm #13519771 | |
Phil Cox |
Hi Andreas, thank you for picking up this thread. I look forward to a rapid resolution as this WPML media library issue is now impacting our roll-out. I showed you in my previous message that /wp-content/languages folder is writable. You can see from the image I included that the folder is set to 755. I have included a similar image taken on a DEV copy of the site. Again, the languages folder is set correctly. I also confirm that /wp-content/languages/wpml is writable and is also set to 755. (see additional attached image). With the file permissions set correctly, please could you investigate why it is not possible to remove the redundant media entries from the database? If you need to take a copy of the site, please go ahead. |
April 21, 2023 at 8:21 pm #13519821 | |
Phil Cox |
Please note, this is a continuation of the thread at https://wpml.org/forums/topic/how-to-remove-wpml-media-translation/#post-13519819 "How to remove WPML media translation". |
April 21, 2023 at 9:10 pm #13519895 | |
Andreas W. Supporter Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Hello, I would like to offer to take a copy of your site in order to test it on a virtual server. I am requesting temporary access (wp-admin and FTP) to the website. You can find the required fields below the comment section when you log in to leave the next reply. The information you provide is private, which means only you and I can see and access it. IMPORTANT I have to install a plugin called "All In One WP Migration" to make a copy of the website where I can investigate the issue further. The private response form looks like this: Next time you reply, click "I still need assistance." Video: Please note that we are obliged to request this information individually on each ticket. We may not access any access information not specifically submitted on this ticket in the private response form. Best regards |
April 26, 2023 at 11:03 pm #13545313 | |
Andreas W. Supporter Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Hello, I did not have any issue with running the dialog to create WPML's custom language files. The translations on WPML > String Translation also appear to save as expected. Could you please test again, now? Best regards |
April 26, 2023 at 11:26 pm #13545359 | |
Phil Cox |
Thanks Andreas. The site at hidden link appears to be running correctly now. Not sure what changed in order to provide the correct file permissions. Now we need to focus on the WPML media library bloat. |
April 27, 2023 at 12:49 am #13545597 | |
Andreas W. Supporter Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Hello, Ok, but I see you have an open ticket about this issue already here: I suggest you keep working with Mihai on this matter, as he is already on it. The error you get is: This means the 256M WP Memory Limit is not enough to run this script. I may adjust the limit to 512M inside the wp-config.php file but you might possibly run into a similar error again, as there are too many media files, languages, and media translations, and the server can not process it. Take note, that WPML does need to have one <srong>entry for each image in each language - those are not physical duplicates of files on the server - instead, WPML is simply building a connection between original content and translations on its own WPML database tables. This means, your site has 44770 media items and 13 languages. So in order to display those 44700 media items in all languages, it requires at least 582010 data entries, possibly more - as WPML needs to do this, in order to display those 44700 media items in all languages. If you remove the wrong images from a second language in the media library then those images will not show up in the second language anymore. WPML Media Translation usually is only necessary in order to upload alternative images in a second language - which means you want a physical alternative image in a specific language. This is why I suggest, if it was the case, that you used WPML Media in order to upload alternative media files in a second language and you do not want to use those files anymore, then I would suggest manually cleaning up the media library. When on the WordPress Media Library you can switch the language in the top admin bar to filter images per language. Best regards |