[wp-hackers] Set a unique directory for uploads

Chris Jean gaarai at gaarai.com
Fri Jan 16 16:16:12 GMT 2009


I guess it depends on where you put the code and how your site is set 
up. I did this on a stock install of 2.7 with no plugins and put the 
code at the end of the functions.php file of the default theme.

No warnings or errors were generated by this change and all the pages 
functioned properly. Well, all the pages I tested worked correctly. I 
checked again, and my Tools page worked just fine.

It's possible that a plugin or theme feature is causing this failure, so 
I wouldn't know exactly what the problem is nor how to fix it unless I 
were to get more details about what you are running on the site or 
access to the site itself.

You might try disabling all your plugins first and seeing if the problem 
goes away. If the problem goes away, then activate plugins one at a time 
until the problem comes back. That will tell you if a plugin is causing 
the problem and specifically which one it is.

Chris Jean
http://gaarai.com/
http://wp-roadmap.com/



Mário Gamito wrote:
> Hi Gaarai,
>
> Thank you for your answer.
>
> Gaarai wrote:
>   
>> add_filter( 'intermediate_image_sizes',
>> 'remove_intermediate_image_sizes' );
>> function remove_intermediate_image_sizes( $sizes ) {
>>    return array();
>> }
>>
>> This could simply be added to your functions.php file in the theme. I
>> tested it this way, and it worked perfectly.
>>     
> Yes, it works. Although I get the "headres already sent" warning after
> the crunching.
>
> But the worst part is that it breaks the tools page. I get a blank page.
>
> Any ideias ?
>
> Warm Regards,
>   


More information about the wp-hackers mailing list