wp-login.php and wp-post.php freeze

10 replies
Hi guys,

I recently had this issue and had to reinstall wordpress and thought everything would be OK but it wasn't. There it is again:

1. When I try to use wp-post.php(posts, pages, updates of posts etc.) the page just freezes at http://domain.com/wp-post.php and goes blank. When I manually go back to http://domain.com/wp-admin.php the posting was successful. I thought that I will figure that out and went to sleep.

2. On the next day the same thing happened with wp-login.php. When I enter my credentials it just goes blank on http://domain.com/wp-login.php. Now I cannot login.

I really wish that this could be fixed and I don't have to reinstall the whole thing again. Thanks guys!
#freeze #wploginphp #wppostphp
  • Profile picture of the author phpbbxpert
    This could be any number of things.

    More information is needed to even guess at it.
    What did you install WP with?
    Download from WP or some built in hosting installer.

    Are there errors in the servers error logs?

    Is this shared hosting and with who?

    Are there plug-ins installed related to posting and Admin features?
    Have you made changes to your theme's functions.php?

    You could also enable DEBUG to see if there are any PHP debug errors available.
    {{ DiscussionBoard.errors[3019057].message }}
    • Profile picture of the author Karamazov
      I managed to fix it, it was a problem with the theme. But there popped another one - part of the php code shows on the index page and I can't figure out why.

      See at gnomec.com in the upper right corner.
      {{ DiscussionBoard.errors[3022202].message }}
      • Profile picture of the author CrhisD
        Originally Posted by Karamazov View Post

        I managed to fix it, it was a problem with the theme. But there popped another one - part of the php code shows on the index page and I can't figure out why.

        See at gnomec.com in the upper right corner.
        What happens if you remove the <php>?
        {{ DiscussionBoard.errors[3022430].message }}
  • Profile picture of the author phpbbxpert
    You still have broken code, either in the theme's index.php or a plug-in that is improperly inserting it there.
    {{ DiscussionBoard.errors[3022963].message }}
    • Profile picture of the author Karamazov
      PHP Code:
      <?php get_header(); ?>
      <div id="pbody">
          <div id="content">

      <?php if (have_posts()) : ?>
              <?php while (have_posts()) : the_post(); ?>

                  
                  <div <?php post_class() ?> id="post-<?php the_ID(); ?>">


                      <div class="ptitle"><h2>
      <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2></div>
                      <div class="entry">
                          <?php the_content('Read the rest of this entry &raquo;'); ?>
                      </div>
                      <p class="postmetadata"> <?php the_time('j M Y'?><br><?php the_tags('Tags: '', ''<br />'); ?> Posted in <?php the_category(', '?> | <?php edit_post_link('Edit'''' | '); ?>  <?php comments_popup_link('No Comments Â»''1 Comment Â»''% Comments Â»'); ?></p>
                  </div>
              <?php endwhile; ?>
              <div class="navigation">

      <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } 
                  else { 
      ?>

                  <div class="alignleft"><?php next_posts_link('&laquo; Older Entries'?></div>
                  <div class="alignright"><?php previous_posts_link('Newer Entries &raquo;'?></div>
                      <?php ?>

              </div>
          <?php else : ?>
              <?php include(TEMPLATEPATH."/404.php");?>
                <?php endif; ?>
      </div>
      <div id="sidebar">
      <?php include(TEMPLATEPATH."/sidebar_l.php");?>
      <?php 
      include(TEMPLATEPATH."/sidebar_r.php");?>
          </div>
      </div>
      <?php get_footer(); ?>
      This is the code of index.php. I believe that the row doing the problems is this one
      PHP Code:
      <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
      because when I remove it the post id disappears but then the graphics in the theme mess up.
      {{ DiscussionBoard.errors[3024336].message }}
      • Profile picture of the author Karamazov
        I fixed it. It was in the home.php

        PHP Code:
        <div <php> id="post-<?php the_ID(); ?>">
        I am no php expert but I think that it was the absence of ? in the <php> tag. Am I right?

        Thanks for the support, guys!
        {{ DiscussionBoard.errors[3024424].message }}
        • Profile picture of the author CrhisD
          Originally Posted by Karamazov View Post

          I fixed it. It was in the home.php

          PHP Code:
          <div <php> id="post-<?php the_ID(); ?>">
          I am no php expert but I think that it was the absence of ? in the <php> tag. Am I right?

          Thanks for the support, guys!
          Either that or he wanted to define a <php> tag in XML, but later removed it and forgot to remove the opening tag
          {{ DiscussionBoard.errors[3024454].message }}
  • Profile picture of the author phpbbxpert
    Yes, that would be the problem.
    It should always start <?php and end ?>
    {{ DiscussionBoard.errors[3024441].message }}
  • Profile picture of the author aishangni
    Are there plug-ins installed related to posting and Admin features?
    Have you made changes to your theme's functions.php?
    {{ DiscussionBoard.errors[6606698].message }}
  • Profile picture of the author jaasmit
    If you have the backup of your site then you should just reinstall it with the back file otherwise you are need a professional coder.
    {{ DiscussionBoard.errors[6609822].message }}

Trending Topics