Not working for me (wordpress in multisite mode / domain mapping plugin)
-
Hi,
First of all thank you for this great plugin that is working perfectly for me in Retina.js mode.
However, I would like to use the recommended PictureFill mode, but unfortunately it does not work on my setup, which is:
– WordPress 4.1.1
– WordPress MU Domain Mapping plugin to map blogs to custom domains.To be short, the plugin is simply trying to search for retina images at the wrong path. For example (from the logfile):
2015-03-07 15:26:24: * HTML REWRITE FOR PICTUREFILL 2015-03-07 15:26:24: Retina file at '/Volumes/Data/Library/Server/Web/Data/Sites/wordpress/files/2015/01/Tilt-Shift-First-try-432x432@2x.jpg' does not exist. 2015-03-07 15:26:24: The img tag was not rewritten. No retina for 'https://www.zoccolo.com/files/2015/01/Tilt-Shift-First-try-432x432.jpg'.
The path for this file should be /Volumes/Data/Library/Server/Web/Data/Sites/wordpress/wp-content/blogs.dir/3/files/2015/01/Tilt-Shift-First-try-432×432\@2x.jpg
I did not had a look to your code, but I suppose the problem is related to the domain mapping plugin and the fact that the server name in img src tags is from a custom domain and not a subdomain of my WP installation (and then it cannot map back URL to PATH).
I’m not going to ask you to fix this problem because my setup is pretty uncommon, but if you could help me to find a solution by:
1) Suggesting domain mapping plugin you know is working with wp-retina
or
2) Giving some advices on how I could patch the code myself, given the fact that I have more than 15 years experiences in OOP (mostly C++, but PHP should’nt be a problem), but know nothing about the WordPress API.Many thanks.
- The topic ‘Not working for me (wordpress in multisite mode / domain mapping plugin)’ is closed to new replies.