Forums

Image upload not working in Wordpress 2.8 (83 posts)

  1. glutenfreepost
    Member
    Posted 3 months ago #

    -Yep, they are running php5.2.something and I have checked the image upload location and they are set correctly.
    -I have tried saving the post as draft without uploading images, no change
    -I made sure the settings in admin/settings/misc were "wp-content/uploads" no change (they were already set to that.
    -Upgraded to 2.8.1 no change

    I do want to make sure I am clear about one thing. I DONT get an error. The image DOES upload into the server. It just wont display in the post/visual editor (which doesn't work either)/or HTML editor. So what I have to do is code in the typical...
    <p style="text-align: center;"><img src="http://zxzxzxzxzx.com/wordpress/wp-content/uploads/2009/08/elle0.jpg" alt="elle0" width="240" height="165" class="attachment wp-att-894 centered" /></p>
    ...every freakin time.
    So with that...does the http://zxzxzxzxzx.com/wordpress/wp-content/uploads/2009/08/elle0.jpg mean that I have these pointed wrong? Should ALL images reside in only the uploads directory, can they or can they not be organized by month/year?

  2. magius
    Member
    Posted 3 months ago #

    Same problem of glutenfreepost. Found a solution.

    Have you changed the theme? If yes, that's the problem.

    It seems wordpress now loads certain javascripts in the footer of the page as of version 2.8, instead of the header where the scripts were previously loaded. One of these javascripts is jquery.form.js which is used by the uploader. To print the scripts to the footer wordpress looks for the wp_footer(); code in your theme’s footer.php file. If this code is missing from your theme’s footer.php file, the necessary javascripts will not be appended and the uploader will consequently fail to work.

    If you do have this code in your file please make sure the footer of your theme is working by checking your source code. If you don’t see the footer portion of your theme when viewing the source code there is a functional error with your theme that needs to be fixed. The same for your header.php file. Make sure your theme includes the wp_head(); code in the header.php file as scripts used by the plugin are apppended there as well.

  3. glutenfreepost
    Member
    Posted 3 months ago #

    I dont see that code in either the footer or header. I am using Thesis but the issue happened before the switch and continues to happen if i try any other theme including the default WP theme with all plugins off. So i am still lookin for some help. I actually managed to export (size errors before) the xml. So what I would LIKE to do is install a fresh copy of WP on my server, which i did, and import the xml. My question here is, i have no idea how to do all that, checking to see if it worked, while not affecting the 'production' website. And then if it does work, how do i point http://www.glutenfreepost.com from the current directory to the new (hopefully) working directory?

    This is my footer

    <?php
    /**
    * Handles the final actions and markup of the page.
    *
    * @package Thesis
    */

    thesis_hook_after_html();

    # Added to appease certain plugins which check for this code in this file:
    # wp_footer();
    ?>

    </body>
    </html>

    And this is the header:

    <?php
    /**
    * Handle the opening HTML and actions.
    *
    * @package Thesis
    */

    # Added to appease certain plugins which check for this code in this file:
    # wp_head();
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>

    <head profile="http://gmpg.org/xfn/11">

    <title><?php thesis_output_title(); ?></title>

    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    <?php

    if (is_singular())
    wp_enqueue_script('comment-reply');

    wp_head(); ?>

    </head>

    <body<?php thesis_body_classes(); ?>>

    <?php thesis_hook_before_html(); ?>

  4. pablohart
    Member
    Posted 3 months ago #

    I was having a problem where I couldn't invoke any of the media buttons to add photo, video, audio, etc. I started turning off plugins and found out it was podpress plugin causing the problem.

  5. glutenfreepost
    Member
    Posted 3 months ago #

    Thanks pablohart. I certainly tried turning off every plugin as well as going to the default them. I am simply trying to rebuild from scratch now in a new directory. Wordpress officially kick my @$$ in this battle. I give.

  6. epascual
    Member
    Posted 3 months ago #

    hello!!! first of all, sorry my English........... well..... now i have a bug to with the image uploader, the buttons doesn't show up...... i fix this issue, just deleting the class of the correspondent div, this class is for the users who can't see JavaScript, this tool doesn't work correctly with Wordpress 2.8.2.

    What I did to fix this was in the general-templates.php file in the wp-includes folder, on the line 1672 you find this code:

    `<div id="media-buttons" class="hide-if-no-js">
    <?php do_action( 'media_buttons' ); ?>
    </div>`

    Just delete the class in the div, just like the code below......

    `<div id="media-buttons">
    <?php do_action( 'media_buttons' ); ?>
    </div>`

    of course maybe the function of hide this buttons when the user does not have the ability to see JavaScript, doesn't work any more, but this was the only simple change that works for me.

    I hope that this simple change will prove to someone else, and sorry for my English again.

  7. dizee
    Member
    Posted 3 months ago #

    I am having the following problem:

    - Click to upload image
    - Flash uploader
    - Select image(s)
    - For each image I select, a login box shows up within the "lightbox"

    I have tried all without any fix:

    - Switch to default and classic theme
    - Remove all plugins
    - PHP 5.210
    - Uploads directory already set correctly

    Does anyone have any other ideas??

  8. dizee
    Member
    Posted 3 months ago #

    Oh yah, and I just upgraded to 2.8.4 from 2.7

  9. Klutzys1
    Member
    Posted 3 months ago #

    I am having the exact same problem as glutenfree. However, I am running 2.7.1 and have been from the get go. The images used to work as I had them in my posts and they showed in the galary. I just deleted all images today to resize and reupload and now none of the images show. I am using a purchased copy of the Thesis theme. Any ideas?

    Tam

  10. justinparks
    Member
    Posted 3 months ago #

    I just came across the very same issue myself. I tried uploading an image by clicking the "Image upload" button above the WYSIWYG editor and it does absolutely nothing, all the buttons are dead.

    I tried some other things as well, the edit date of post and visibility dont work and the drop dows on the left column sidebar alwasy stop working, all of this ONLY in the post edit or creation page.

    I went to pages and can edit a page and upload images fine and create a new page and upload images os it muct be something specific to the posts.php in WP-admin thats causing the problem.

    I have turned off all plugins and reverted to the default theme with no success so I suspect its something to do with the Javascript on psots.php... though Im guessing.

    Any one able to confirm this issue with Posts and Pages?

  11. justinparks
    Member
    Posted 3 months ago #

    oh slight update. I copied all the wp-admin files from a site that works and re-uploaded them to the site with the problem. Now when I restore the default template the posts begin working again and i can add images via the image upload buttons.

    Not that this helps really, Im just more confused than before. How can I go about resolving this and getting back to the template I want...

  12. justinparks
    Member
    Posted 3 months ago #

    ok another issue. I just checked out another blog which has the Events Calender Plugin installed.

    It works fine on images and posts but when you try to add an event to the calendar the same symptoms happen. The left admin bar freezes up and none of the drop down sub menus appear and this seems to affect the calender. Information can still be added but cannot be submitted or posted to the blog on the calender.

  13. danwarne
    Member
    Posted 3 months ago #

    I had the problem of the upload photo / video etc buttons being inactive - clicking them would have no effect. The image uploader box would not appear.

    I deactivated my plugins and reactivated then in small batches, and found the culprit to be the Wordtwit plugin (which automatically posts new posts to Twitter). I have version 2.1.5 and Wordpress 2.8.4.

    The weird thing is I have Wordtwit on another blog (exact same versions of Wordtwit and Wordpress) and it works fine, so it must be clashing with another plugin installed on the blog that was having troubles.

    I notice that Wordtwit uses quite a bit of Javascript which is probably the cause of the problem. It uses:

    /wordtwit/js/fancybox1.2.1.js
    /wordtwit/js/fancybox_1.2.1.js
    /wordtwit/js/wordtwit_admin_2.1.js
    /wordtwit/js/banner.js

    However I can't find any other plugins using these particular .js files as well, so I'm a bit stumped (not really being a coder).

  14. sciencespecialist
    Member
    Posted 3 months ago #

    I can upload an image but there is no button to INSERT TO POST or ADD TO POST or anything like that. So I have this "gallery" of images but no way to use them for anything.

  15. dontbewillful
    Member
    Posted 1 month ago #

    Sankho, your hack worked like a charm. Thank you!

  16. qwake
    Member
    Posted 1 month ago #

    Users are not able to upload images, but the admin can.

    The admin has a set of four buttons next to the words Upload/Insert in Add or Edit Post.

    But users have nothing there.

    No words (Upload/Insert). No buttons.

    The Upload/Insert disappeared. The buttons for adding images disappeared.

    I've deactivated the plugins one by one and logged in each time as a User, but problem continues.

    I saw the posts for what to do with Settings, Miscellaneous is correct. I think mine are correct.

    I'm using 2.8.4

  17. taracauc
    Member
    Posted 1 month ago #

    I've had this problem for each of my wordpress installs and I have finally figured it out.

    YOU MUST ADD THE DIRECTORY TO YOUR SERVER!!!

    On your server in directory in wp-content folder create a new folder call 'uploads'

    Then login to wordpress and under the Settings -->Miscellaneous
    there is a section asking 'Store Uploads in this folder' enter wp-content/uploads (even if it says something else or is blank)

    This worked (finally!) for me

  18. psheld
    Member
    Posted 1 month ago #

    Wow, this thread has gone quiet. Everyone must have found the answer, except me!

    I have the upload/insert icons, but clicking them does nothing.

    I have no plugins to disable. My path is set correctly in miscellaneous. I have an /uploads directory on my server.

    Firefox 3.5.

    Where's everyone gone? Gimme a link to the solution :-)

    Thanks.

  19. bowoolley
    Member
    Posted 1 month ago #

    Same problem - media buttons are all inactive. The arrows to drop down the menus in the admin section don't work either. I'm running Wordpress 2.8.5, using either Safari or Firefox 3.5.3. Everything works fine on my 6 or 7 other sites running WP 2.8.5... so I'm going to try reinstalling it and will let you know if it helps.

  20. bowoolley
    Member
    Posted 1 month ago #

    Aha - just disabled all plugins and everything is back to normal. Will investigate and report...

  21. bowoolley
    Member
    Posted 1 month ago #

    Found it - in my case, it's the iTunes Affiliate Link Maker plugin that caused the problem. In addition, after adding the plugin, I get a message that it's out of date - and yet when I try to update it, I'm told it's NOT out of date. I'll put this info on the plugin comments...

  22. JohnR123
    Member
    Posted 3 weeks ago #

    Image upload function not working here also,

    I have 3 sites running 2.8.5. One is an old site that has been upgraded to 2.8.5 (has always been upgraded regularly). This one is a live site on BlueHost. The other two are brand new sites on my local apache2 server. These new sites have no plugins enabled, no content added, and they use the default theme.

    All 3 sites have the exact same problem -- I cannot insert images into posts.

    When I click on the image upload button, the uploader loads below the footer portion of the page instead of superimposing over the current screen as it should. What's worse, is it is also offset to the left so that most of it is off the screen and inaccessible to use. I try to load into a new tab in FireFox (3.5.5) and I get all the functions working except "insert in post." after hitting that, I get a blank white screen and nothing is inserted in the post.

    I have created a ticket on this, but so far it is unassigned and no response. This is a shame really. I cannot use my site due to this and cannot develop the other two on my local server until this is resolved. It's been two weeks now.

    I have tried all the usual solutions, read maybe a hundred posts on the problem, and played with permissions to no avail.

    I have installed a couple Joomla isites on my local server as a result. I can't wait for WordPress forever. I may switch. I don't want to, but what choice do I have?

    Maybe WordPress has gotten ahead of itself with the latest releases.

    Best,
    John

  23. annmh
    Member
    Posted 1 week ago #

    I'm having the same problem- asked on here and reported bug to wordpress.org people twice- haven't heard anything- Last week I was able to copy/paste but now I can't even do that. It's driving me nuts. I'm also surprised that there isn't another update to correct this problem- everyone shouldn't have to deactivate all plugins.

Reply

You must log in to post.

About this Topic