Bug: Plugin not working with WPML cross-domain
-
Hi,
I’m using the latest version of your plugin, WP & WPML. I’ve found a bug that affects all WPML installations using Master Slider. Read the whole post please.
When making a Master Slider gallery in a WordPress post (so NOT a slider) on a WPML multilingual setup with custom domains like:
– en.domain.com
– pl.domain.com
– domain.com
the Master Slider gallery doesn’t show images. Here are the errors:MS_Aq_Resize.process() error: Image must be local: https://en.domain.com....[link to jpg file] MS_Aq_Resize.process() error: $url parameter is required
The error shows up for each image in the master slider gallery.
It seems obvious that the MS_Aq_Resize.process() function expects a URL that has the domain name matching the site url exactly.To fix this, you should change this to match the domain OR its subdomains. Here’s a function which extracts the domain name from the URL even if it uses a subdomain: https://stackoverflow.com/a/7573307/5572735
Another way of fixing this would be to match the URL of the image with the database and get a local path to the image file and use that for scaling, but that seems a lot more complex.
Looks like the issue also affects the sliders of Master Slider, not scaling the images properly.
Please push out a fix.
Best,
Chris Trynkiewiczhttps://www.ads-software.com/plugins/master-slider/
[Moderator Note: No bumping, thank you.]
- The topic ‘Bug: Plugin not working with WPML cross-domain’ is closed to new replies.