khashnan / timthumb

Automatically exported from code.google.com/p/timthumb
0 stars 0 forks source link

Doesnt' work in a network WP site #294

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. install timthumb in a networked site (formerly wp-mu)
2. observe that timthumb will only search in $doc_root/files
3. profit!

What is the expected output? What do you see instead?

No thumbnails

What version of the product are you using? On what operating system?

Latest on linux

Please provide any additional information below.

In function getLocalImagePath($src)

$src could be 
http://example.wordpress.example.com/files/2011/11/somepicture.jpg&h=60&w=70&zc=
1

and the function will search in 
$doc_root/files
$doc_root/wp-content/files
$doc_root/whatever_other_dir_OR_FILE_there_is_in_${doc_root}

(so it will even search in $doc_root/somefile.php/ !)

but in a multi-site files are in wp-content/blogs.dir/{blog_id}

Cheers,
ace

Original issue reported on code.google.com by acesua...@gmail.com on 24 Nov 2011 at 1:20

GoogleCodeExporter commented 8 years ago
I hardcoded (Bad Thing™)

$src = "wp-content/blogs.dir/23/" . $src ; // Ace 2011-11-23

after line 820

Original comment by acesua...@gmail.com on 24 Nov 2011 at 1:23

GoogleCodeExporter commented 8 years ago
This is not an issue with TimThumb and is instead a problem with how your theme 
is setup. More info here: 
http://www.binarymoon.co.uk/2009/10/timthumb-wordpress-mu/

Original comment by BinaryMoon on 24 Nov 2011 at 8:54

GoogleCodeExporter commented 8 years ago
Thanx!

Original comment by acesua...@gmail.com on 24 Nov 2011 at 11:09