Make WordPress Core

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#5077 closed defect (bug) (fixed)

"Browse" interface in "Upload" broken

Reported by: mattwiebe's profile mattwiebe Owned by: ryan's profile ryan
Milestone: 2.3.1 Priority: high
Severity: normal Version: 2.3
Component: Administration Keywords:
Focuses: Cc:

Description

I just upgraded to 2.3, and it's working well over all. I just ran into this problem when I click "Browse all" under the "Upload" section on a Write page:

Warning: filesize() [function.filesize]: stat failed for /home/omadades/public_html/mattwiebe/wp-content/uploads/2007/09/eyeoftheworld.jpg in /home/mattwieb/public_html/wp-admin/includes/upload.php on line 42

This appears next to a full-size image truncated into a thumbnail-sized area, for every image uploaded prior to the 2.3 upgrade.

I tried uploading a new image, and everything works properly there.

Attachments (1)

5077.diff (822 bytes) - added by ryan 17 years ago.
Hide warning from filesize

Download all attachments as: .zip

Change History (13)

#1 @Viper007Bond
17 years ago

  • Milestone changed from 2.5 to 2.3.1

#2 in reply to: ↑ description ; follow-up: @bl968
17 years ago

Replying to mattwiebe:

I just upgraded to 2.3, and it's working well over all. I just ran into this problem when I click "Browse all" under the "Upload" section on a Write page:

I was unable to duplicate this with either IE or firefox. I have 110 pages of pictures all uploaded before the upgade to 2.3 and works perfectly with both browsers. So need more information to duplicate.

You should try disabling all plugins and then see if the problem still exists. If it doesn't try activating the plugins one at a time, and checking to see if the problem reoccurs before activating the next plugin. That should help you identify the culprit.

#3 in reply to: ↑ 2 ; follow-up: @gate303
17 years ago

Replying to bl968:

I was unable to duplicate this with either IE or firefox. I have 110 pages of pictures all uploaded before the upgade to 2.3 and works perfectly with both browsers. So need more information to duplicate.

You should try disabling all plugins and then see if the problem still exists. If it doesn't try activating the plugins one at a time, and checking to see if the problem reoccurs before activating the next plugin. That should help you identify the culprit.

I have this problem aswell. My guess is that the problem is in the path to the files...

Warning: filesize() [function.filesize]: stat failed for /home/omadades/public_html/mattwiebe/wp-content/uploads/2007/09/eyeoftheworld.jpg in /home/mattwieb/public_html/wp-admin/includes/upload.php on line 42

My problem is starting from the day I changed web host, and thereby also got a new home directory.

#4 in reply to: ↑ 3 ; follow-up: @bl968
17 years ago

Replying to gate303:

Replying to bl968:

I was unable to duplicate this with either IE or firefox. I have 110 pages of pictures all uploaded before the upgade to 2.3 and works perfectly with both browsers. So need more information to duplicate.

You should try disabling all plugins and then see if the problem still exists. If it doesn't try activating the plugins one at a time, and checking to see if the problem reoccurs before activating the next plugin. That should help you identify the culprit.

I have this problem aswell. My guess is that the problem is in the path to the files...

Warning: filesize() [function.filesize]: stat failed for /home/omadades/public_html/mattwiebe/wp-content/uploads/2007/09/eyeoftheworld.jpg in /home/mattwieb/public_html/wp-admin/includes/upload.php on line 42

My problem is starting from the day I changed web host, and thereby also got a new home directory.

Check your upload path in /wp-admin/options-misc.php it should say wp-content/uploads

#5 @johanPO
17 years ago

I have the same issue. I upgraded to 2.3 and now on some files I am getting

Warning: filesize(): SAFE MODE Restriction in effect. The script whose uid is 1236 is not allowed to access /srv owned by uid 0 in /var/www/web216/html/internal/wp-admin/includes/upload.php on line 42

whereas other files are listed with their file size. I checked, all files are in the same directory, have the same permissions 666 and owner.

#6 in reply to: ↑ 4 @gate303
17 years ago

Replying to bl968:

Replying to gate303:

I have this problem aswell. My guess is that the problem is in the path to the files...

Warning: filesize() [function.filesize]: stat failed for /home/omadades/public_html/mattwiebe/wp-content/uploads/2007/09/eyeoftheworld.jpg in /home/mattwieb/public_html/wp-admin/includes/upload.php on line 42

My problem is starting from the day I changed web host, and thereby also got a new home directory.

Check your upload path in /wp-admin/options-misc.php it should say wp-content/uploads

It does say so.
If you read my description again you probably notice that all my uploads before I changed host breaks. All uploads made after the change of host works just fine.

The error is caused by the meta_value value in the table wp_postmeta.

#7 @theoa
17 years ago

  • Priority changed from normal to high

mattwiebe

thank you for generating this ticket.

I'm having the same issue with my 2.3 upgrade.

Theo

#8 @mattwiebe
17 years ago

I did change my hosting package around while upgrading to 2.3

It appears that the problem is that the browse function is tying itself absolutely to the filesystem on the server rather than relatively to the WP install. Or something like that.

#9 @ryan
17 years ago

Ticket #2682 covers the need for relative paths. The warning is generated by the changes made for #4561. I'll attach a patch that hides the warning, but the relative paths are a bigger issue that we will address in the other ticket.

@ryan
17 years ago

Hide warning from filesize

#10 @ryan
17 years ago

  • Owner changed from anonymous to ryan

#11 @ryan
17 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [6191]) Fix filesize warnings. fixes #5077 for 2.3

#12 @ryan
17 years ago

Fix for trunk went in on [6189]

Note: See TracTickets for help on using tickets.