• Hi, I run a tech news site called AGRS Tech News, we recently left wordpress.com, so with my host I had to install wordpress (with a one click script install). About three days ago I lost the ability to upload images from computer. All I get when attempting this is the title of the windows “Add media files from your computer” and then a blank page. I can still upload plugin’s from computer but no media at all. I have been stuck using my photobucket account and editing my own HTML to format everything correctly. I have tried the other threads but everything appears to be for the 2.X.X versions. Any help would be greatly appreciated.

    ~Zephaniah Washington
    AGRS Editor-in-chief.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Also use the same version. When ‘including’ media in a post (new post) I get redirected to the media page instead of a pop up like we had in older versions. Here I can upload an image, but can’t go back to my post to insert this image.

    Also the ‘show’ option of the images does not work.

    Thread Starter AGRSadmin

    (@agrsadmin)

    Well at least you can load an image.
    Below is a box.net link, it is safe and links to an image describing what I am talking about.

    here.

    ~Zephaniah Washington
    AGRS Editor-in-chief.

    I’ve been having the same issue.
    On WordPress 3.0.1 I can upload an image without a problem, but when it comes to inserting the image into a post, I am taken to https://*mysite*.com/wp-admin/media-upload.php?type=image&tab=library&post_id=*postnum*, which is a blank screen.

    Firebug reports that “win.send_to_editor is not a function”.
    The problem appears to be a load of missing JavaScript, but I’m not 100% sure what is needed to fix this issue.

    I found a solution.
    The image upload page was supposed to be displayed in the JS ThickBox, which wasn’t happening. After a little digging, I found that this was because I had called a JavaScript file from my theme’s functions.php file using
    <?php echo '<script type="text/javascript" src="myfile.js"></script>'; ?>
    The correct way to call a JS file for a plug-in or theme is to use the wp_enqueue_script() command

    <?php
    function add_custom_js() {
    	$dir = get_option( 'siteurl' );
    	$url = $dir . '/wp-content/themes/themename/my-js.js';
    	wp_enqueue_script( 'script-name', $url );
    }
    add_action('init', 'add_custom_js');
    ?>

    This solved my problem completely.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Unable To Upload Image in 3.0.1’ is closed to new replies.