Wrong path to ai-cache folder
-
If the plugin is used on a virtual server, creates the folder ai-cache elsewhere than in the folder uploads.
The problem is in line https://plugins.trac.www.ads-software.com/browser/new-nine-adaptive-images/trunk/adaptive-images.php # L59
The value of $_SERVER [‘DOCUMENT_ROOT’] return much different path than $n9m_uploads_dir_array[‘basedir’] and then can not function str_replace().
I’m not a programmer, but this line works for me:
$cache_path = rtrim( ltrim( str_replace( get_bloginfo(‘url’), ”, $n9m_uploads_dir_array[‘baseurl’] ), ‘/’ ), ‘/’ ).’/ai-cache’;Perhaps the plugin authors do something with this in the next versions…
https://www.ads-software.com/plugins/new-nine-adaptive-images/
- The topic ‘Wrong path to ai-cache folder’ is closed to new replies.