Hi Team, our guess is that WPML adds prefixes (-1, -2, etc.) when uploading files to the Media Library, even though the files were deleted earlier. We have checked WordPress for conflicts with other enabled plugins, but the upload mechanism returns to normal only when WPML is disabled. It appears to be an old issue, as we tested a copy of our website that was used several years ago, and the same behavior occurred there.
Here's front-end protection if you need it: admin | apgstemp
Please advise. Thank you!
I am not aware of such an issue, so I suspect it could be something specific to your website. While you wait for my colleague to take over, please try next:
Please make a backup before proceeding.
1) Please update all WPML plugins to the latest version by going to the Plugins → Add New page, click the Commercial tab, and then click Check for updates.
Thanks Drazen! We did that earlier, but the issue still happened with WP default theme and only WPML plugins enabled. It's worth mentioning that the website is on a multisite network, is there a chance it might be affecting the plugin's behavior?
When a media file is uploaded on the website using WPML, our usual practice is to translate it into all languages. This action generates a database entry, not a duplicate file. Based on your statement that you have deleted the images, there is a probability that they are not being removed properly from the secondary languages.
To confirm this situation, I propose a test. Kindly follow these steps to see if the outcome is consistent:
- Upload a new image.
- Navigate to WPML->Settings->Posts and pages synchronization and activate the option: "When deleting a post, delete translations as well" (Please be aware that this setting affects all posts globally, not just media.)
- Delete the image and then proceed to re-upload it.
Is the same issue still present?
Could you also clarify if you are uploading the image through the standard process or utilizing any import methods?
Look forward to your reply.
The topic ‘[Closed] WPML conflict with WordPress upload mechanism’ is closed to new replies.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.