Re: [wp-testers] sorta an off the wall bug

2012-06-21 Thread Otto
There's nothing wrong with that. The upload_path *should* get set to the full hard-path when the wp-content directory isn't in the ABSPATH. When you move the site from one place to another, yes, that upload_path will break if it's a hard path. But so will many other things, generally speaking.

Re: [wp-testers] sorta an off the wall bug

2012-06-21 Thread Philip M. Hofer (Frumph)
Okie dokie. I am storing it in my memory to remember to have people check that as a possible reason why the wp_upload_dir() is failing. - Phil -Original Message- From: Otto Sent: Thursday, June 21, 2012 6:16 AM To: wp-testers@lists.automattic.com Subject: Re: [wp-testers] sorta

Re: [wp-testers] sorta an off the wall bug

2012-06-21 Thread Bimal Rekhadiya
I am fully agree with Philip. The path should not absolute path. The upload process is working with wp-content/uploads path. So changing this will not make any effect. And this will help us when we move host. I am a web developer.The Media upload is broken whenever I move Wordpress site to

Re: [wp-testers] sorta an off the wall bug

2012-06-21 Thread Andrew Nacin
On Thu, Jun 21, 2012 at 9:16 AM, Otto o...@ottodestruct.com wrote: There's nothing wrong with that. The upload_path *should* get set to the full hard-path when the wp-content directory isn't in the ABSPATH. But is that what is occurring here? Doesn't seem like it, based on my read. Frumph?

Re: [wp-testers] sorta an off the wall bug

2012-06-21 Thread Andrew Macaulay-Brook
I regularly move sites from development on my MacBook to my live Linux server which have different file paths and I have never had to change anything. I think there must be something else at play here. A. Please excuse any brevity: Sent from my iPhone On 21 Jun 2012, at 16:31, Andrew Nacin

Re: [wp-testers] sorta an off the wall bug

2012-06-21 Thread Philip M. Hofer (Frumph)
It gets the full hard-path of whatever is set in the upload_path and uses it. Users who have moved their sites will have that hard-path still and it will use it. so wp_upload_dir() fails out with wp_error. Only fix is to go to wp-admin/options.php and change the upload_path (or use

Re: [wp-testers] sorta an off the wall bug

2012-06-21 Thread Philip M. Hofer (Frumph)
To fix, users who have moved their site (on the same hosting, or with .sql dumps) -Original Message- From: Philip M. Hofer (Frumph) Sent: Thursday, June 21, 2012 11:25 AM To: wp-testers@lists.automattic.com Subject: Re: [wp-testers] sorta an off the wall bug It gets the full

Re: [wp-testers] sorta an off the wall bug

2012-06-21 Thread Otto
On Thu, Jun 21, 2012 at 10:31 AM, Andrew Nacin w...@andrewnacin.com wrote: But is that what is occurring here? Doesn't seem like it, based on my read. Frumph? Re-reading it, I'm not sure what he's saying, actually. if ( !$upload_path = get_option( 'upload_path' ) ) { $upload_path = substr(

Re: [wp-testers] sorta an off the wall bug

2012-06-21 Thread Otto
On Thu, Jun 21, 2012 at 1:25 PM, Philip M. Hofer (Frumph) phi...@frumph.net wrote: It gets the full hard-path of whatever is set in the upload_path and uses it. Users who have moved their sites will have that hard-path still and it will use it.  so wp_upload_dir() fails out with wp_error.

Re: [wp-testers] sorta an off the wall bug

2012-06-21 Thread Philip M. Hofer (Frumph)
upload_path = /home/funk/wp-content/uploads SAVED ABSPATH IN upload_path = /home/funk NEW CURRENT ABSPATH = /home/foo echo substr( WP_CONTENT_DIR, strlen( ABSPATH ) ).'uploads'; will produce /home/funk/wp-content/uploads. -Original Message- From: Otto Sent: Thursday, June 21,

Re: [wp-testers] sorta an off the wall bug

2012-06-21 Thread Otto
On Thu, Jun 21, 2012 at 1:32 PM, Philip M. Hofer (Frumph) phi...@frumph.net wrote: upload_path = /home/funk/wp-content/uploads SAVED ABSPATH IN upload_path = /home/funk NEW CURRENT ABSPATH  = /home/foo echo substr( WP_CONTENT_DIR, strlen( ABSPATH ) ).'uploads'; will produce

Re: [wp-testers] sorta an off the wall bug

2012-06-21 Thread Philip M. Hofer (Frumph)
actually no, but it does return with the old /home/funk/wp-content/uploads/ { [error]= string(142) Unable to create directory /home1/tkdanimc/public_html/nikkisprite/wp-content/uploads/2012/06 string(71) /home/tdoherty/public_html/nikkisprite.com/wp-content/themes/comicpress tkdanimc =

Re: [wp-testers] sorta an off the wall bug

2012-06-21 Thread Philip M. Hofer (Frumph)
It did for a very long time, it might not now, just tested it as well and mines completely blank. -Original Message- From: Otto Sent: Thursday, June 21, 2012 11:35 AM To: wp-testers@lists.automattic.com Subject: Re: [wp-testers] sorta an off the wall bug On Thu, Jun 21, 2012 at

Re: [wp-testers] sorta an off the wall bug

2012-06-21 Thread Philip M. Hofer (Frumph)
Yeah, I got you, and understand.I was reiterating for Nacin who wanted more information. It is happening to some people, no idea why - or with what version of WordPress it was happening with - or even if it was a plugin or theme that might have had set it. Which is why I have no problem