WordPress.org

Ready to get started?Download WordPress

Forums

Overwrite Uploads
Error on uploads? (6 posts)

  1. toto
    Member
    Posted 1 year ago #

    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/

  2. Ian Dunn
    Member
    Plugin Author

    Posted 12 months ago #

    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.

  3. toto
    Member
    Posted 12 months ago #

    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?

  4. Ian Dunn
    Member
    Plugin Author

    Posted 11 months ago #

    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?

  5. toto
    Member
    Posted 11 months ago #

    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?

  6. Ian Dunn
    Member
    Plugin Author

    Posted 11 months ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic