WordPress.org

Support

Support » How-To and Troubleshooting » Error saving media attacment

Error saving media attacment

  • For some reason all of a sudden I can no longer upload images. Some also in Media Library show as broken links. PHP54_error log reports this:
    PHP Fatal error: Call to undefined function add_shortcode() in C:\inetpub\wwwroot\wp-includes\media.php on line 715

    Brought up media.php and line 715 is:
    add_shortcode(‘wp_caption’, ‘img_caption_shortcode’);
    add_shortcode(‘caption’, ‘img_caption_shortcode’);

    Have searched and cannot find fix. Tried adding WP_MEMORY_LIMIT

    Any help will be greatly appreciated.

Viewing 10 replies - 1 through 10 (of 10 total)
  • esmi

    @esmi

    Forum Moderator

    Try re-uploading all files & folders – except the wp-content folder – from a fresh download of WordPress. Make sure that you delete the old copies of files & folder before uploading the new ones.

    Oh.. one thing I did not mention.. which may affect the possible fix is the fact that I used WebMatrix and am hosting an in house Intranet site with MS SQL.
    Thanks again.

    esmi

    @esmi

    Forum Moderator

    So WP running on MS SQL?

    Yes it is running on MS SQL and WebMatrix with microsoft web platform.

    esmi

    @esmi

    Forum Moderator

    Did you try the re-upload of fresh core files?

    Okay.. I have read up on how this is done. My WP file structure is a little different and since I host with my own server.. I technically don’t have to http://ftp... I can just copy over the fresh core files, correct after turning off all plugins. I use Weaver II as my theme. Last time I did a auto update to WP.. it broke. so I want to be careful. My version now is 3.4.2… so I should copy new core files 3.5.1 over? Also on VM so have done a snapshot. I just wonder why it just all of a sudden broke. I have been trying different plugins to try to use different functionality for the site. Want to use eventually as a CMS. But I need stability first and foremost. If I did something wrong.. I would like to figure out what it might have been.
    Thanks for your help

    esmi

    @esmi

    Forum Moderator

    I can just copy over the fresh core files, correct

    Not quite. You will need to run wp-admin/upgrade.php. And, of course, backup your database first. The basic details are in Upgrading_WordPress. Just ignore the references to FTP.

    I just wonder why it just all of a sudden broke.

    It looks like you might have some file corruption – judging by the error message above.

    I am upgrading on Host Server.. Do I need to stop all services before upgrading the core files? Such as IIS?
    Have done back-up.. php and mysql are version ready.

    I upgraded the files.. did not fix media error and because I am using web matrix it denied some of the files from being replaced. 🙁

    Any other ideas?

    Thanks…..

    Okay,
    Just for fun I created a clean install of wordpress. no webmatrix.. just IIS 7, MySql, PHP, and wordpress.. still have error uploading media…

    Unable to create directory wp-content/uploads/2013/03. Is its parent directory writable by the server?

    Help… I know it is permissions but where?

    Thanks,

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Error saving media attacment’ is closed to new replies.
Skip to toolbar