"Set Image" not working on Multisite 3.2.1.

44 views
Skip to first unread message

Harris

unread,
Aug 13, 2011, 3:37:20 PM8/13/11
to Magic Fields
I have Magic fields "network activated" and it works on the main site.
However for sub sites it doesn't. The set image doesn't show. The
files keep uploading to blog.dir/7/files instead of blog.dir/7/
files_mf

Again, the plugin is "network activated" as recommended.

Any help is very much appreciated.

Thanks,
Harris

Benedikt M.

unread,
Sep 12, 2014, 4:52:15 PM9/12/14
to magic-...@googlegroups.com
Exactly teh same problem at my site.
I think it depends on phpThumb.php:

$content_dir = str_replace('/', '\/', str_replace( ABSPATH, '', WP_CONTENT_DIR ));
preg_match('/\/' .$content_dir .'\/([0-9\_a-z\/\-\.]+\.(jpg|jpeg|png|gif))/i',$_GET['src'],$match);

$image_name_clean = $match[1];
$extension = $match[2];


This is not working for a url with "files" instead of "wp-content".

Please fix this.

Regards Benedikt
Reply all
Reply to author
Forward
0 new messages