-
AuthorPosts
-
November 28, 2014 at 4:23 am #154366
Hi everyone,
when i try to uplaod images i get an error message, which says “http-Error”. It seems to me that this error occurs at the end of the uploading process. No Further details are shown. I spent some time to check everything:
– file permissions – ok (755) (uploaded images can be found in the upload folder yet)
– php settings – ok (i think so, because i tried server settings in local xampp installation and that worked)
– and also tried to get some more information by turning WP_DEBUG on, with no success (debug.log ist empty, no further messages are shown)After that i disabled X and the X Shortcodes Plugin (which is of course not the solution) and now it works.
Thank you in advance for your help.
AndreWordpress Version 4.01
PHP Version 5.6.0
X Version: 2.6
X Shortcode Version (2.5)November 28, 2014 at 4:32 am #154370This reply has been marked as private.November 28, 2014 at 6:06 pm #154810Hi Andre,
Thanks for posting in.
I just tried and uploaded a sample image and it works with no problem.
Could you post a screenshot and instruction how could I replicate it?
Thanks!
December 2, 2014 at 5:08 am #156433Hi,
thank you for your support. I forgot to say that the upload works with really small images. I tried uploading an image with a size of 700kb. Could be so nice an try a larger one?
I get this error when I do it:
Andre
December 2, 2014 at 7:16 am #156499Hi Andre,
You can try increasing your file upload size.
http://www.wpbeginner.com/wp-tutorials/how-to-increase-the-maximum-file-upload-size-in-wordpress/
Hope that helps. đŸ™‚
December 2, 2014 at 8:26 am #156570Hi,
i already did, as i wrote in my first post. PHP settings are currently set to
upload_max_filesize = 128M
memory_limit = 128M
max_execution_time = 300
post_max_size = 128MWhen disable the x theme und the x shortcodes plugin, the error does not occur anymore. So i think settings or file permissions cannot be the reason for my problem.
regards
AndréDecember 2, 2014 at 8:42 am #156583Hi There,
Can you please try adding this code in your Child Theme functions.php
add_filter( 'wp_image_editors', 'change_graphic_lib' ); function change_graphic_lib($array) { return array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' ); }
If that doesn’t work, please provide FTP access and provide full admin capability of the user you have provided for us to check on your issue,
Thanks
December 2, 2014 at 11:39 am #156719This reply has been marked as private.December 2, 2014 at 11:43 am #156724This reply has been marked as private.December 2, 2014 at 11:45 am #156726This reply has been marked as private.December 2, 2014 at 1:27 pm #156814Hi There,
I’ve uploaded an image with 1.11MB file size and I don’t get any HTTP error.
You can see it on media gallery
December 2, 2014 at 2:16 pm #156849Hi,
so it depends on the image?
– I downloaded your image and uploaded it. Everything fine
– But if you try to download http://www.hiphop-academy.abcde.biz/wp-content/uploads/Zuschauer-1.jpg and upload it to the media again it is not working.Regards
December 2, 2014 at 2:50 pm #156886Hi There,
I just tested your image and also got an HTTP error, I see this on the console log
Failed to load resource: the server responded with a status of 500 (Internal Server Error) http://www.hiphop-academy.abcde.biz/wp-admin/async-upload.php
I’ve encountered this problem many times before and its mostly related with ImageMagick, but forcing the image editor to use GD Library still won’t work,
This seems to only occur when the image resolution is too large as your image is 5028×3301 while the image I’ve uploaded is only 1600×900, and I’m not also sure why you need that very large image. The easiest fix for this is to reduce your image resolution,
But if you want to dig in and find the reason of this problem, then these are my suggestion
1. Please confirm your server has active GD Library.
2. Update your X theme and X shortcode to the latest version.
3. Try disabling X generated images, you can add this code below in your child theme functions.phpif ( ! function_exists( 'x_setup_theme' ) ) : function x_setup_theme() { // // Localization. // // Translations can be added to the /framework/lang/ directory. // load_theme_textdomain( '__x__', X_TEMPLATE_PATH . '/framework/lang' ); // // Automatic feed links. // // Adds RSS feed links to <head> for posts and comments. // add_theme_support( 'automatic-feed-links' ); // // Post formats. // // Adds support for a variety of post formats. // add_theme_support( 'post-formats', array( 'link', 'gallery', 'quote', 'image', 'video', 'audio' ) ); // // WordPress menus. // // This theme uses wp_nav_menu() in two locations. // register_nav_menus( array( 'primary' => __( 'Primary Menu', '__x__' ), 'footer' => __( 'Footer Menu', '__x__' ) ) ); // // Featured images. // // Theme support for featured images and thumbnail sizes. // add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 100, 9999 ); #add_image_size( 'entry-integrity', x_integrity_post_thumbnail_width(), 9999, false ); #add_image_size( 'entry-integrity-cropped', x_integrity_post_thumbnail_width(), x_post_thumbnail_height( 'integrity' ), true ); #add_image_size( 'entry-integrity-fullwidth', x_integrity_post_thumbnail_width_full(), 9999, false ); #add_image_size( 'entry-integrity-cropped-fullwidth', x_integrity_post_thumbnail_width_full(), x_post_thumbnail_height_full( 'integrity' ), true ); #add_image_size( 'entry-renew', x_renew_post_thumbnail_width(), 9999, false ); #add_image_size( 'entry-renew-cropped', x_renew_post_thumbnail_width(), x_post_thumbnail_height( 'renew' ), true ); #add_image_size( 'entry-renew-fullwidth', x_renew_post_thumbnail_width_full(), 9999, false ); #add_image_size( 'entry-renew-cropped-fullwidth', x_renew_post_thumbnail_width_full(), x_post_thumbnail_height_full( 'renew' ), true ); #add_image_size( 'entry-icon', x_icon_post_thumbnail_width(), 9999, false ); #add_image_size( 'entry-icon-cropped', x_icon_post_thumbnail_width(), x_post_thumbnail_height( 'icon' ), true ); #add_image_size( 'entry-icon-fullwidth', x_icon_post_thumbnail_width_full(), 9999, false ); #add_image_size( 'entry-icon-cropped-fullwidth', x_icon_post_thumbnail_width_full(), x_post_thumbnail_height_full( 'icon' ), true ); #add_image_size( 'entry-ethos', x_ethos_post_thumbnail_width(), 9999, false ); #add_image_size( 'entry-ethos-cropped', x_ethos_post_thumbnail_width(), x_post_thumbnail_height( 'ethos' ), true ); #add_image_size( 'entry-ethos-fullwidth', x_ethos_post_thumbnail_width_full(), 9999, false ); #add_image_size( 'entry-ethos-cropped-fullwidth', x_ethos_post_thumbnail_width_full(), x_post_thumbnail_height_full( 'ethos' ), true ); // // WooCommerce. // // Theme support for the WooCommerce plugin. // add_theme_support( 'woocommerce' ); // // Allow shortcodes in widgets. // add_filter( 'widget_text', 'do_shortcode' ); // // Remove unnecessary stuff. // // 1. Version number (for security). // 2. Really simple discovery. // 3. Windows live writer. // 4. Post relational links. // remove_action( 'wp_head', 'wp_generator' ); // 1 remove_action( 'wp_head', 'rsd_link' ); // 2 remove_action( 'wp_head', 'wlwmanifest_link' ); // 3 remove_action( 'wp_head', 'start_post_rel_link' ); // 4 remove_action( 'wp_head', 'index_rel_link' ); // 4 remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head' ); // 4 } add_action( 'after_setup_theme', 'x_setup_theme' ); endif;
4. Look for the PHP error log in your hosting, if you can’t find it, you can ask your hosting provider on where is the location of error log, this is the best way to determine the problem as it will tell you the actual problem that produces 500 Internal Server Error.
I hope this helps.
Cheers
December 2, 2014 at 3:01 pm #156912Hi,
thank you very much for your help. I dont need the image in that large resolution, so i will just reduce its size.
Great support, thank you
December 2, 2014 at 4:32 pm #156992Glad to hear that.
Cheers
-
AuthorPosts