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

by 10 replies
15
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!
#programming #freeze #wploginphp #wppostphp
  • 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.
    • [1] reply
    • 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.
      • [1] reply
  • You still have broken code, either in the theme's index.php or a plug-in that is improperly inserting it there.
    • [1] reply
    • 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.
      • [1] reply
  • Yes, that would be the problem.
    It should always start <?php and end ?>
  • Are there plug-ins installed related to posting and Admin features?
    Have you made changes to your theme's functions.php?
  • 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.

Next Topics on Trending Feed