Image upload not working in WordPress 2.8
-
I recently upgraded to WordPress 2.8 and now I am having problems while uploading images. The images are uploading fine but when I click the save all settings button. I am getting a blank windows. See the image..
https://tinyadda.com/images/24gr3cimlf2h92ylyol4.jpg
Please Help
-
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.
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 https://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” “https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
<html xmlns=”https://www.w3.org/1999/xhtml” <?php language_attributes(); ?>><head profile=”https://gmpg.org/xfn/11″>
<title><?php thesis_output_title(); ?></title>
<meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” />
<?phpif (is_singular())
wp_enqueue_script(‘comment-reply’);wp_head(); ?>
</head>
<body<?php thesis_body_classes(); ?>>
<?php thesis_hook_before_html(); ?>
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.
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.
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.
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 correctlyDoes anyone have any other ideas??
Oh yah, and I just upgraded to 2.8.4 from 2.7
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
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?
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…
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.
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.jsHowever 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).
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.
Sankho, your hack worked like a charm. Thank you!
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
- The topic ‘Image upload not working in WordPress 2.8’ is closed to new replies.