Title: Warning: filesize() [function.filesize]: stat failed
Last modified: August 30, 2016

---

# Warning: filesize() [function.filesize]: stat failed

 *  Resolved [pmaddison](https://wordpress.org/support/users/pmaddison/)
 * (@pmaddison)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/warning-filesize-functionfilesize-stat-failed-1/)
 * Just installed DG.
 * I have used the following shortcode. [dg ids=”896,892″]
 * Received the following on the webpage (one for each document).
 * Warning: filesize() [function.filesize]: stat failed … /wp-content/plugins/document-
   gallery/inc/class-document.php on line 42
 * After the warnings the page builds as I would have thought, but the document 
   links are 404 not found.
 * Any thoughts?
 * [https://wordpress.org/plugins/document-gallery/](https://wordpress.org/plugins/document-gallery/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Dan Rossiter](https://wordpress.org/support/users/danrossiter/)
 * (@danrossiter)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/warning-filesize-functionfilesize-stat-failed-1/#post-6550277)
 * Hi pmaddison,
 * The error plus the fact that your links do not work suggests that there is something
   fundamentally wrong with your WP install outside of the plugin. To verify, would
   you mind doing a quick test for me?
 * Go to `WP Dashboard -> Media -> Library`, then click on any of the attachments
   that were included in the generated gallery and in the resulting popup there 
   should be a textbox in the top right with the “URL” label. Copy that URL and 
   paste it into your browser. I would expect that you will get a 404.
 * -Dan
 *  Thread Starter [pmaddison](https://wordpress.org/support/users/pmaddison/)
 * (@pmaddison)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/warning-filesize-functionfilesize-stat-failed-1/#post-6550279)
 * Thanks Dan,
 * Have done as you asked and you are correct. I should have been smart enough to
   check that before posting. Sorry to bother you.
 * Thanks for your help,
    Peter
 *  Plugin Author [Dan Rossiter](https://wordpress.org/support/users/danrossiter/)
 * (@danrossiter)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/warning-filesize-functionfilesize-stat-failed-1/#post-6550310)
 * No problem at all, Peter! Good luck figuring out the underlying issue.
 * -Dan
 * PS: If you’ve found this plugin useful, please take a moment to [rate it](http://wordpress.org/support/view/plugin-reviews/document-gallery#postform).
   Thanks! 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Warning: filesize() [function.filesize]: stat failed’ is closed to new
replies.

 * ![](https://ps.w.org/document-gallery/assets/icon.svg?rev=983329)
 * [Document Gallery](https://wordpress.org/plugins/document-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/document-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/document-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/document-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/document-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/document-gallery/reviews/)

## Tags

 * [filesize](https://wordpress.org/support/topic-tag/filesize/)
 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * 3 replies
 * 2 participants
 * Last reply from: [Dan Rossiter](https://wordpress.org/support/users/danrossiter/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/warning-filesize-functionfilesize-stat-failed-1/#post-6550310)
 * Status: resolved