HTTP Error when uploading images

edited April 2019 in Files & images
Getting an HTTP error when uploading images. 
If I activate the Twenty Nineteen theme, I do not get an error when uploading images. When I reactivate BeTheme Child, the error comes back.

When I refresh the Media Library page, it shows a placeholder instead of the image:

But the image does upload - the URL to view the image is valid: https://www.maxiwalkeruniform.com/wp-content/uploads/2019/04/CarrigeMotors-1.jpg 

But the image doesn't show up on the webpage where it's set as the featured image. 

This is happening on both of my websites. Both have up-to-date themes, plugins, and WP versions. 

Comments

  • If I upload an image that is 1,000 px or less tall OR 1180 px or less wide, it works. When my image height or width exceeds one of these, that is when I get the error.
  • edited April 2019
    Hi,
    A two weeks ago, we released the update for the Child Theme.
    Now, if you will make some changes in your child theme, you don't have to
    provide the informations in functions.php which files you changed - now,
    it's automatically apply these changes.
    To make your Child Theme work again, you have to find and replace the 'mfn_opts_show()' to 'echo mfn_opts_get()' in files which were modified.
    After that, everything should be working fine, we had to make that change because of the new envato rules, more about it here: https://help.author.envato.com/hc/en-us/articles/360000481243#h_674316188621522302914837
    Thanks
  • edited April 2019
    "To make your Child Theme work again, you have to find and replace the 'mfn_opts_show()' to 'echo mfn_opts_get()' in your modified files."

    I do not know where to find the mfn_opts_show(), in order to replace it. What do you mean by "modified files"?
  • If somebody made some changes in your theme files, you should find these files and replace(remove old, paste new) that code I described above.
    If you don't know how to do it, you should contact your web developer.

    Also, you can use the Parent Theme, but all of your changes in theme files will not work any longer.
    You don't have to use the Child Theme when you didn't make any customizations.

    Remember, changing the settings in BeTheme > Theme Options is not a theme files customization.
    Greetings
  • edited April 2019
    No one has made any changes in my theme files.

    And if I activate the parent theme, I still see the error.
  • This is the entire code of of BeTheme Child functions.php:

    <?php

    /* ---------------------------------------------------------------------------
     * Child Theme URI | DO NOT CHANGE
     * --------------------------------------------------------------------------- */
    define( 'CHILD_THEME_URI', get_stylesheet_directory_uri() );


    /* ---------------------------------------------------------------------------
     * Define | YOU CAN CHANGE THESE
     * --------------------------------------------------------------------------- */

    // White Label --------------------------------------------
    define( 'WHITE_LABEL', false );

    // Static CSS is placed in Child Theme directory ----------
    define( 'STATIC_IN_CHILD', false );


    /* ---------------------------------------------------------------------------
     * Enqueue Style
     * --------------------------------------------------------------------------- */
    add_action( 'wp_enqueue_scripts', 'mfnch_enqueue_styles', 101 );
    function mfnch_enqueue_styles() {

    // Enqueue the parent stylesheet
    // wp_enqueue_style( 'parent-style', get_template_directory_uri() .'/style.css' ); //we don't need this if it's empty

    // Enqueue the parent rtl stylesheet
    if ( is_rtl() ) {
    wp_enqueue_style( 'mfn-rtl', get_template_directory_uri() . '/rtl.css' );
    }

    // Enqueue the child stylesheet
    wp_dequeue_style( 'style' );
    wp_enqueue_style( 'style', get_stylesheet_directory_uri() .'/style.css' );

    }


    /* ---------------------------------------------------------------------------
     * Load Textdomain
     * --------------------------------------------------------------------------- */
    add_action( 'after_setup_theme', 'mfnch_textdomain' );
    function mfnch_textdomain() {
        load_child_theme_textdomain( 'betheme',  get_stylesheet_directory() . '/languages' );
        load_child_theme_textdomain( 'mfn-opts', get_stylesheet_directory() . '/languages' );
    }

  • Hey,

    Please send us WordPress dashboard access privately thru the contact form which is on the right side at http://themeforest.net/user/muffingroup#contact and we will check what might be the reason.

    Notice!
    Please attach a link to this forum discussion.


    Thanks
  • I sent a message with the link to this forum post. I do not know what email to put in when adding you as a user to my WP Dashboard. Thanks.
  • Hi, what is my next step please? Thank you.
  • You didn't send us required informations.
    We need the login and password to these websites, you didn't include it.

    Send all required infomations once more, including the login and password
    Thanks
  • I have not received any update on this issue. I am still seeing the error. 
  • I fixed this myself with some additional research.

    I installed a plugin that forces GD as the default WP_Image_Editor class. 

    In case anyone else is having this issue, more information at https://www.questioncage.com/http-image-error-wordpress/#Fix_2_Through_Plugin

    The plugin is available for download in a zip format at https://github.com/getsource/default-to-gd
Sign In or Register to comment.