WordPress.org

Ready to get started?Download WordPress

Forums

Server down? (21 posts)

  1. poley7
    Member
    Posted 1 year ago #

    Hi, why do some of the links on my site work but not others??

    it says the server is down but the home page works fine... weird....

    Example of page not loading:
    http://www.itstravel.co.uk/the-biblical-tour/

    website: http://www.itstravel.co.uk

    any ideas???

    Thanks!

  2. Bas Schuiling
    Member
    Posted 1 year ago #

    All those pages don't load but show an empty page. Maybe you could should the .htaccess file and make sure everything is fine there?

  3. poley7
    Member
    Posted 1 year ago #

    thanks.. I have now created both an .htacess file, and also a 'htaccesspw file but where to upload it to exactly? Can it be done through WordPress itself or do I have to go to my host provider?

    I haven't changed anything on that file so no idea why this has happened all of a sudden...

  4. poley7
    Member
    Posted 1 year ago #

    here is the htaccess file... I just created it and uploaded to the server... anything wrong with it?

    AuthUserFile /usr/local/you/safedir/.htpasswd
    AuthGroupFile /dev/null
    AuthName EnterPassword
    AuthType Basic
    
    require user admin
  5. poley7
    Member
    Posted 1 year ago #

    Is it even anything to do with the htaccess file and htpasswd file?
    Or can the issue be solved some other way???

    This is driving me nuts and no idea why this happened all of a sudden.. :(

  6. poley7
    Member
    Posted 1 year ago #

    i think I've found where the problem is by checking my error logs...

    "fatal flex scanner internal error--end of buffer missed "

    now how to fix that.....? hmmm....

  7. esmi
    Forum Moderator
    Posted 1 year ago #

    Get rid of the .htaccess and .htpasswd files for a start. The issue appears to be specific to single post pages. Try resetting your custom permalinks back to the default setting via Settings -> Permalinks. If this works, then review Using_Permalinks before setting a custom permalink structure back up again.

  8. poley7
    Member
    Posted 1 year ago #

    here's the single.php code that the error log is telling me there's a 'fatal flex scanner internal error--end of buffer missed'
    but any idea how to fix it please? Thanks!

    <?php
    /**
     * The Template for displaying all single posts.
     *
     * @package WordPress
     * @subpackage Colorway
     * @since Colorway 1.0
    
    get_header(); ?>
    <!--Start Content Grid-->
    <div class="grid_24 content">
      <div  class="grid_16 alpha">
        <div class="content-wrap">
          <div class="content-info">
            <?php if (function_exists('inkthemes_breadcrumbs')) inkthemes_breadcrumbs(); ?>
          </div>
          <!--Start Blog Post-->
          <div class="blog">
            <ul class="single">
              <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
              <li>
                <h2><?php the_title(); ?></h2>
                <?php printf; ?>
                <div class="clear"></div>
                <?php the_content(); ?>
                <div class="clear"></div>
                <div class="tags">
                  <?php the_tags('Post Tagged with ',', ',''); ?>
                </div>
                <div class="clear"></div>
    			<?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . 'Pages:' . '</span>', 'after' => 
    
    '</div>' ) ); ?>
                <?php endwhile;?>
              <nav id="nav-single"> <span class="nav-previous">
    
                </span> <span class="nav-next">
    
                </span> </nav>
              </li>
              <!-- End the Loop. -->
            </ul>
          </div>
    
          <div class="hrline"></div>
          <!--End Blog Post-->
          <div class="clear"></div>
          <div class="social_link">
            <p><?php _e('If you enjoyed this article please consider sharing it!','colorway'); ?></p>
          </div>
          <div class="social_logo"> <a title="Tweet this!" href="http://twitter.com/home/?status=<?php the_title(); ?> : <?php the_permalink(); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/twitter-share.png" alt="twitter" title="twitter"/></a> <a title="Share on StumbleUpon!" href="http://www.stumbleupon.com/submit?url=<?php the_permalink(); ?>&title=<?php the_title(); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/stumbleupon.png" alt="upon" title="upon"/></a> <a title="Share on Facebook" href="http://www.facebook.com/sharer.php?u=<?php the_permalink();?>&t=<?php the_title(); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/facebook-share.png" alt="facebook" title="facebook"/></a> <a title="Digg This!" href="http://digg.com/submit?phase=2&url=<?php the_permalink(); ?>&title=<?php the_title(); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/digg-share.png" alt="digg" title="digg"/></a> </div>
          <div class="clear"></div>
          <!--Start Comment Section-->
          <div class="comment_section">
            <!--Start Comment list-->
            <?php comments_template( '', true ); ?>
            <!--End Comment Form-->
          </div>
          <!--End comment Section-->
        </div>
      </div>
      <?php get_sidebar(); ?>
    </div>
    <div class="clear"></div>
    <!--End Content Grid-->
    </div>
    <!--End Container Div-->
    <?php get_footer(); ?>
  9. poley7
    Member
    Posted 1 year ago #

    ok, I've done all the above but now every post just goes back to the homepage...

    it shows the post's url but displays the home page....

  10. esmi
    Forum Moderator
    Posted 1 year ago #

    Did you reset the permalinks to default?

  11. poley7
    Member
    Posted 1 year ago #

    yes. i did that. and now every post link goes back to the home page... weird...

  12. esmi
    Forum Moderator
    Posted 1 year ago #

    Your posts links on the site are still using a custom url. You need to reset them all to use the default urls.

  13. poley7
    Member
    Posted 1 year ago #

    I HAVE set the permalinks to 'default'

    copied and pasted from my dashboard in the 'Permalinks' section. I have selected 'Default' as the radio button in the list of options for Permalinks.

    Default: http://www.itstravel.co.uk/?p=123

    I'd send an attachment of the screenshot if I could.....

    please help....

  14. esmi
    Forum Moderator
    Posted 1 year ago #

    There are link on your pages still using custom urls - eg. the group tour links on http://www.itstravel.co.uk/?page_id=273

  15. poley7
    Member
    Posted 1 year ago #

    very weird... I definitely changed it to Defaults in the Permalinks section described above...

    Maybe its cos those links are put manually into a 'Text' widget...?

    But even on the home page the links from the picutres in the bottom center of the home page also redirect back to the home page instead of their actual urls... e.g. the 'Contact Us' Link at the bottom of the page on http://www.itstravel.co.uk home page... the contact Us page is an actual 'Page' and not a Post too....

    what's going on???? :(

    Thanks for the help

  16. esmi
    Forum Moderator
    Posted 1 year ago #

    Maybe its cos those links are put manually into a 'Text' widget...?

    Yes - that will be it.

    e.g. the 'Contact Us' Link at the bottom of the page

    That's also using a hard coded (manually inserted?) link. The default contact link is http://www.itstravel.co.uk/?page_id=87 - which works just fine.

    From all of this, I suspect that there's an issue with custom permalinks and rewrites on your site's server. Check with your hosts that mod_rewrite is running on your server and that .htaccess rewrite rules are being applied correctly.

  17. poley7
    Member
    Posted 1 year ago #

    ???
    I've gone in to manually change the Text Widget box to the post id url but it still doesn't work.
    e.g. http://www.itstravel.co.uk/?p=11

    The link you provided above is a Page, not a post.
    all the Pages have always been working fine, its the posts that don't.

    e.g. http://www.itstravel.co.uk/?p=462 is a post ID but it doesn't load anything.

  18. poley7
    Member
    Posted 1 year ago #

    ok, have been on the phone to my host provider and they said everything is set up correctly.
    there was nothing in my .htaccess file though so they sent me some code to input, which i have done, but its not made any difference.

    This is the code:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    What's wrong here?What do i need to do to make it work?? :(

  19. esmi
    Forum Moderator
    Posted 1 year ago #

    You do not need that .htaccess file/code until you set up custom permalinks again. Have you done that?

  20. poley7
    Member
    Posted 1 year ago #

    I've got the permalinks setting to 'default'

    i spoke to my host provider too and they said it may be a conflict with a plugin i may be using or the widget is messed up. I removed and replaced the widget but still same problem.

    i've tried the permalinks setting on both custom and default by the way and have also cleared the cache too.

  21. esmi
    Forum Moderator
    Posted 1 year ago #

    I've got the permalinks setting to 'default'

    Then delete or rename that .htaccess file.

    Have you sorted out the hard coded Post links yet?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.