Wordpress pages returning 404, in some cases

Discussion in 'Reviews' started by FlyinRyan, Aug 7, 2007.

  1. #1
    I hope this is the correct forum, but there are a few pages on this site that return a 404 error in IE and in some versions of firefox, and I'm open to any suggestions.

    I've tried solving this issue with a designer, through wordpress forums, and I did get some help on cre8asite forums, but the problem is still there.

    Here are the URLs that return 404 in IE, and some vesions of FF:
    http://www.mobilemammoth.com/send-text-message
    http://www.mobilemammoth.com/deals
    http://www.mobilemammoth.com/mobile-glossary

    There are other wp pages on this site that display with no problem, and I cannot figure out why.

    Here is the code from the header.php, in case it helps:
    (thanks to everyone in advance for any tips!)

    <?php
    		$pages = BX_get_pages();
    		if ($pages) {
    			foreach ($pages as $page) {
    				$page_id = $page->ID;
       				$page_title = $page->post_title;
       				$page_name = $page->post_name;
                                    $page_type = $page->post_type;
       				if ($page_name == "archives") {
       					(is_page($page_id) || is_archive() || is_search() || is_single())?$selected = ' class="selected"':$selected='';
       					echo "<li".$selected."><a href=\"".get_page_link($page_id)."\">Archives</a></li>\n";
       				}
       				elseif($page_name == "send-text-message") {
       					(is_page($page_id))?$selected = ' class="selected"':$selected='';
       					echo "<li".$selected."><a href=\"".get_page_link($page_id)."\">Send SMS</a></li>\n";
       				}
                                    elseif($page_name == "deals") {
       					(is_page($page_id))?$selected = ' class="selected"':$selected='';
       					echo "<li".$selected."><a href=\"".get_page_link($page_id)."\">Deals</a></li>\n";
       				}
    
       				elseif($page_name == "about") {
       					(is_page($page_id))?$selected = ' class="selected"':$selected='';
       					echo "<li".$selected."><a href=\"".get_page_link($page_id)."\">About</a></li>\n";
       				}
       				elseif ($page_name == "contact") {
       					(is_page($page_id))?$selected = ' class="selected"':$selected='';
       					echo "<li".$selected."><a href=\"".get_page_link($page_id)."\">Contact</a></li>\n";
       				}
       				elseif ($page_name == "about_short") {/*ignore*/}
               	 	else {
              		(is_page($page_id))?$selected = ' class="selected"':$selected='';	echo "<li".$selected."><a href=\"".get_page_link($page_id)."\">$page_title</a></li>\n";
    PHP:

     
    FlyinRyan, Aug 7, 2007 IP
  2. generousape

    generousape Banned

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I don't get any errors.
     
    generousape, Aug 8, 2007 IP
  3. FlyinRyan

    FlyinRyan Peon

    Messages:
    16
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks generousape!
    Can you tell me what browser and version you used?
     
    FlyinRyan, Aug 9, 2007 IP
  4. FlyinRyan

    FlyinRyan Peon

    Messages:
    16
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Problem solved. Issue was with IE looking for a post_status of 'publish' (not static), while wordpress only returns pages with 'static' as post_status by default.
    Cheers.
     
    FlyinRyan, Aug 12, 2007 IP