• My host just switched us from a shared to a dedicated server and now I am having some queries failing. Essentially a query works fine if it queries 75, but if I change it to 76, it fails. This worked fine on the old server and so I have to assume it’s something on their end, but they aren’t admitting fault or anything.

    My question is, has anyone else encountered this and how do they solve it. Can you suggest another query, written differently to garner the same result that might work?

    for example of what works and doesnt work

    THIS DOESNT WORK

    <select name="jumpMenu" id="jumpMenu" onchange="MM_jumpMenu('parent',this,0)" style="width:210px;" align=right>
      <option value="#">Browse by Name</option>
    
    <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;      query_posts("cat=76&paged=$paged&showposts=200"); ?>
    
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    
      <option value="https://www.sandiegan.com/dining/banquets-catering/#<?php echo $post->ID ?>"><?php echo get_post_meta($post->ID, name, true); ?></option>
    
        <?php endwhile; ?>    <?php endif; ?>
    
    </select>

    THIS DOES WORK

    <select name="jumpMenu" id="jumpMenu" onchange="MM_jumpMenu('parent',this,0)" style="width:210px;" align=right>
      <option value="#">Browse by Name</option>
    
    <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;      query_posts("cat=75&paged=$paged&showposts=200"); ?>
    
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    
      <option value="https://www.sandiegan.com/dining/banquets-catering/#<?php echo $post->ID ?>"><?php echo get_post_meta($post->ID, name, true); ?></option>
    
        <?php endwhile; ?>    <?php endif; ?>
    
    </select>

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Some Category Queries Failing’ is closed to new replies.