WordPress.org

Ready to get started?Download WordPress

Forums

Customizr
Post Images not Working (30 posts)

  1. ElectricFeet
    Member
    Posted 1 year ago #

    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?

  2. chappie
    Member
    Posted 1 year ago #

    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.]

  3. ElectricFeet
    Member
    Posted 1 year ago #

    [No worries, I thought you were too.]

  4. chappie
    Member
    Posted 1 year ago #

      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"

  5. ElectricFeet
    Member
    Posted 1 year ago #

    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?

  6. chappie
    Member
    Posted 1 year ago #

    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.

  7. ElectricFeet
    Member
    Posted 1 year ago #

    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.)

  8. chappie
    Member
    Posted 1 year ago #

    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?

  9. ElectricFeet
    Member
    Posted 1 year ago #

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

  10. 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.

  11. ElectricFeet
    Member
    Posted 1 year ago #

    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.

  12. 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).

  13. *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:
      • 150x150
      • 300x300
      • 624x624
      • Original - 1024x1024
    • 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:
      • 150x150
      • 270x250
      • 300x300
      • 1024x500
      • Original - 1024x1024
    • 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:
      • 150x150
      • 150x150@2x (really 300x300)
      • 270x250
      • 270x250@2x (really 540x500)
      • 300x300
      • 300x300@2x (really 600x600)
      • 1024x500
      • 1024x500@2x (really 1024x500) TINY BUG (already reported on the Customizr forum)
      • Original - 1024x1024
    • 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:
      • 150x150
      • 300x300
      • 624x624
      • Original - 1024x1024
    • 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 624x624 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:
      • 150x150
      • 150x150@2x
      • 270x250
      • 270x250@2x
      • 300x300
      • 300x300@2x
      • 1024x500
      • 1024x500@2x
      • Original - 1024x1024
    • 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:
      • 150x150@2x
      • 270x250
      • 270x250@2x
      • 300x300@2x
      • 1024x500
      • 1024x500@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.

  14. 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.

  15. ElectricFeet
    Member
    Posted 1 year ago #

    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.)

  16. legitcoder
    Member
    Posted 1 year ago #

    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

  17. chappie
    Member
    Posted 1 year ago #

    Try updating to Customizr 3.1.6 in order to get the Retina option under Images menu.

    Or try a different plugin such as Force Regenerate Thumbnails.

    If you are still getting nowhere, try replacing your child theme with a new one.

    Or...you can always manually change those pesky 1px x 1px dimensions in the text editor to the correct dimensions and your image will display OK.

  18. ElectricFeet
    Member
    Posted 1 year ago #

    Hi chappie. Did Force Regenerate Thumbnails solve the problem for you?

    What do you mean by changing them in a text editor? Where?

  19. chappie
    Member
    Posted 1 year ago #

    Hi ElectricFeet - I haven't tried it yet (nor RT) as I have been sidetracked by other development pressures. But I will get around to it and report back.

    Some (maybe a lot) of the reported broken images are wrongly assigned 1 x 1px dimensions in the text editor once they have been placed on a page (and they display at 1 x 1px in the visual editor too - and also when previewed in a browser. Changing the dimensions manually in the text editor to those of the uploaded image will fix the display. At least, this works in Customizr 3.1.6 with the Retina option checked on images which have been previously uploaded with broken previews/thumbnails.)

  20. legitcoder
    Member
    Posted 1 year ago #

    I keep saying I have 3.1.6 and I have not retina option. I will reload theme again. I guess

  21. legitcoder
    Member
    Posted 1 year ago #

    Also Force regenerate does not work either.

  22. ElectricFeet
    Member
    Posted 1 year ago #

    Hi chappie, what do you mean "in the text editor"? You mean in the html of the pages/posts?

  23. chappie
    Member
    Posted 1 year ago #

    @ElectricFeet, I do. Is my terminology wrong? Visual Editor and Text Editor being the two tabs offered in the Page Editor...

  24. ElectricFeet
    Member
    Posted 1 year ago #

    Ah, OK. gotcha. I never noticed the lack of dimensions in the editor when I had the problem. This doesn't fix the featured image, however, for which there is no editor option.

    Legitcoder: Two possibilities here to explore:
    1. Customizr 3.1.6 has retina support. Turning it on fixed my problem. If the option is not showing then:

    • A plugin is screwing it up — deactivating them all should tell us if it's this
    • The child theme is screwing it up — running only the parent should tell us if it's this
    • An edit to Customizr core is screwing it up — a reinstall of Customizr through the dashboard should tell us if it's this
    • Customizr core is somehow corrupted — a reinstall of Customizr through the dashboard should tell us if it's this
    • Checking all of the above together is the ideal gold standard

    2. Something may be wrong with the images or the image sizes.

    Regenerate thumbnails and Force regenerate thumbnails didn't work for you. It may be, however, that there are still some stray versions of the image around. Could you — with a pristine Customizr (see gold standard) above and with retina support switched on — try the following:

    1. Switch on retina support.
    2. Via FTP, note the location of an image you can temporarily delete for testing
    3. Delete the image in the media library
    4. Use FTP to go to the image location and delete all other sizes of the file — there may be a few still hanging around
    5. Reupload the image
  25. legitcoder
    Member
    Posted 1 year ago #

    Ok I wiped the themes folder and re uploaded 3.1.6. I tested it locally and then uploaded to host server and everything seems to be working fine. I am still going to test it but I guess you can say I have no idea what had happened..... lol ....... I will keep you informed. Thx

  26. ElectricFeet
    Member
    Posted 1 year ago #

    Yo! finally! :-)

  27. Sergey Biryukov
    WordPress Dev
    Posted 11 months ago #

    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.

    It is: https://core.trac.wordpress.org/ticket/24518.

  28. ElectricFeet
    Member
    Posted 11 months ago #

    I just reproduced the problem by:
    - Activating the Oxygen theme
    - Uploading 2 images
    - Activating the Confit theme
    - Deleting the images

    Several images remain (specifically in my case 110x70, 470x260, 650x380, 470x140).

    So that's a third theme to add to your list. The odds are very small at this point.

    I then switched to Tonic and did the same thing. Tonic creates images at 150xH, 300xH. Switching theme again, these are happily deleted by Twentythirteen, because Confit and Twentythirteen create images at the same sizes.

    I tried several other themes (Vantage, Confit, Sixteen) and found that in most cases some images are not deleted.

    tl;dr: In the sequence BeforeTheme > UploadImage > AfterTheme > DeleteImage, if the BeforeTheme and AfterTheme create images at the same sizes, then they will delete cleanly. If the BeforeTheme and AfterTheme create images at different sizes, then the deletion is only partial.

    So it's not a theme issue at all (and I'm presuming that the "Delete Permanently" function is WordPress function). I agree with the bug report: WP should delete all sizes, no matter what theme is loaded.

    Note that I'm not "someone who knows how the media library works under the covers", but I'm good at problem determination ... and in fact you don't need to know how it works to be able to confirm that it's not a theme issue, as the above analysis shows.

    Thanks for asking!

  29. Sergey Biryukov
    WordPress Dev
    Posted 11 months ago #

    The "I need confirmation..." part was actually a quote from your earlier post, to which I replied with a Trac ticket link.

    Thanks for additional testing. The bug is identified and should be fixed in a future release.

  30. ElectricFeet
    Member
    Posted 11 months ago #

    Doh! That'll teach me to read a post properly before reaching for my Problem Determination Ninja Headband.

    Great news that it's recognized as a problem. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic