Ticket #5077 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

"Browse" interface in "Upload" broken

Reported by: mattwiebe Assigned to: ryan
Priority: high Milestone: 2.3.1
Component: Administration Version: 2.3
Severity: normal Keywords:
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

5077.diff (0.8 kB) - added by ryan on 10/04/07 21:46:06.
Hide warning from filesize

Change History

09/26/07 09:43:33 changed by Viper007Bond

  • milestone changed from 2.5 to 2.3.1.

(in reply to: ↑ description ; follow-up: ↓ 3 ) 09/27/07 04:28:14 changed by bl968

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.

(in reply to: ↑ 2 ; follow-up: ↓ 4 ) 09/27/07 13:12:26 changed by 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.

(in reply to: ↑ 3 ; follow-up: ↓ 6 ) 09/27/07 17:51:11 changed by bl968

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

09/27/07 19:12:12 changed by johanPO

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.

(in reply to: ↑ 4 ) 09/27/07 20:52:12 changed by gate303

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.

09/29/07 05:01:01 changed by theoa

  • 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

10/01/07 01:52:27 changed by mattwiebe

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.

10/04/07 21:45:23 changed by ryan

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.

10/04/07 21:46:06 changed by ryan

  • attachment 5077.diff added.

Hide warning from filesize

10/04/07 21:49:30 changed by ryan

  • owner changed from anonymous to ryan.

10/05/07 16:29:55 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

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

10/05/07 16:30:54 changed by ryan

Fix for trunk went in on [6189]