WordPress.org

Ready to get started?Download WordPress

Forums

Posting new Post leads to blank php screen (47 posts)

  1. richardcycling
    Member
    Posted 6 years ago #

    When I post a new post. I just get a blank page.

    The URL is:
    /news/wp-admin/post.php

    I tried upgrading the wordpress installation to 2.3.2.
    I have tried deactivating all plugins and changed theme.
    But the problem occurs as well.

  2. richardcycling
    Member
    Posted 6 years ago #

    the error log says there is a missing favicon and missing .html file I can't think of any reason for this.

  3. wmrubel
    Member
    Posted 6 years ago #

    This just happened to me, too, only more extreme. My entire site is blank. http://www.williamrubel.com/index.php generates a blank screen.

    I saved a post and the screen went blank. I have two installations of wordpress. One in the root directory -- a static site -- and one in a wordpress directly -- a blog. A direct call to the blog ...wordpress/index.php also produces a blank screen.

    I am getting cache memory full messages when I check the log file.

    Needless to say -- help!

  4. nsmith30
    Member
    Posted 6 years ago #

    Help! I'm having the same problem. Just started out of the blue. Have taken all the same steps as richardcycling (see above message) but all to no avail.

  5. richardcycling
    Member
    Posted 6 years ago #

    Anyone else having similar problems or ideas what to do?

    thanks

  6. higB
    Member
    Posted 6 years ago #

    I have the same exact problem.

    /wp-admin/post.php loads a blank white page and the posts I try to create never appear.

    Nothing gets posted to me error_log and this is what i see in my acccess_log

    xx.xx.xx.xx - - [06/Mar/2008:14:57:36 -0800] "POST /wp-admin/post.php HTTP/1.1" 200 353 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12"

  7. indiebookman
    Member
    Posted 6 years ago #

    Im having the same problem on a client's installation. Suddenly and inadvertently, we are getting a blank screen when saving or publishing a new post.

    I have deactivated all of the plugins, even tried pulling them completely out of the plugin folder. I swapped templates. Nothing seems to be working.

    What's weird is that it worked until recently, then, without any new plugins or changes to the site, this problem started.

    I have found quite a few posts about this problem elsewhere online, but most of them seem to have been resolved by removing plugins. That really doesn't seem to be the problem here.

    So, if anyone has any thoughts Im sure we would all appreciate them. If I find a solution, ill be sure to post.

    Thanks all!

  8. indiebookman
    Member
    Posted 6 years ago #

    Hmmm... just upgraded from 2.0 to 2.5, really expecting that to take care of it. The new install hasn't been touched by a plugin... still having the same problem.

  9. redheads
    Member
    Posted 6 years ago #

    I am having the same trouble - out of the blue two weeks ago. At that time I had made no upgrades since 2.0 but I was able to restore my database from a 2 day-old backup and go from there (that fixed the trouble). So I went ahead and upgraded to the newest version.

    No problems again until today. Tried to post, blank screen, nothing would save, could not move forward. Restored database to a few-days-old version. That fixed the problem (again) - I posted two posts with no trouble (replacing those lost in the restore), then went to post the third and it did the same thing.

    I restored again and, out of curiousity, tried to post the last post first. It went * blank screen * on me. I restored one more time, posted the other two posts again with no trouble. I am beginning to think the problem was in the HTML of the last post, so I post it after converting to plain text in notepad - stripped ALL HTML off. Posted the plain text. It blanks out.

    When the screen freezes I can look in the SQL and see the post I am trying to post, but in the contents area there is simply a weird character sort of like an 'A' with squiggles on top. NOT the text I put there. The title is correct, but none of it shows in the blog.

    Restored one more time, I can post as many test posts as I want as long as I do not post the one which causes the freeze... So the problem is somewhere in the content of this post, from what I can tell.

    Woudl love to hear if anyone has ever figured this one out...

  10. redheads
    Member
    Posted 6 years ago #

    Oh, and during one of the recovery attempts I removed the entire plugins folder and replaced it with a freshly downloaded version. No help there. The only fix I have found is to roll-back my database.

  11. redheads
    Member
    Posted 6 years ago #

    Ok, following up - I checked on words which might be an issue and changed my htaccess file as was referenced in several posts, to no avail... still trying...

  12. redheads
    Member
    Posted 6 years ago #

    Ok, maybe it is the length of that post, though am sure I have posted longer ones before...

    this time it errored out - blank screen - and I used the back button to go back to my previously *saved* and only slightly shorter draft, took out a paragraph... it then worked. So I am off to figure out how to override the post length... LOL

  13. redheads
    Member
    Posted 6 years ago #

    I was able to put a certain amount of text into the post before it crashes... One more word and it pushes it over into the 'white screen of death' so maybe it is not a 'certain word' issue as I thought.

    I have found I can recover from the white screen **the first time it happens** IF I have put a SMALL amount of text into the post and saved the draft - then paste the rest, then publish. If it gives the white screen I can use the back button to get back to where I last was, but ONLY if I have a little bit of text there in a draft to revert to. Oh, and I found I can check the categories, set the time for posting, etc... Whenever (in the draft or the final) - that does not matter.

    Still trying to find the post length override - no other fixes have worked...

  14. sgatz
    Member
    Posted 6 years ago #

    sorry, this was meant to be a test post.

  15. indiebookman
    Member
    Posted 6 years ago #

    Thanks for the continuing updates, redheads. I have been suspecting that it must have something to do with the database as well, since that's the only thing that I haven't changed or removed.

    Im getting back to this this morning, so your testing with post length and hidden characters is really helpful. Thanks for posting about it.

    Ill be back with anything that I find.

    Brad

  16. indiebookman
    Member
    Posted 6 years ago #

    The thing is, I get the white screen every single time, no matter what I have in the post, or how long it is.

    Unfortunately, I don't have a backup of the db from before this occurred. At the moment I am building a duplicate of the db so I can pull all of the posts since the problem began, and mess with things to see if I can figure out where this problem is coming from.

    Hoping this isn't just another wrong path...

    Brad

  17. indiebookman
    Member
    Posted 6 years ago #

    Ok, I have confirmed that the problem has to be in the database. I set up a fresh, clean, empty database and pointed the config file to it. It worked absolutely perfect.

    So now I have to figure out if the problem is with the structure of the database, or if it lies in one of the posts somehow.

  18. indiebookman
    Member
    Posted 6 years ago #

    Wow, so, something is appending long strings of hidden spam links to the end of posts. Im betting that this is pushing the posts past readheads limit, and causing the blank page.

    But what could be appending the spam? I have all plugins pulled out... and a most recent isntall of 2.5 in place.

    Hmmm... this is getting more interesting...

  19. indiebookman
    Member
    Posted 6 years ago #

    I got it. At least, I found out what was causing this for me.

    I was getting close in my last post, but it wasn't that spam was being appended... it was that there was a spam active_plugins item in the options table.

    There was a nefarious active_plugin in the database. It looked something like this: a:1:{s:5:./././././././././././././././././././././tmp/upl52653.jpg

    The post.php file calls wp-settings.php which tries to cycle through all of the active plugins. When it hit that one, it broke down. Once I pulled that entry out of the database, it is working great.

    Now, im pretty sure this entry was the result of a site compromise, because that filename just happens to match the title of a couple of spam posts that I also dug up. They had that jpg name as the title, and hundreds of spam links in a left: -2227px top: -3337px
    div.

    In looking around, it seems that hack could have been the result of an exploit in the 2.0 version of WordPress that was installed at the time. Im hoping that with 2.5, this security issue will no longer be a risk.

    SO, this solved my problem, I hope it solves yours: Look in your wp_settings table for any active_plugins that don't look right and remove them.

    I hope this helps!

    Brad

  20. Clicknathan
    Member
    Posted 6 years ago #

    Excellent work, indie. I was having the same problem (on a WP install running 2.0.x).

    I've been trying to figure this out for the past few days and this is a very valuable thread. A lot of people are looking for this solution, so hopefully the guy who originally opened it will mark it as solved.

    For people running 2.0 who aren't going to upgrade (for whatever reason), you'll find the culprit in wp_options -> option_value

    Of course, you'll be open to this attack again until you upgrade...

  21. redheads
    Member
    Posted 6 years ago #

    Thanks for all of your work on this.

    I just wanted to pipe up to clarify...
    in my case *once* the blank screen happened, EVERYTHING led to a blank screen - short post, long post, edit post. Anything that called on post.php

    The only way to recover and be able to post/troubleshoot again was to restore the database from a previous backup.

    I also wanted to mention that I had a
    :./././././././././././././././././././././tmp/*****.txt
    problem in 2.0 when the first blank screen happened. I restored the database at that time, then upgraded to 2.5, but was still having the blank screen in 2.5 despite that previous 'fix' - I was using an imported/upgraded database (a working one from 2.0).

    I think that is where it is related to the post being too long. Seems you should have a character-counter or just get a message that the post is too long... LOL

  22. tlobf
    Member
    Posted 6 years ago #

    im having the same issues here.

    first thing this morning, all our plug-ins had magically been deactivated. next thing i know, we cant publish or save posts. get the blank screen.

    upgraded to 2.5 to see if it fixes it - but no avail.

    im in the database at the mo, but cant find the wp-settings table that indie bookman mentioned.

    can anyone tell me exactly where it is. some real basic instructions would help.

    thanks!!

  23. juliecinci
    Member
    Posted 6 years ago #

    Me too. Can't find the wp-settings table. Ack.

    This is frustrating.

    I also can't get anything to post no matter length, type, characters, photos.

  24. tlobf
    Member
    Posted 6 years ago #

    ^sorted it!

    you need to edit the wp-options. it was in there on the first page of results for me.

  25. red sneaker
    Member
    Posted 6 years ago #

    indie bookman, I think I love you. Thank you so much for this, solved my problem!

    Stupid spam...

  26. jnardo
    Member
    Posted 6 years ago #

    I also love indie bookman. I was losing what little bit of hair was still on my head. Thanks! I'm back in the saddle...

  27. jnardo
    Member
    Posted 6 years ago #

    also, kudus to red sneaker who sent me here from my forum post!

  28. kellygubser
    Member
    Posted 6 years ago #

    Alright...I seem to be having the same problem. However, I don't have a current database backup. Can I edit the existing database to fix?

    What I have found is several entries linking to flickr.com account pages that i have never heard of. Would this be the culprit? Can I just delete those records?

  29. jnardo
    Member
    Posted 6 years ago #

    Can I edit the existing database to fix? That's what I did.

    What I have found is several entries linking to flickr.com account pages that i have never heard of. Would this be the culprit? Can I just delete those records? Mine was in the wp-options database and was an "active-plugin." Deleting it fixed all things...

  30. kellygubser
    Member
    Posted 6 years ago #

    Here is one of the entries:

    129;"0";"rss_cd7ad3c15d6ae5c195015b4a3acdf44c";"O:9:\"magpierss\":18:{s:6:\"parser\";i:0;s:12:\"current_item\";a:0:{}s:5:\"items\";a:20:{i:0;a:9:{s:5:\"title\";s:10:\"03-0523-20\";s:4:\"link\";s:50:\"http://www.flickr.com/photos/wangyangzh/428270289/\";s:11:\"description\";s:332:\"<p>wangyangzh posted a photo:</p><p><img src=\"http://farm1.static.flickr.com/152/428270289_f05e1a7910_m.jpg\" width=\"180\" height=\"240\" alt=\"03-0523-20\" style=\"border: 1px solid #ddd;\" /></p>\";s:7:\"pubdate\";s:31:\"Tue 20 Mar 2007 10:16:38 -0800\";s:2:\"dc\";a:1:{s:10:\"date.taken\";s:25:\"2007-03-20T10:16:38-08:00\";}s:6:\"author\";s:30:\"nobody@flickr.com (wangyangzh)\";s:4:\"guid\";s:36:\"tag:flickr.com .....

    and it goes on and on. I have three entries like this. How can I know this is the problem?

Topic Closed

This topic has been closed to new replies.

About this Topic