• I just upgraded a few of my WP sites and now can’t add images this is on most of my WP blogs.
    Is anyone else having this problem?
    in firebug it says that the wordpress console was having trouble with jQuery saying it was undefined this is on the dashboard page
    any help is welcome as i am not an experienced coder!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Try:
    – switching to the Twenty Ten theme by renaming your current theme’s folder in wp-content/themes using FTP or whatever file management application your host provides.

    resetting the plugins folder by FTP or phpMyAdmin.

    – re-uploading all files & folders – except the wp-content folder – from a fresh download of WordPress.

    – re-running the upgrade manually using wp-admin/upgrade.php.

    Thread Starter Drkenny

    (@drkenny)

    thanks for the advice i followed the steps you suggested but this did not fix the issue. I changed the theme back to Twentyten and the insert / upload icon work fine so it looks like the theme is not compatible with the 3.1.2 update.

    I found a comment on a WP troubleshooting site which I think is a key to sorting the problem it states as follows:

    ”Today while setting up a wordpress site I ran into an issue with the insert / upload icon not opening in the light window and was having trouble uploading images. After a few hours of trawling the web for an answer getting lost in support docs I noticed in firebug that the wordpress console was having trouble with jQuery saying it was undefined. To fix the problem I downloaded the latest JQuery overrode the version bundled with wordpress, cleared the cache and refreshed and I was back in business. So the moral of the story is if you are having trouble with the wordpress console not behaving correctly update the jQuery file”.

    QU. 1 Where do I get the latest jQuery file from and what would the file be called as I find many jQuiry files?

    Qu. 2 how do I locate the version in the WP bundle so I can update it?

    Qu. 3 any other suggestions if you have had a similar problem?

    Try re-uploading the wp-includes folder from a fresh download of WordPress 3.1.2

    Thread Starter Drkenny

    (@drkenny)

    I did this and still it does not work i followed all your suggested steps
    This problem is the theme and i need to update the code in php
    I think the change needs to be in this code: any suggestions. I contacted the theme creator but have not got a reply does anyone know how to manually fix this?

    Visual

    <div id="media-buttons" class="hide-if-no-js">
    Upload/Insert <a href='media-upload.php?post_id=156&type=image&TB_iframe=1' title='Add an Image'><img src='https://dovetail-music.co.uk/wp-admin/images/media-button-image.gif?ver=20100531' alt='Add an Image' onclick='return false;' /></a><a href='media-upload.php?post_id=156&type=video&TB_iframe=1' title='Add Video'><img src='https://dovetail-music.co.uk/wp-admin/images/media-button-video.gif?ver=20100531' alt='Add Video' onclick='return false;' /></a><a href='media-upload.php?post_id=156&type=audio&TB_iframe=1' title='Add Audio'><img src='https://dovetail-music.co.uk/wp-admin/images/media-button-music.gif?ver=20100531' alt='Add Audio' onclick='return false;' /></a><a href='media-upload.php?post_id=156&TB_iframe=1' title='Add Media'><img src='https://dovetail-music.co.uk/wp-admin/images/media-button-other.gif?ver=20100531' alt='Add Media' onclick='return false;' /></a>		</div>

    Hi DrKenny,

    You post has been VERY helpful for me as it highlighted the issue was with jQuery.

    For me one of my plugins was loading jQuery on the page as well, but it was an older version. So the WP bundled jQuery is fine, it was a plugin that was the problem.

    So if you have not fixed the problem for yourself try the following (might be long winded way but it works) to find out the plugin causing a problem:
    1. Go to the “Edit Post” page
    2. Right Mouse click and ‘View Source’ (depends on browser what this is called).
    3. Perform a Find for jquery. You are looking for jQuery on its own or jquery.js.
    4. Look at the full paths. The WP bundled one for me is “https://www.justdoproperty.co.uk/wp-admin/load-scripts.php?c=0&load=jquery,utils,editor&ver=151e6df801b09d30f43e1a8f2114dea7&#8221;

    The plugin I had issues with was “https://www.justdoproperty.co.uk/wp-content/plugins/wpdir/js/jquery.js?ver=3.1.2′&#8221;

    5. In Firefox (latest version at least) you can click on hyperlink and it brings up the jQuery file and tells you the version. My Plugin was 1.3.2. The WP Bundled one is 1.4.4.

    6. Once you have identified the plugin(s) either:
    a) update the plugin if a new version available.
    b) Copy the jquery.js file from “/wp-includes/js/jquery” to the location identified in the plugin hyperlink.

    Hope that makes sense and can help you. Thanks for searching the internet for me ??

    Alec

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘issue with the insert / upload icon in wordpress 3.1.2 upgrade’ is closed to new replies.