Ticket #5077 (closed defect (bug): fixed)

Opened 4 years ago

Last modified 4 years ago

"Browse" interface in "Upload" broken

Reported by: mattwiebe Owned by: 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 Download (822 bytes) - added by ryan 4 years ago.
Hide warning from filesize

Change History

  • Milestone changed from 2.5 to 2.3.1

comment:2 in reply to: ↑ description ; follow-up: ↓ 3   bl9684 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.

comment:3 in reply to: ↑ 2 ; follow-up: ↓ 4   gate3034 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.

comment:4 in reply to: ↑ 3 ; follow-up: ↓ 6   bl9684 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

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.

comment:6 in reply to: ↑ 4   gate3034 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.

  • 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

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.

comment:9   ryan4 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.

ryan4 years ago

Hide warning from filesize

  • Owner changed from anonymous to ryan
  • Status changed from new to closed
  • Resolution set to fixed

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

Fix for trunk went in on [6189]

Note: See TracTickets for help on using tickets.