WordPress.org

Ready to get started?Download WordPress

Forums

Error saving media attacment (11 posts)

  1. galder56
    Member
    Posted 1 year ago #

    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.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    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.

  3. galder56
    Member
    Posted 1 year ago #

    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.

  4. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    So WP running on MS SQL?

  5. galder56
    Member
    Posted 1 year ago #

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

  6. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

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

  7. galder56
    Member
    Posted 1 year ago #

    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

  8. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    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.

  9. galder56
    Member
    Posted 1 year ago #

    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.

  10. galder56
    Member
    Posted 1 year ago #

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

  11. galder56
    Member
    Posted 1 year ago #

    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,

Topic Closed

This topic has been closed to new replies.

About this Topic