• Resolved indjev

    (@indjev)


    Sorry if there is a solution, but I try everything that I found here.
    When I try to uplad file i got “HTTP error”. When I refresh the media list – my file is there, so the upload was succesful.

    But when I try to insert it – it just didn’t show! I see the HTML code is inserted, but the image is not there. For example:

    https://nailcentric.net/?p=19

    Please help

Viewing 15 replies - 1 through 15 (of 17 total)
  • Moderator cubecolour

    (@numeeja)

    If you view source of the page and look at the markup for one of the images, you will see this”

    <img class="alignnone size-medium wp-image-13" alt="NBUPerror" src="https://nailcentric.net/wp-content/uploads/2013/11/NBUPerror.jpg" width="1" height="1" />

    It looks like the images are there, but they are being displayed at dimensions of 1px × 1px, if you take out this bit from image tags in the post in the text editor width="1" height="1" do the images display at full size?

    Thread Starter indjev

    (@indjev)

    Good point. Now the image is there, but is not good practise to put manually the size every time. Something wrong happen when uppload it and the size info is missing from the media library, so please advice ??

    Moderator cubecolour

    (@numeeja)

    When you go to settings -> media in admin, what values do you have set for the dimensions of thumbnail, medium & large sizes?

    Thread Starter indjev

    (@indjev)

    150*150
    300*300
    1024*1024

    Additionaly when I use browser uploader I got error 500, and the Internet ?? says that I am with PHP4, but fast phpinfo tell me that I am with PHP5. Maybe something specific happen to my server settings, but no idea what

    Moderator cubecolour

    (@numeeja)

    OK, can we see whether the might be a plugin conflict? If you deactivate all of your plugins and try to add & insert an image, do you get the same result?

    What do you mean when you say that the internet says you are with PHP4? Where do you see that information?

    Thread Starter indjev

    (@indjev)

    This is clean installation of WP – nothing added as plugins, themes, etc. When I search “error 500” about browser uploader I got posts that tell me my php version is 4, but it is not true.

    Thread Starter indjev

    (@indjev)

    I just tried another library and there I got HTTP Error. 500 again. So my error is 500 and I need to fix it.

    Moderator cubecolour

    (@numeeja)

    Can you find an very small image – no larger than 100px × 100px and try to add that to a page/post .

    Also can you add the following line to your wp-config.php file & then try adding another image

    define('WP_MEMORY_LIMIT', '64M');
    Moderator cubecolour

    (@numeeja)

    500 is a generic server error which tells us something has gone wrong on the server, but is not specific about what has gone wrong

    Thread Starter indjev

    (@indjev)

    The small image works fine, so is deffinetely about some size limit, but this line that you gave me, didn’t help.

    Moderator cubecolour

    (@numeeja)

    Ok that indicates that this is likely to be due to how the server is set up. Contact your hosting company’s support team and give them as much info as you can about this error, including that it only seems to occur with larger images.

    Thread Starter indjev

    (@indjev)

    Hello. I just contact them, but I am not sure do they know the way WP works about upload.

    Moderator cubecolour

    (@numeeja)

    If you are not confident about the competence of your hosting company, it may be a good time to start looking for another one.

    Thread Starter indjev

    (@indjev)

    They add
    MaxRequestLen 33554432

    in /etc/apache2/mods-available/fcgid.conf:
    and now works fine!
    Thank you

    Thread Starter indjev

    (@indjev)

    Another issue. Maybe not related. Max size of thumbnail is 320 pixel no relation what I put in my settings. I change it to 600*600, but my thumbnails are still 320 pixels (i upload them after settings change)

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Error when upload images, can't insert image after that’ is closed to new replies.