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 4 replies, has 2 voices.
Last updated by ondrejd-2 1 year, 6 months ago.
Assisted by: Subash Chandra Poudel.
Author | Posts |
---|---|
May 5, 2023 at 11:02 am #13593353 | |
ondrejd-2 |
To explain our usage scenario. For some reason WPML adds double slashes to some image URLs. Also I would like to inform you that this issue is around for many many years so don't force us to update WPML yet. It has nothing to do with WPML version I am sure. |
May 8, 2023 at 6:30 am #13601895 | |
Subash Chandra Poudel |
Hi there, Thank you for contacting WPML support and for your patience while we were handling high number of support queue which caused a delay in reply here. You said, "WPML adds double slashes to some image URLs" does the issue gets resolved when WPML plugin is deactivated? Then the issue could most probably be related to this support thread linked next, in this case can you please try the fix there and see if it helps? https://wpml.org/forums/topic/image-url-contains-a-double-slash/ If the issue is resolved when WPML is deactivated, I would need to take a closer look at your site. So I would need to request temporary access (WP-Admin and FTP), preferably to a test site where the problem has been replicated. Your next answer will be private, which means only you and I have access to it. IMPORTANT: Please take a complete backup of the site to avoid data loss. Additionally I will need your permission to copy the site using a plugin like Duplicator ( https://wordpress.org/plugins/duplicator/ ) to my test environment to troubleshoot the issue further. Regards, |
May 8, 2023 at 10:51 am #13604671 | |
ondrejd-2 |
Hi Subash, Also I checked the database and in wp_posts there is only GUID column that should never be changed as it is not used as an URL as far as I know. I also checked the wp_postmeta table but for attachments only the part after the double slash is stored there. If I could find the URLs I would change them by some simple PHP script in no time. Unfortunately I couldn't find the complete URL for attachments. Also I would like to point out that this happened in the past. The photos we upload now are without double slashes. |
May 8, 2023 at 11:16 am #13604807 | |
Subash Chandra Poudel |
Hi there, Thank you for the updates and sorry for sharing the ticket without the links linked in the ticket. The link linked on the ticket was: hidden link Regards, |
May 11, 2023 at 8:55 am #13628347 | |
ondrejd-2 |
I just realized, when everything is stored correctly in the database there must be another reason for Ahrefs to detect URLs with double slashes. Turns out that the DB entries were somehow corrected (I suspect this was in one of the updates when we had to consolidate the tables or something like that). WPML really used to store URLs with double slashes, I remember that. Anyway. The attachment URLs were updated but not the URLs inside articles, products, pages. To correct these you have to do it yourself or use some kind of plugin that can remove double slashes from all the posts at once. We didn't use the plugin suggested above but it might be able to do the job. |