Title: Error on uploads?
Last modified: August 21, 2016

---

# Error on uploads?

 *  [toto](https://wordpress.org/support/users/toto/)
 * (@toto)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/error-on-uploads/)
 * Hi all I follow the instructions to add new filter but on upload i get this error?
 * 43646
    Fatal error: Call to a member function get() on a non-object in /home/
   stamabgc/public_html/develop/wp-includes/cache.php on line 113
 * Whats happen?
 * And it will be a great idea on page Upload New Media (wp-admin/media-new.php)
   under the text “Maximum upload file size: 50MB.” to have a checkbox “Replace/
   Overwrite existing files. (Otherwise will create a copy with xxx number after
   filename)”.
 * [http://wordpress.org/extend/plugins/overwrite-uploads/](http://wordpress.org/extend/plugins/overwrite-uploads/)

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

 *  Plugin Author [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * (@iandunn)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/error-on-uploads/#post-3676760)
 * I wasn’t able to reproduce the error you got. Can you try temporarily disabling
   all the other plugins you have installed, and switching to the Twenty Twelve 
   theme? That will test if the problem is caused by Overwrite Uploads or by another
   plugin/theme.
 * I added the idea about the checkbox to the requests list.
 *  Thread Starter [toto](https://wordpress.org/support/users/toto/)
 * (@toto)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/error-on-uploads/#post-3676818)
 * Yes, i testesd it now.
 * I used total clean installation of WP – 3.5.1 and latest version of Overwrite
   Uploads – 1.0.2 plugin.
    All other plugins was disabled. The theme is default
   Twenty Twelve. No other settings are used. I added necessary code in file.php,
   checked it twice.
 * And the results are:
 * 1. The message: “Overwrite Uploads requires a new filter to be added to WordPress.
   If this is a new installation or you recently upgraded WordPress, please see 
   the installation instructions on the Installation page for information on adding
   it.” is permanent on top and not disapear even if you add new hooks???
    2. On
   Drop files here (media-new.php) when upload files i recive error: Fatal error:
   Call to a member function get() on a non-object in #######\wordpress3\wp-includes\
   cache.php on line 113 on each file uploaded? 3. If you put file with same name
   it not re-uploaded it just copied with new name with digit after name. So the
   plugin not working not Overwrite the existing files?
 * Whats to do next?
 *  Plugin Author [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * (@iandunn)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/error-on-uploads/#post-3676831)
 * The error message in #1 appears if the plugin detects that the modifications 
   weren’t made completely. Can you run through the installation instructions again
   and double check everything?
 *  Thread Starter [toto](https://wordpress.org/support/users/toto/)
 * (@toto)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/error-on-uploads/#post-3676833)
 * Hi Ian Dunn thanks i recheck all steps again, and i WORKS!!!
 * But i saw other problem. When upload other file and if it replace the old file
   the attached file is cleared?
 * So all posts witch has had featured post set and if the image is overwrited, 
   the image is not seted anymore to the post?
 * Any Ideas an help here?
 *  Plugin Author [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * (@iandunn)
 * [13 years ago](https://wordpress.org/support/topic/error-on-uploads/#post-3676841)
 * That’s a good point. The plugin should probably delete the new Media Library 
   entry, instead of the old one.
 * I’ll add that to the TODO list, but I’m not sure when I’ll have time to actually
   fix it. If you’re a programmer and want to submit a patch, it’d be greatly appreciated.

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

The topic ‘Error on uploads?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/overwrite-uploads.svg)
 * [Overwrite Uploads](https://wordpress.org/plugins/overwrite-uploads/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/overwrite-uploads/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/overwrite-uploads/)
 * [Active Topics](https://wordpress.org/support/plugin/overwrite-uploads/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/overwrite-uploads/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/overwrite-uploads/reviews/)

## Tags

 * [media library](https://wordpress.org/support/topic-tag/media-library/)
 * [upload new media](https://wordpress.org/support/topic-tag/upload-new-media/)

 * 5 replies
 * 2 participants
 * Last reply from: [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/error-on-uploads/#post-3676841)
 * Status: not resolved