WordPress.org

Ready to get started?Download WordPress

Forums

Image insertion causing post to go blank (30 posts)

  1. robinwyatt
    Member
    Posted 3 years ago #

    Hi,

    This query relates to my post at http://www.robinwyatt.org/photography/?p=2695. I have 21 images in this photo blog entry. When I try to add a 22nd (I have 24 in total), clicking 'preview' shows that the entire post has gone blank. I have tried with several images, all with the same dimensions (640 x 426 px), and they all result in the same thing happening. I have tried searching for the cause of this problem, but found nothing.

    Cheers!

    Robin

  2. lockettpots
    Member
    Posted 3 years ago #

    The link throws a 404 error

  3. robinwyatt
    Member
    Posted 3 years ago #

    Oh, do I need to click 'Publish' first for you to see it? I didn't want to do that yet, for various reasons.

  4. robinwyatt
    Member
    Posted 3 years ago #

    It's now published. Please see http://www.robinwyatt.org/photography/photo-essays/wadi-el-rayan-egypt/. You'll see that the first 21 images are there, but I could not add the final three without the whole post going blank.

  5. robinwyatt
    Member
    Posted 3 years ago #

    Hi all,

    The same problem is still persisting with my post at http://www.robinwyatt.org/photography/photo-essays/wadi-el-rayan-egypt/. I have added the code ini_set('PCRE.BACKTRACK_LIMIT', '1000000'); in wp-config.php as per what people have said at http://wordpress.org/support/topic/bug-wordpress-page-goes-blank-if-more-than-20-captions but that does not do anything.

    I made do with 21 images with captions after nobody replied to this thread during April. However, I changed something on the post today, and the problem returned. I then removed the 21st image, and the content returned. But I want to add that image back (and the other three mentioned earlier), and in future I want to be able to post photo essays with over 20 / 21 images. I'm a photographer... being limited like this is a real handicap.

    Hoping very much that someone can help!

    Robin

  6. esmi
    Forum Moderator
    Posted 3 years ago #

    This could well be a server issue. Have you spoken to your hosts about it?

  7. robinwyatt
    Member
    Posted 3 years ago #

    Ok, I'll try that and report back... .

    Is what it says at the link I gave above irrelevant in my case, or SHOULD it have fixed it?

  8. robinwyatt
    Member
    Posted 3 years ago #

    According to online chat support, it's unlikely to be to do with them. Nevertheless, I've submitted a request for them to take a close look. In the meantime, I'd be keen to know if anyone has any other ideas.

  9. robinwyatt
    Member
    Posted 3 years ago #

    I heard back from my hosts. They did an investigation. Nothing wrong from their side. Please please can anyone suggest something from the WP side? I'm leaving the blank post up there so people can see so as to hopefully resolve this, but it looks quite unprofessional so I'm keen to find the answer soon :-)

  10. robinwyatt
    Member
    Posted 3 years ago #

    Please... anyone at all??

  11. robinwyatt
    Member
    Posted 3 years ago #

    Bumping this... please, I can't be the only one with this problem?! Every day I see people trying to access the photo essay I've deliberately left in the state it became when I tried to add a 21st image, so that some kind soul might see it and help out :-) The problem is, that post is making me look unprofessional :-s Adding ini_set('PCRE.BACKTRACK_LIMIT', '1000000'); has not helped me. Pretty please, someone? :-)

  12. esmi
    Forum Moderator
    Posted 3 years ago #

    I'm sorry but I think this is a server issue.

  13. robinwyatt
    Member
    Posted 3 years ago #

    Esmi, both online support and the investigations team both confirmed that this is not a server issue. Online support told me he was absolutely certain there was no way it could be a server issue.

  14. esmi
    Forum Moderator
    Posted 3 years ago #

    WordPress does not limit the size of your posts nor how many images a post can contain. But your server can as part of its security configuration.

  15. robinwyatt
    Member
    Posted 3 years ago #

    Even if WordPress is not deliberately limiting the number, there may be an error somewhere which is causing this. If you Google the problem, you'll find many others have reported it (see the URL I posted above). It was an ongoing issue reported to WordPress some time back. Adding ini_set('PCRE.BACKTRACK_LIMIT', '1000000'); seemed to help many people, but it has make no difference to me. I've already talked with my hosts about this twice. Their tech experts are SURE it's nothing their side. Furthermore, they said that if they had installed any kind of limit like this, they know they would have had many people contacting them about it... which has not been the case.

  16. robinwyatt
    Member
    Posted 3 years ago #

    I just contacted my hosts for a third time, as you keep referring me back to theme. The response:

    "As a precaution, I have disabled Suhosin under your account which is normally used to prevent common malicious attacks. Please let me know if this helps. Another thing to troubleshoot is your theme."

    I refreshed the post in question with Suhosin disabled: no change. If it's my theme (which was custom made), I'd love to know what I can do about this on my own. My developer has gone AWOL!

  17. esmi
    Forum Moderator
    Posted 3 years ago #

    Try switching to the Twenty Ten theme to rule out any theme-specific problems.

  18. robinwyatt
    Member
    Posted 3 years ago #

    Would that just be a five-minute test? Can I easily switch back again after checking? Could I lose any of my customisation in doing this? What I mean to say is... are there any risks, given that I'm a novice :-)

  19. esmi
    Forum Moderator
    Posted 3 years ago #

    Can I easily switch back again after checking?

    Yes

    Could I lose any of my customisation in doing this?

    No.

  20. robinwyatt
    Member
    Posted 3 years ago #

    Ok, thanks for the reassurance! However, I tried that. All my other photo essays were fine, but the Wadi el-Rayan one remained blank, just like before. So I guess it's not a theme issue :-(

  21. esmi
    Forum Moderator
    Posted 3 years ago #

    Have you tried:

    - deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

  22. robinwyatt
    Member
    Posted 3 years ago #

    Hi,

    It's been a week since I've been able to work on this deeply troubling issue. I am revisiting it now, as I tried to do a small tweak to this post (where images that used to be next to each other have suddenly started appearing on top of each other) and found that this too made the whole post go blank. There seems to be no way to prevent this happening, aside from restoring my 11th May version of the post. I counted the images, and found there are 18. However, when I add the YouTube video and the two four-image galleries I have on the page, it comes to 21. One over the magic 20 mark. So I deduce that the issue seems to be related to media in general, not just images.

    Anyway, I feel very nervous about disabling all my plugins. I will lose all my setting if I do that. Is there no alternative? I deleted all my deactivated plugins, but that didn't solve the problem.

    Warm wishes,

    Robin

    PS I deleted the final image in the photo essay referred to towards the top of this thread so that at least the rest of the photo essay could display, rather than having a thoroughly unprofessional blank post sitting there!

  23. kmessinger
    Volunteer Moderator
    Posted 3 years ago #

  24. robinwyatt
    Member
    Posted 3 years ago #

    Hey,

    Thanks, kmessinger. But I'm confused... I didn't use <div> anywhere when I wrote the HTML for the page, and when I look at the HTML editor, I don't see <div> anywhere. Yet following that URL you pasted in there shows <div> all over the place. The same goes for p elements. Any idea how to address this?!

    Thanks again!

  25. kmessinger
    Volunteer Moderator
    Posted 3 years ago #

    Everywhere you put an image a <div> is used. One problem is you have <div> inside <p> which is not allowed. Are you using the standard wp editor? It usually strips out <p>'s.

    There are 4 open <div> and you can try to chase them down or the easiest way might be to close them in the html view after your last image - just enter 4 </div>

    Or add your 21st image and then close the <div> You may have to add 5 after adding an image.

  26. robinwyatt
    Member
    Posted 3 years ago #

    Yes, it's the standard WP editor. Is there an alternative? Anything that will show <div> and <p> wherever they should appear?

    I don't know how to chase down the open divs since I can't see them, but I inserted the 21st image and tried inserting one, four and five closed divs at the very end of the post, but nothing worked. It's currently blank now, so you can see what I mean.

  27. kmessinger
    Volunteer Moderator
    Posted 3 years ago #

    What esmi said about the plugins is the best way to debug.

    Ok, I was mistaken about the open divs - turned out that problem is caused by an unclosed

      just below your copywrite, <div id="footer-widget-area"><ul>. You might want to try adding </ul> to the last post.

      The editor is working fine. I can see the entry-content code and it is ok.

  28. robinwyatt
    Member
    Posted 3 years ago #

    Umm... sorry, I got lost. Are you saying I should add this to the post? There is nothing in the post itself mentioning the footer widget area.

  29. kmessinger
    Volunteer Moderator
    Posted 3 years ago #

    No. I meant for you to look in your footer widget to fix that. It was one of the validation errors.

    Normally if you rename the plugin folder no settings are lost. Same with changing the theme. All of that is basic debug which solves about 99% of the problems. Since you tried the theme route, most likely the errors are being generated by a plugin that is not compatible with version 3.1. Also, an upgrade to the current wp might solve the problem.

    Or just go back to the twenty photos but you will still have errors that will cause problems down the line for you or a viewer.

  30. robinwyatt
    Member
    Posted 2 years ago #

    I'm delighted to say that I've FINALLY fixed this problem. I found the way after WordPress suddenly started displaying an 'About' box at the bottom of my photo essays. I searched to find a way to remove this, and found that the problem related to a page in my custom theme (based on TwentyTen) that must have been badly re-written from the original loop-single.php. I deleted the code that started "If a user has filled out their description, show a bio on their entries", and the "About' box stopped appearing. I then tried to put lots more photos into an essay than I've been doing till now, and the page didn't go blank! I suppose that this isn't a problem that others will experience, as it was caused by a slip up by my site designer. Still, I'm reporting here for the sake of closure! Thanks to all who tried to help.

Topic Closed

This topic has been closed to new replies.

About this Topic