CloudFlare error 522 on new image uploaded

I created a new entry on my blog, here, but the image does not show.

When I check the code, the URL to the original image works just fine (original image), but the resized image at 487x1024 does not work (resized image) and throws an Error 522 on CloudFlare.

Going to the listing of projects, (here), a thumbnail for the image at 240x240 shows perfectly (image of 240x240).

So, original shows, 487x1024 does not, but 240x240 does.

Here is what I have tried so far, according to several suggestions I found in the network:
1. I have already paused CloudFlare, but the image still does not show.
2. According to CloudFlare, is a request error on hosting provider. However, all else is working and only the new image is not being displayed.
3. There might be a resources exhausion. Checked the logs, nothing in there. Nevertheless, I raised the limits at the php.ini for the next variables: memory_limit=96M, post_max_size=20M, upload_max_filesize=20M. Still, problem persists.
4. There might be a problem with the image handler. So I added the code found here and used Regenerate Thumbnails. Not worked either.
5. Downloaded the file by FTP and checked it displayed correctly, so image is not corrupted and URL is correct.
6. Disabled caching plugin to test recent changes on theme and functions. Not worked either.

So, I am running out of ideas as to why is that image not displaying correctly.

Any help is greatly appreciated :smiley:.

*EDIT* I have uploaded a new version of the image in jpg format and repaced it in my post. However, the before image is still there. I wonder if the only solution is to upload the image again (shall I have this problem with previpus image, is gonna be bad).

  • aristath
    • Recruit

    Hello again @Carlos Ramos, I hope you're well today!

    I'm afraid that sometimes the only way to get over problems like the one you're having is to re-upload the images.

    shall I have this problem with previpus image, is gonna be bad

    There's no way for us to know... Usually this is an isolated incident and you shouldn't have to do it for all your images, but there's no way for us to know for sure... it depends on your server and its configuration!

    Cheers,
    Ari.

  • amused
    • friend of Bill. W.

    i have always had problems with replacing images in WP.
    as u described, previous image still shows.
    only thing that helps is to upload same image with a different name that was never used.
    re add it in pages "add media"

    what cloud flare plan are you on ?
    do u have page rules for that page ?
    take it off to trouble shoot or take off for entire site just to troubleshoot.

    just my 2 cents,
    hope u get the answer.

    kind regards,

    RC

  • Carlos Ramos
    • Design Lord, Child of Thor

    @Randall,

    only thing that helps is to upload same image with a different name that was never used.

    Yup, I am finding out that I need to change the name of the file prior to re-uploading.

    what cloud flare plan are you on?

    Free plan.

    do u have page rules for that page ?

    Rules? Like .htaccess rules? I am not sure as to what do you refer, but I think I have not setup any specific rules.

    just my 2 cents,
    hope u get the answer.

    Yeah, its fixed now. Change name and upload again. It gets the job done.

    Is wonderful to be part of the WPMU DEV community :smiley:.

    Regards,
    Carlos.

  • amused
    • friend of Bill. W.

    how cool !!!
    glad i could help.

    sorry if i confused you about the "page rules"

    basically,
    cloudflare has a nice feature where u can "fine grain" so to speak, your settings,
    for each website page, allowing caching etc, different rules for different pages.

    the free plan allows 3 pages to allow different settings basically.
    https://www.cloudflare.com/plans

    YES wpmudev forums are by far the best !!!

    cheers !!!

    RC.

  • Carlos Ramos
    • Design Lord, Child of Thor

    @Randall,

    I was not aware of other functions of CloudFlare. To tell the truth, I only added my domain and expected all work like magic. I am not even sure if performance is better since I have never compared the performance with or without CloudFlare, and have not even seen the configuration options at all.

    I will take a look into that as well.

    Regards,
    Carlos.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.