Support » Plugin: Overwrite Uploads » Error on uploads?

  • Hi all I follow the instructions to add new filter but on upload i get this error?

    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)”.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Ian Dunn


    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.

    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


    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?

    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


    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.