Support » Themes and Templates » Customizr » Post Images not Working

  • ElectricFeet

    (@electricfeet)


    legitcoder and I were trying to diagnose his/her problem over on this thread, but for some reason it was closed.

    [Unnecessary comments moderated, Please review the Forum_Welcome.]

    Anyway. This thread continues that one.

    @legitcoder: the common thread with Chappie and me is Bitnami & MAMP. Are you live on the internet, or are you too using a local solution?

    @chappie Are you saying that new image uploads with Customizr on MAMP are not working?

Viewing 15 replies - 1 through 15 (of 29 total)
  • chappie

    (@chappie)


    Correct. The last time I could see a new image properly in the Media Library was just before I upgraded to v3.1.5. Also when I try to edit these images without thumbnails, I get a (false) message telling me image isn’t there. However, I can still see the thumbnails of all images I uploaded pre-3.1.6 — and all images I uploaded when I switched to the 2012/13/14 themes.

    However, even the missing image previews do show up correctly when I use the Add Media button from within the page editor.

    And this is in a Mac MAMP localhost environment running latest versions of everything with all plugins disabled.

    [Apologies if I got the other thread closed: I thought I was contributing something to a possible solution.]

    ElectricFeet

    (@electricfeet)


    [No worries, I thought you were too.]

    chappie

    (@chappie)


      Correction

    “However, I can still see the thumbnails of all images I uploaded pre-3.1.6”
    should read:
    “However, I can still see the thumbnails of all images I uploaded pre-3.1.5

    ElectricFeet

    (@electricfeet)


    I think I may have found the problem.

    On my main site, I had edited all my images so that they were relative links. The WP-inserted images were like this:
    [caption id="attachment_515" align="aligncenter" width="300"]<a href="./tripolina/"><img src="/wp-content/uploads/2013/08/etc.jpg" alt="whatever" width="300" height="300" class="size-medium wp-image-515" /></a> whatever[/caption]

    However, my Bitnami (similar to MAMP/WAMP) pages didn’t resolve this to the proper place.

    Replacing <img src="/wp-content/uploads/etc... with <img src="http://127.0.0.1:8080/wordpress/wp-content/uploads/etc... fixed them all up and all images now show.

    (The plugin Search Regex is a good way to do this, site-wide.)

    Does anyone know if there is a more robust way of indicating relative links that are site-independent? One that wouldn’t break when WP is in a subfolder of the main site address?

    chappie

    (@chappie)


    Hallelujah (if you have)! Not sure I trust myself with powerful weapons like that though so I will just switch to another theme to upload images until, hopefully, @nikeo can fix this as it worked fine in v3.0.13 and isn’t a problem in the other themes I have tested.

    Thanks again, @electricfeet – this has been driving me nuts for three weeks.

    ElectricFeet

    (@electricfeet)


    I don’t think it’s Customizr, though. The code is straight WP &mdash html inside a WP shortcode inside a page. I suspect that either it’s always been that way (and I just didn’t know it, as I was previously using brand new pages — I wasn’t using copies of my live site), or something changed in WP3.8.

    (And the fact that the behaviour is the same even in twentytwelve tells me it’s not Customizr.)

    chappie

    (@chappie)


    I have washed my mouth out with soap and water since I jumped to the unscientific conclusion that my timeline on this issue implicated Customisr 3.1.5 when it could of course be a WP 3.8 issue.

    Is this – and especially this – the same problem? I’m in the miserable position of understanding neither the question nor the answer…

    This looks related too.

    But I can’t get my head around the idea that it’s a WP issue when the five other themes I’ve tested all upload and preview images just fine. Why aren’t they affected? Could it be because they hadn’t previously been activated by me?

    ElectricFeet

    (@electricfeet)


    Full analysis here: http://wordpress.org/support/topic/image-problems-in-316 I suggest we continue there.

    Moderator Jan Dembowski

    (@jdembowski)


    Brute Squad and Volunteer Moderator


    ElectricFeet? Please stop and keep it to one topic per problem.

    I’ve closed the other topic and you can pick it up here. Do not create multiple topics like that.

    Earlier you were asked to create your own topic by another moderator. That was not your topic and I’m glad you started a new one of your own.

    But creating a new analysis and then encouraging others to go there? Don’t do that it just makes it harder for other people to assist you.

    If you create more topics about the same thing those too will be closed.

    ElectricFeet

    (@electricfeet)


    I think there’s a misunderstanding here, which is understandable, as we all have a lot to read.

    On thread 1, I was helping legitcoder solve his problem. I solve a lot of problems on the forum, you may have noticed. The thread was closed prematurely.

    On thread 2 (this thread) I continued the issue, reporting some testing, which showed one particular issue with images. Chappie and I agreed on a solution. So this thread simply continued the closed thread and is now essentially over.

    Thread 3, which I opened earlier and has now been closed, is a detailed analysis of several bugs with images, *none of which* are related to this thread. I suggested that we continue any remaining image issues there as that thread is a “superset” of this one, covering all sorts of issues.

    I see two solutions:
    1. The post is “unclosed” (I don’t know if this is possible)
    2. I repost it all here, even though this is an unrelated topic. If I have to go through this route, even though it seems illogical, may I have all the html back? It took a long time to write and markup.

    Moderator Jan Dembowski

    (@jdembowski)


    Brute Squad and Volunteer Moderator


    1. The post is “unclosed” (I don’t know if this is possible)

    ‘Fraid not. 😉 Really follow bouncing ball topics are not good.

    2. I repost it all here, even though this is an unrelated topic.

    How it is an unrelated topic…?

    This one is “Post Images not Working” and the new one is “Image problems in 3.1.6” which last I looked was Post Images? Also if it wasn’t connected why suggest it this one continue over there?

    I’ll cut you some slack and post the whole HTML in the next post in this thread. But please don’t do that again (the topics I mean).

    Moderator Jan Dembowski

    (@jdembowski)


    Brute Squad and Volunteer Moderator


    *Jan can’t believe he’s doing this but hey it’s a Friday night*

    From a now closed topic and post that ElectricFeet posted.

    OK, I’ve spent a lot of today doing an exhaustive (I hope) investigation into the image problems.

    All plugins disabled. Customizr 3.1.6. WordPress 3.8. Bitnami local installation.

    Twentytwelve loaded:

    • Select Media > Add new > add an image
    • The image uploads and creates:
      • 150×150
      • 300×300
      • 624×624
      • Original – 1024×1024
    • Media > Library: looks fine
    • Edit page > Set as featured image: Works fine;
    • Media > Library > Delete permanently: Deletes all sizes

    Customizr activated; no retina support:

    • Select Media > Add new > add an image
    • The image uploads and creates:
      • 150×150
      • 270×250
      • 300×300
      • 1024×500
      • Original – 1024×1024
    • Media > Library: Shows 1 pixel image BUG
    • Edit page > Set as featured image: Image displays when media library shows, but featured image shows as 1px image; Customizr front page shows 1px image BUG
    • Media > Library > Delete permanently: Deletes ONLY original. All other sizes are not deleted BUG I have to manually delete them all.
    • Once featured image is deleted, Customizr front page picks up 5th (???) image on page, not the first image BUG (could be due to my bootstrap scaffolding?)

    Customizr activated; with retina support:

    • Select Media > Add new > add an image
    • The image uploads and creates:
      • 150×150
      • 150×150@2x (really 300×300)
      • 270×250
      • 270×250@2x (really 540×500)
      • 300×300
      • 300×300@2x (really 600×600)
      • 1024×500
      • 1024×500@2x (really 1024×500) TINY BUG (already reported on the Customizr forum)
      • Original – 1024×1024
    • Media > Library: Shows correctly (so retina support fixes the bug above)
    • Edit page > Set as featured image: Works fine (so retina support fixes the corresponding bug above).
    • Media > Library > Delete permanently: Deletes all image sizes (so retina support fixes the corresponding bug above)
    • Once featured image is deleted, Customizr front page picks up 5th (???) image on page, not first BUG (again, bootstrap scaffolding?)

    Switching themes 1: twentytwelve to Customizr

    Twentytwelve activated:

    • Select Media > Add new > add an image
    • The image uploads and creates:
      • 150×150
      • 300×300
      • 624×624
      • Original – 1024×1024
    • Media > Library: Looks fine
    • Edit page > Set as featured image: Works fine;

    THEN: …Switch to Customizr

    • Images are now incorrect sizes, of course (I guess there’s no way for Customizr to know this, but it means that a plugin for regenerating images really is necessary if you switch themes a lot)
    • Media > Library > Delete permanently: Customizr doesn’t delete the 624×624 image. I consider this a BUG too. Not knowing what’s happening under the covers, I suppose it’s actually a bug in WordPress, not Customizr, but I’m not sure.

    Switching themes 2: Customizr to twentytwelve

    Customizr activated; with retina support:

    • Select Media > Add new > add an image
    • The image uploads and creates:
      • 150×150
      • 150×150@2x
      • 270×250
      • 270×250@2x
      • 300×300
      • 300×300@2x
      • 1024×500
      • 1024×500@2x
      • Original – 1024×1024
    • Media > Library: looks fine
    • Edit page > Set as featured image: works fine;

    THEN: …Switch to twentytwelve

    • Images are now incorrect sizes for twentytwelve, of course
    • Media > Library > Delete permanently: twentytwelve doesn’t delete the following images:
      • 150×150@2x
      • 270×250
      • 270×250@2x
      • 300×300@2x
      • 1024×500
      • 1024×500@2x

    Again, I consider this to be probably a bug in WordPress, not twentytwelve. The delet functionality in WordPress should delete all sizes of an image, not just the theme currently loaded.

    Switching themes 3: Customizr to twentytwelve

    Customizr activated; without retina support:

    • Add an image etc and get all the bugs above

    THEN: …Switch to twentytwelve

    • Media > Library > Delete permanently: twentytwelve doesn’t delete anything apart from the original BUG

    Again, I consider this to be probably a bug in WordPress, not twentytwelve. The delet functionality in WordPress should delete all sizes of an image, not just the theme currently loaded.

    Conclusions

    1. If you’re switching themes a lot (a) make sure you manually clear up after you’ve deleted images and (b) try an image regenerator when you switch back (@nikeo uses http://wordpress.org/plugins/regenerate-thumbnails/)
    2. There are a few bugs in Customizr 3.1.6 images (which I’m sure @nikeo will fix), but most of them are fixed if you select retina support (in Customiz’it > Images).
    3. I need confirmation (from someone who knows how the media library works under the covers) that the deletion bug above is a WordPress bug, not 2 bugs in both Customizr and twentytwleve.

    Hope this helps a few bleeding-edge users fix their image problems and helps @nikeo fix them permanently.

    Moderator Jan Dembowski

    (@jdembowski)


    Brute Squad and Volunteer Moderator


    Also keep in mind that the forums are well a forum. This whole conversation seems like it might be better suited on a WordPress blog post somewhere.

    ElectricFeet

    (@electricfeet)


    Thanks Jan, much appreciated. Thank you for the slack 🙂

    (FWIW, posts 1 and 3 (both closed) are related, but this thread is not related to them. Yes, they’re all about images in Cyustomizr, but that’s a wide subject.)

    Ok So do we have a solution? I tried to regenerate thumbnails and all failed with unknown reason. File Permissions are correct. Also everyone keeps saying turn retina off and on and i dont have that option at all in customize options for customizr. Also @electricfeet I am a him…..lol

Viewing 15 replies - 1 through 15 (of 29 total)
  • The topic ‘Post Images not Working’ is closed to new replies.